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

New to Java and having trouble.

Status
Not open for further replies.

andypara

Programmer
Apr 25, 2002
32
GB
Hi,

I downloaded Java SDK 1.4 from java.sun and installed it on my PC. I was going through a tutorial and wrote piece of code which I copied from the tutorial to Notepad called :-

divelog.java

The instructions said :-

Compile DiveLog.java as follows:
On a Windows platform:

C:\divelog>javac -classpath C:\ DiveLog.java

Run the Dive Log with the following:
Windows:

C:\divelog>java -classpath C:\ divelog.DiveLog

So I put the Notepad file in C:\divelog, and clicked Start/Run and then put in C:\divelog>javac -classpath C:\ DiveLog.java. I got an error saying it can't find it and it didn't work. I did the same thing from DOS and it just threw back Bad Command.

I really want to get started. Can anyone help?
 
Make sure the java bin directory is on your system PATH or fully qualify the path for javac.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top