• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PATH

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also set the CLASS-PATH and PATH.
 
marc weber
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thank you!!! I had a space!



    Here, I'll buy ya a pint

    Thanks again.
    reply
      Bookmark Topic Watch Topic
    • New Topic