Starting out with Java
Posted on 2001-08-06
I'm having real problems getting started with Java . . .
I've downloaded the JDK 1.4 from Sun, but I can't seem to get my program compiled.
I'm running Windows ME and I've set the path, following the installation notes, but when I go to MSDOS and type the name of my program (a simple 5 line program copied from an introductory book on Java, written on Notepad) - it doesn't work.
I type javac Hello.java, and I get the message
error: cannot read Hello.java
So the compiler can't find the text file of the program I've written in notepad - but how do I get it to find then compile the file (which is stored in C\jdk1.4\bin)?
Do I need to type another line of code so that the compiler can find my program - and if so what code or path instructions do I need?
I'm sure this is a trivial problem, but It's very frustrating because it's stopping me from getting started with Java.
Any suggestions would be very warmly welcomed.