Greetings,I have downloaded and installed this version of Java from Sun,j2sdk-1-4_2_04-nb-3_6-bin-windows.Keep getting the error('javac' is not recognizedas an internal or external command, operable program or batch file).Do I need to set a classpath in environmental varibles? I am confused as to the next step,have read all your posts concerning classpath.Thank you
Steven Bell,what would I set the path to:c,my version of Java, anything else.I am new to this and trying to learn on my own, have searched SunJava forums and it seems several others have this problem.Thank You for your quick reply.
Your PATH should include %JAVA_HOME%\bin, where %JAVA_HOME% is the directory where Java is installed. For example, if Java is in C:\Program Files\J2SDK1.4.2, then your PATH should include C:\Program Files\J2SDK1.4.2\bin.
Note that if you change the PATH in the Control Panel, open Command Prompt windows won't see the change; you need to close the window and open a new one to make the change take effect.
You want to modify the existing PATH. PATH is how Windows finds executable programs; you're adding something to it.
CLASSPATH is a whole separate thing. It's used by Java to file .class files. Windows knows nothing about it, so it's not set to anything by default. The best advice I can give you is to not set CLASSPATH to anything right now -- not until you get some more Java experience. The default behavior with no CLASSPATH at all should suit you just fine.
Ernest Friedman-Hill,thank you for reply.I am trying the tutorial(your 1st cup of java from java.sun.com.In environmental varibles the only path is in system varibles-C:\WINDOWS\system32;C:\WINDOWS... . At the command promt if I type DIR,.netbeans is on the list.I get to the point where you are supposed to enter javac and this is when my problem occurs.Thank you for your patiience and help.XP HOME Will keep trying.