Originally posted by Arjun K:
If your jdk is copied in c:\jdk1.5 directory then try the one below.
Originally posted by Stuart Gray:
Check inside the C:\Java\jdk1.5.0_03 directory. There should be a bin directory in there. Inside the bin directory should be javac.exe
Originally posted by Marcus Laubli:
The javac.exe is the java compiler. java.exe is the runtime launcher. both of them are needed if you want to do any development with Java.
Originally posted by Sony:
My JDK is placed at C:\Java\jdk1.5.0_03
Even though I tried what you suggested, I get the message "The System cannot find the path specified."
The path I've put in system is "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Java\jdk1.5.0_03"
I tried many things so far, but none has worked
Thanks for your comments guys.
Originally posted by Layne Lund:
Change the last entry in the path list above by appending "\bin" on the end. This should fix the problem.
Originally posted by Mark Spritzler:
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
Thanks! and welcome to the JavaRanch!
Originally posted by Jon Egan:
A couple of common problems:
1. What editor did you use to create the file with your java source code? Typically when you're just starting out, it's best to use something simple like Notepad on the PC or vi on UNIX, so the output files are actually plain text - a common mistake is to edit them in something like Word, and save them as MyFile.java, only to realize later they've been saved as "MyFile.java.doc", in Word format.
2. Case (UPPER/lower) matters, with the class name inside the source file, and with the filename. Perhaps you made a source file named "MyClass.java", but you're trying to compile with "javac myclass.java"? If you had a problem with the capitalization of the class name in the file, the compiler should give a more informative error.
3. Is the class declared as public? It should be.
Past that, I don't know... If you can, copy/paste into your post exactly the command line and the error you are getting, because I wasn't able to recognize the error you paraphrased in your most recent post. Also include relevant info, like the name of the file (maybe also paste in a DIR listing, too, so you can have several extra sets of eyes looking for the problem).
Originally posted by Michael Plourde:
I was having the same exact error today, I had to make sure javac and the party.java was in the same bin folder and that fixed it for me, besides the left out semicolon after the button c line.
I am there with you, hang in there!
Originally posted by Michael Weber:
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0_03\bin ;C:\Program Files\Common Files\Autodesk Shared\