Originally posted by atul vermaa:
hey folks. i am a beginner in Java. i have vista os.. please help me out to set class path environment. i have tried this umpteen time but coudnt make it.
one more favor i need. i have made folder name Java_Prog in D: drive and JDK is installed in C: drive. I write a program in Notepad and save it to Java_Prog folder with .java ext. and on command prompt when i try to compile my .java file then it come up with an error like "class not found exception error."
Please help me out so as i could commence coding.
Thanks a Ton in Advance.
Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Originally posted by atul vermaa:
Thanks Buddy. i did it as you said. now my file is compiled successfully but it is not running and giving me output.
it is showing this error: Exception in thread "main" java.lang.NoClassDefFoundEroor :Hello (Hello is my source code file name)
Thanks a Ton.
Originally posted by atul vermaa:
[QBnow as you advised i did like this
D:\Java_prog>set path=C:\Program Files\Java\jdk1.5.0_10\bin
D:\Java_prog> java hello
[/QB]
Joanne
Originally posted by atul vermaa:
...please help me out to set class path environment. i have tried this umpteen time but coudnt make it...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Note that CLASS and CLASSPATH are entirely different things. You will find plenty of bad advice on the internet regarding CLASSPATH, which is probably why you have one set now.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |