Forums Register Login

Installation problem

+Pie Number of slices to send: Send
Hi,
I installed jdk1.3. I set the path variable c:\jdk1.3\bin;c:\jdk1.3\lib. I'm able to compile programs using 'javac' but not able to run programs using 'java' command. It gives the following error "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/object". If i type the entire path c:\jdk1.3\bin\java, it runs. Please let me know what the problem is.
with thanks,
Shankar
+Pie Number of slices to send: Send
 

Originally posted by shanku:
Hi,
I installed jdk1.3. I set the path variable c:\jdk1.3\bin;c:\jdk1.3\lib. I'm able to compile programs using 'javac' but not able to run programs using 'java' command. It gives the following error "Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/object". If i type the entire path c:\jdk1.3\bin\java, it runs. Please let me know what the problem is.
with thanks,
Shankar


When you type: SET CLASSPATH=.;C
you MUST, and this is very important, put a period "." before the ";" and then type your path in AutoExec.bat. So, after the = sign type a period, then a ;, then your path.
That should work.
+Pie Number of slices to send: Send
Eric:
Thanks and that helped.
shankar
What's that smell? I think this tiny ad may have stepped in something.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 944 times.
Similar Threads
Error running servlet using tomcat.. help please
running problem
Error occurred during initialization of VM ..java/lang/NoClassDefFoundError :
only javaweb server will do?
Java Native Interface : help needed
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 04:06:15.