File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes PATH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "PATH" Watch "PATH" New topic
Author

PATH

Carlos Saito
Greenhorn

Joined: Oct 29, 2006
Posts: 1
Does anybody know how to set-up the PATH after installing JAVA. I was reading the instructions but i cannot figure it out. Thanks.
vineela kom
Greenhorn

Joined: Aug 04, 2006
Posts: 7
The path settings can be done at :
My Computer ->properties -> Advance tab->environment variables -> In the user variables,
define JAVA_HOME and point the location of java (where you installed in your system) to that variable.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Hi,

Welcome to JavaRanch!

We have a strict policy on display names, which must be a real first and last name with a space between.

Please go here and fix your display name up, pronto. This is your second warning.


[Jess in Action][AskingGoodQuestions]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Carlos Saito:
Does anybody know how to set-up the PATH after installing JAVA. I was reading the instructions but i cannot figure it out. Thanks.

Welcome to JavaRanch!

Is there a particular part of the instructions you're questioning?

Please tell us what operating system you're using, and where exactly you installed Java.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
paramu iyer
Greenhorn

Joined: May 13, 2006
Posts: 24
Also set the CLASS-PATH and PATH.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by paramu iyer:
Also set the CLASS-PATH and PATH.

You will need to set the PATH. But if you're new to Java, please do not set the CLASSPATH.
Jacq Jones
Greenhorn

Joined: Nov 07, 2006
Posts: 2
Hi,

I'm having exactly the same problem (I think).

I can't "javac" and have been trying to set the PATH to

C:\Program Files\Java\jdk1.6.0\bin

because I'm pretty sure that's what I'm supposed to do, but it's not having any effect.

I'm feeling very stupid right now and was storming through my java book, feeling very clever until I actually tried to compile something!
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Jacq Jones:
...I can't "javac" and have been trying to set the PATH to

C:\Program Files\Java\jdk1.6.0\bin...

Welcome to JavaRanch!

Here are some things to check:
  • Is there a version number on the jdk1.6.0 directory? For example, is the directory actually called jdk1.6.0_1?
  • When you added this to your PATH variable, did you separate it from other paths using a semicolon and no spaces? For example, ...someOtherPath;C:\Program Files...
  • After modifying the PATH variable, did you open a new Command Prompt session?
  • Let us know...
    Jacq Jones
    Greenhorn

    Joined: Nov 07, 2006
    Posts: 2
    Thank you!!! I had a space!



    Here, I'll buy ya a pint

    Thanks again.
     
    Don't get me started about those stupid light bulbs.
     
    subject: PATH