PDA

View Full Version : Java error... "-classpath "C:" -d"


jaywhy13
09-06-2005, 01:54 AM
I get this error when I try to compile my first java file. There is nothing in the file and I tried to compile it...
And I get this when I select Build -> Compile File
Error : Invalid path, "C:\Program Files\Java\j2re1.4.2_06\bin\javac.exe" -classpath "C:" -d C: C:\ij.java"
I installed java sdk into the default directory... i.e.
"C:\Program Files\Java\j2re1.4.2_06"


Also JCreator asks for the docs directory? Where is that or what do I need to download exactly?

KeZZeR
09-06-2005, 12:28 PM
Phwoar, I would help but classpaths have always been the bane of my life. Are you sure your classpath environment variable is referencing to the correct directory?

jaywhy13
09-06-2005, 04:56 PM
Phwoar, I would help but classpaths have always been the bane of my life. Are you sure your classpath environment variable is referencing to the correct directory?


Ummm... figured it out.. and it was pointin to the wrong thing.. I changed it to c:\java\sun\jdk\ and that worked

KeZZeR
09-07-2005, 02:05 AM
Good, I'm glad you got it working :)