javascript
Brief description  about Online courses   join in Online courses
View Bikram Ballav  The Indian Student 's Profile

java installation problem

Sir, i have re installed java in my machine ,cet the PATH in environment variable by putting the bin path.
But it is not installed yet, can you plz tell me what we have to write in PATH AND CLASSPATH after installing java...

when i try to run my first java program it is compiled successfully but show this exception:

Exception in thread "main" java.lang.NoClassDefFoundError: class name

plz fix my problem...
Asked by Bikram Ballav The Indian Student | Feb 22, 2011 |  Reply now
Replies (4)
View bikram-ballav the-indian-student 's Profile
hi omer can u explain it once should i change the class path? if yes what i have to write there??
Feb 27, 2011
View omer abdekgadr alzwain 's Profile
try setting classpath option when running java program , like this:
java -classpath=. myProgram.java
Feb 27, 2011
View bikram-ballav the-indian-student 's Profile
Sir, i set the PATH in environment variable as C:Program FilesJavajdk1.5.0_03bin ..don't change anything in CLASSPATH and just write the above line in PATH at the end of sequence...

after re installing java i just write this again in PATH but get the same error as mentioned above when try to compile the program.. can u plz help me ?
Feb 24, 2011
View arun kumar das 's Profile
Hi

java path always set in PATH only not in CLASSPATH.

set the path like
PATH=C:\Program Files\Java\jdk6\bin; and save it in environment variable, than try to compile your program.

java teacher
Feb 22, 2011