Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beginner

Status
Not open for further replies.

Santa

Programmer
Apr 14, 1999
1
US
Hi All Java Guru,<br>
<br>
I have just enrolled an online Java course (very beginning). My first excercise is to compile the first few lines of code through dos. And of course, I am getting a bad command or file name error. I think that I have installed JDK correctly, but what I didn't do correctly is in the Autobat.bat? I followed the instructions from the course to go in the autobat.bat and add the following lines:<br>
<br>
PATH=c:\windows;c:\windows\command;c:\jdk11\bin<br>
SET CLASSPATH=.;c:\jdk11\lib\classes.zip<br>
<br>
And my file name is save under c:\jdk11\BigDebt.java<br>
<br>
Thanks,<br>
<br>
Santa<br>
<br>

 
Three things -- 1) Make sure you specified the .java extension when you typed "javac BigDebt.java", 2) make sure your class declaration is BigDebt and not bigdebt, 3) if you specified a package mke sure you put you .java in a corrisponding directory structure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top