Java Compile Question
I just installed the Java 2 SDK 1.3.1 off of their website. I tried making a program in Word but for some reason it doesn''t compile. I''m learning Java through Sams Teach Yourself Java 2 in 24 hours. The code is correct and everything but when I go in to the MS-Dos prompt and type cd C:\Java (That''s where the folder is with the java source code) so I get C:\Java for a prompt and then I type javac Saluton.java which is the correct file, it just says, "Bad command or file name". I''ve tried everything I can think of, what am I doing wrong???
THANKS!
http://www.rivetcode.com
August 25, 2001 12:45 PM
You said that is the folder which the source is in, but that means the compiler is not in that folder. Either you need to setup a path shortcut (like in autoexec path=jdk_path/bin), or you need to type in the full path when typing javac (jdk_path/bin/javac Saluton.java). You could avoid this entire situation by downloading the forte ide, so then you can just use a menu to compile.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement