Results 1 to 8 of 8
  1. #1
    raahul456 is offline Member
    Join Date
    Jul 2009
    Posts
    5
    Rep Power
    0

    Question Installing JDK 1.5

    I have installed JDK 1.5,but forgot how to set environmental variables.I remember lightly that we are supossed to set 'PATH' and 'JAVA_HOME' variables.Please help me with wat are the variables to be set and their values.

    Thanks ion advance :D

  2. #2
    ShadowCopy is offline Member
    Join Date
    Aug 2009
    Posts
    6
    Rep Power
    0

    Default

    Unfortunately I'm not able to post links yet, however a simple google search for "setting classpath for java" will yield several pages which can give you instructions on how to do that. The problem is it's different for each operating system, and probably slightly different between different versions of the same OS (i.e. it might be a slightly different procedure from WinXP and Vista).

    It's not difficult, it's just a matter of knowing where to go and what to type to get it all set up.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Just search on the web about setting-up the environment variables in Java. You can find lots of articles about that.


  4. #4
    raahul456 is offline Member
    Join Date
    Jul 2009
    Posts
    5
    Rep Power
    0

    Smile

    Thanks.I did set my environmental variables.But i wanted to confirm should i set 'JAVA_HOME' variables also?I found different answers on this topic.If i cud get some help?

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  6. #6
    raahul456 is offline Member
    Join Date
    Jul 2009
    Posts
    5
    Rep Power
    0

    Default

    Yes I am working on Windows XP

  7. #7
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    You may or may not set the JAVA_HOME variable depending on your needs. Adding the jdk's bin directory to your PATH is sufficient to make you compile and run java programs from your command line.
    Some applications expect a JAVA_HOME to be set and if you have such applications then you have to set it.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by raahul456 View Post
    Yes I am working on Windows XP
    So in general, you need to set the JAVA_HOME variable at the moment as r035198x says. Why don't you just give a try with a simple Java code about this, weather you can compile a Java class without this setting or not.

Similar Threads

  1. to run jar file without installing jre
    By Md Saim in forum Web Frameworks
    Replies: 10
    Last Post: 08-29-2011, 10:12 PM
  2. HELP installing JDK please!
    By trucutru in forum New To Java
    Replies: 9
    Last Post: 01-17-2009, 06:31 AM
  3. installing j2s
    By ravjot28 in forum Eclipse
    Replies: 9
    Last Post: 06-27-2008, 11:10 AM
  4. Installing JMF
    By vinnieza in forum Eclipse
    Replies: 0
    Last Post: 05-04-2008, 07:11 PM
  5. Installing Java
    By Adv3nt in forum New To Java
    Replies: 3
    Last Post: 12-12-2007, 11:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •