Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PATH

 
Carlos Saito
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
paramu iyer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also set the CLASS-PATH and PATH.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 2
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you!!! I had a space!



    Here, I'll buy ya a pint

    Thanks again.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic