Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't run the javac command

843804Jun 5 2003 — edited Jun 12 2003
I've installed the j2sdk1.4.1_03 on my C root folder and i've created another directory called javaworks in C:\javaworks.I've done the necessary setup in the autoexec.bat file, it is as follows :
PATH C:\j2sdk1.4.1_03\bin;%PATH%
SET CLASSPATH=.;C:\j2sdk1.4.1_03\lib\tools.jar
I've saved a file called Hello.java in my C:\javaworks folder. I used notepad to create it and saved it with "Hello.java". Now, when i go to my C:\javaworks folder and type javac Hello.java I get this error
Bad Command Or File Name, Please help the hello.java file is in that folder, i've already set up the path and set classpath in autoexec.bat, i can run the java -version from my C:\javaworks but why can't i compile it using the javac method, is there anything that i'm missing out in here?, I'm a newbie and using win98SE

Help much appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2003
Added on Jun 5 2003
7 comments
121 views