Hello Claude,
The following line in your compile .bat file isn't correct:
path javac c:\Java_Programs\Meaty.java
"PATH" is an environment variable in Windows. You set it to tell Windows where to look for executable programs. The
Java compiler (javac.exe) is a program, and you need to tell Windows that it's in the bin directory where you installed the JDK. Step 4 of the
JDK installation instructions explains how
you should set the PATH.
When this is set correctly, you can compile your Java source code with the following commands:
c:
cd \Java_Programs
javac Meaty.java
I am moving this topic to the Java in General (Beginner) forum, because it's not directly related to
SCJP. Please click on the link at the top of this page to go there.