aspose file tools*
The moose likes Beginning Java and the fly likes Start-up? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Start-up?" Watch "Start-up?" New topic
Author

Start-up?

Mike Smith
Ranch Hand

Joined: Oct 01, 2004
Posts: 38
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
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
Actually I think you need to add javac to your PATH environment variables.
Mike Smith
Ranch Hand

Joined: Oct 01, 2004
Posts: 38
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.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Mike Smith
Ranch Hand

Joined: Oct 01, 2004
Posts: 38
Ernest Friedman-Hill,thank you for reply.Will try this and reply later.Must leave for work now,more tomorrow.
Mike Smith
Ranch Hand

Joined: Oct 01, 2004
Posts: 38
Is the classpath set in User or System varible?Is the User varible set at classpath.?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.
Mike Smith
Ranch Hand

Joined: Oct 01, 2004
Posts: 38
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.
Matt Fielder
Ranch Hand

Joined: Oct 27, 2004
Posts: 158
All the instructions you need are on the sun site.

system config

installation for windows
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Start-up?