JamesDeCarlo / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Exception java.lang.NoClassDefFoundError #338

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I write a simple Java package game extension for Smartfox Server 2x using 
Gson and get the exception java.lang.NoClassDefFoundError: com/google/Gson. But 
using unzip sources there's no error found.
2.
3.

What is the expected output? What do you see instead?
I don't know while ClassLoader can not find class def.

What version of the product are you using? On what operating system?
I use Eclipse Helios

Please provide any additional information below.
I think maybe Gson has loaded somewhere and try to follow this article 
http://www.gitshah.com/2011/04/fixing-javalangclassnotfoundexception.html but 
nothing changes.

Original issue reported on code.google.com by langxangvn on 27 Jun 2011 at 3:48

GoogleCodeExporter commented 9 years ago
This looks like a class path problem. You should make sure that the GSON .jar 
file is on your application's class path.

Original comment by limpbizkit on 1 Jul 2011 at 9:52

GoogleCodeExporter commented 9 years ago
I assure the .jar in the application's class path. There're no errors when I 
export the library as .jar file in Eclipse. I have the  IntelliSense 
(auto-complete) for GSON too. The errors appear at the run-time.

Original comment by langxangvn on 2 Jul 2011 at 5:19