Cannot set path for java program compilation pls help urgent..???
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Aji_Gopal
Posted On:   Thursday, December 19, 2002 03:22 AM

Hello friends i am new to java and hence i have installed the jdk1.4 development kit but i am having problem i am not able to set the class path and hence whenever i am running my .class application from the command prompt it gives me error like




Exception in thread "main" java.lang.NoClassDefFoundError: Classname.



i can't figure out what is the problem hence requesting u all to kindly help me ..



waiting for your reply..

Thanks in Advance



Aji

Re: Cannot set path for java program compilation pls help urgent..???

Posted By:   P_Manchanda  
Posted On:   Thursday, December 19, 2002 04:11 AM

hi friend,
u need to set the CLASSPATH variable.

on NT u can go to control panel>system and set this variable there.

on 98/95 u can set the same variable in the autoexec.bat file.

this variable will poinr to the tools.jar which is in your lib directory of the jdk. so give the complete path like this

CLASSPATH=/lib/tools.jar.


further u can put any classes i.e. jar/zip files u wish to use in the classpath by putting there value to the classpath variable.


hope it helps
About | Sitemap | Contact