Solved

Installing J2SE 1.4.2 SDK

Posted on 2004-10-21
464 Views
Last Modified: 2006-11-17
Hi there,

I just installed J2SE 1.4.2 SDK. I can set the path for javac from the command line but every time I restart my computer I have to set it again.

Could you tell me how to set it permanently?

I am using Windows XP home.

Thanks,

Paul
0
Question by:Paulmul
    15 Comments
     
    LVL 86

    Expert Comment

    by:CEHJ
    0
     
    LVL 37

    Expert Comment

    by:zzynx
    0
     
    LVL 86

    Accepted Solution

    by:
    I would define the following

    JAVA_HOME <the path to the sdk installation directory>

    then add

    ;%JAVA_HOME%\bin

    to the PATH
    0
     
    LVL 1

    Author Comment

    by:Paulmul
    Where? I want to do it so I don't have to type this every time. I did this when I installed perl but can not remember how. There is somewhere that you can add it.
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    See the link i posted. You only need to do this once
    0
     
    LVL 1

    Author Comment

    by:Paulmul
    The link you posted does not say how to add the ones for Java. I have since done this using another guide. If anyone actually says how to do it I will give top marks. Otherwise I am splitting the marks with the worst grade and posting the link I found.
    0
     
    LVL 24

    Expert Comment

    by:sciuriware
    Start->Settings->Control Panel->System->Advanced->Environment Variables->User Variables->Path->Edit

    ;JOOP!
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    >>The link you posted does not say how to add the ones for Java.

    The link i posted is *exactly* what you need, namely adding to the PATH variable so that javac can be used
    0
     
    LVL 24

    Expert Comment

    by:sciuriware
    Mine is now:
    C:\Program Files\SSH Communications Security\SSH Secure Shell;E:\JDK1.5.0\BIN;D:\JOOP\EXE;D:\JOOP\BAT

    and JOOP is me.
    0
     
    LVL 24

    Expert Comment

    by:sciuriware
    Of course you must replace E:\JDK1.5.0 by the path where you installed JAVA ....

    ;JOOP!
    0
     
    LVL 1

    Author Comment

    by:Paulmul
    CEHJ, My mistake I misunderstood your second post. I will give you the marks. However I recommend people look at http://www.cs.ucsb.edu/~teliot/Path_and_Classpath.htm it is very easy to follow.

    sciuriware, sorry CEHJ got it first.
    0
     
    LVL 37

    Expert Comment

    by:zzynx
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    If you find the thing about JAVA_HOME confuses you, just forget that for the moment and add to the PATH directly
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    >>
    However I recommend people look at http://www.cs.ucsb.edu/~teliot/Path_and_Classpath.htm it is very easy to follow.
    >>

    Yes, that's OK, although i'm surprised that autoexec.bat is run by default on XP, as is implied there
    0
     
    LVL 86

    Expert Comment

    by:CEHJ
    8-)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    933 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now