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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javac

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm trying to compile a simple Java program (I've never used Java before).&nbsp;&nbsp;I'm using a Unix system, so at the Unix prompt, I typed javac myprogram.java<br><br>and recieved the following error message:<br>Can't find class sun.tools.javac.Main<br><br>What does this mean, and what can I do about it?
 
A simple test to see if javac is working, try typing javac without the program name, javac&nbsp;&nbsp;and see what it says. If it comes back with usage blah blah blah, then the command works. Next make sure that your myprogram.java has a class named myprogram that is:<br>public class myprogram{<br>//stuff goes here<br><br>}<br><br>A convention in java is to capitilize the words in the name of a class, for example: MyProgram.java not myprogram.java<br>Also java is case SeNsItIvE.<br><br>Good Luck... <p>Troy Williams B.Eng.<br><a href=mailto:fenris@hotmail.com>fenris@hotmail.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top