your advice
1 posts in topic
Flat View  Flat View

Posted By:   prasanthi_kasu
Posted On:   Tuesday, April 29, 2003 12:40 PM

when i'm trying to execute my java program i'm getting an error noclassdeffounderror. what should i do to overcome this. please send me all the paths that u have to set after installing java s/w.
prasanthi kasu.

Re: your advice

Posted By:   Zac_Jacobson  
Posted On:   Tuesday, April 29, 2003 04:27 PM

With newer JVMs, setting the JAVA_HOME environment variable will mean that you don't have to include system JVM libraries on you classpath. After that, you only need to include jar files that you use, and your source root directory.

I have "." on my CLASSPATH, so I can use classes rooted in my current working directory. This can cause problems just like having "." on your path can. You shouldn't do that if you're a root/administrator user.

It's hard to be much more help without knowing what you're doing. What JVM/OS are you using, where is your JVM installed, what directory are you in, where are you class files, what other libraries are you trying to use, etc.

About | Sitemap | Contact