Quote:
|
quote:java.lang.NoClassDefFoundError
|
Probably because you are compiling source code which requires a library that does not come with the JDK. Try searching Google for the particular class you are missing and download the library that contains it. To include a library during compilation use the -classpath argument:
Code:
javac -classpath /mylibs/somelib.jar Program.java
Quote:
|
quote:and also tell what is difference between j2sdk and jdk installation
|
The J2SDK is the same thing as JDK. Sun Microsystems uses the two names interchangably. J2SDK = Java2 Software Development Kit. JDK = Java Development Kit.