Having problems compiling program
I am typing my program under JCreator LE which is in C:\Program Files\JCreatorV3LE\MyProjects
1.My
java is in c directory
Have project folders as follows:
C:\java\projects
and
c:\java\1.4.2_10\projects
2.When I type in MS-DOS
cd c:\java
and
c:\java>dir
get
Directory of C:\java
Dates <DIR> .
Date <DIR> . .
<DIR> 1.4.2_10
0javac
<DIR> projects
A new classpath set up under System properties > environment variables> system variables as
C:\java\1.4.2_10\lib\tools.jar
3.Trying to compile programs in MS-Dos
> I assume this converts it to a class file.
c:\java\projects>javac Welcome1.java
> but I keep getting �java\projects� is not recognizes as an internal or external command, operable program or batch file
4.In MS-Dos when I type c:\ javac Welcome1.java
States error : error cannot read : Welcome1.java
5.when I type just c:\java
I get an usage output of
Usage: java [-options] class [args�]
<to execute a class>
or java java [-options] �jar jarfile [args�]
<to execute a jar file>
6.when I type c:\javac
I get usage output of
Usage: javac <options> <source files>
Etc
>I would like to know if my classpath is correct. What should I type in MS-Dos to compile the program?