This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes How to set up jdk environment variables in Window 2000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to set up jdk environment variables in Window 2000 " Watch "How to set up jdk environment variables in Window 2000 " New topic
Author

How to set up jdk environment variables in Window 2000

John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
Hi:
I had win2000 and win me dual install befoire on my computer. but now to save space, i only have win2000. i did java stuff on win me before. it took a lot of effort to get it running. now with win 2000, i do not go through the same process. so can anyone give me some tips how to do it?
Thanks,
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
If you just need to set environment vars then here's the procedure:
  • Right click My Computer and select Properties.
  • Select the Advanced tab.
  • Click the Environment Variables button.
  • Add New or Edit or Delete existing variables by pressing the appropriate button.
  • Click the OK button when finished.


  • You'll notice two panes, one for user vars and one for system. You will probably want to use the system vars for your purpose.
    [ May 20, 2003: Message edited by: Michael Morris ]

    Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
    Murali Nanchala
    Ranch Hand

    Joined: Mar 14, 2001
    Posts: 74
    Don,
    Do you use the same 'command window'/'IDE session' before and after setting the environment properties? Cause they usually need a restart.
    So, use a new command prompt or restart the IDE you use after you set the properties.
    P.S. You might already know this, but just checking anyway.


    "It is almost always answered in the API" - Murali Nanchala
    John Lee
    Ranch Hand

    Joined: Aug 05, 2001
    Posts: 2545
    thanks for the help!
    but I am afraid it is not that simple. in win me, i also did the similar thing at first, but it is still not working. i have to change a couple of property files. i do not even know what i did. it is really pain in the neck!
    usman ahmad
    Ranch Hand

    Joined: Mar 06, 2001
    Posts: 46
    Hi,
    I would also like to get a answer for this.
    Thanks.
    Thomas Paul
    mister krabs
    Ranch Hand

    Joined: May 05, 2000
    Posts: 13974
    To get Java to work on Win2000 all I did was install it. Nothing else! No classpath changes. No script changes. Nothing!
    So what exactly is your problem? What error are you getting when you try to compile or run? Java should work "right out of the box" on Win2000.


    Associate Instructor - Hofstra University
    Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
    John Lee
    Ranch Hand

    Joined: Aug 05, 2001
    Posts: 2545
    thanks a lot!
    Nicholas Turner
    Ranch Hand

    Joined: May 24, 2003
    Posts: 126
    in the dos prompt you can allso set the class path
    i think it goes set classpath c:\jdk2(whatever the folder is)
    John Lee
    Ranch Hand

    Joined: Aug 05, 2001
    Posts: 2545
    Originally posted by Nicholas Turner:
    in the dos prompt you can allso set the class path
    i think it goes set classpath c:\jdk2(whatever the folder is)


    thanks a lot!
    Matt Cao
    Ranch Hand

    Joined: Apr 03, 2003
    Posts: 715
    Hi,
    Actually you don't need class path for win2k if you have the j2dk 1.4. But I use class path for different version of jdk.
    Regards,
    MCao
    John Lee
    Ranch Hand

    Joined: Aug 05, 2001
    Posts: 2545
    Originally posted by Matt Cao:
    Hi,
    Actually you don't need class path for win2k if you have the j2dk 1.4. But I use class path for different version of jdk.
    Regards,
    MCao


    thanks for the information!
    James Chegwidden
    Author
    Ranch Hand

    Joined: Oct 06, 2002
    Posts: 201
    Don,
    I have w2k at home and at school with java 1.4. We dont let our students set the environment variables. I just tell them to set the path at the DOS prompt like this{


    Author and Instructor, my book
    John Lee
    Ranch Hand

    Joined: Aug 05, 2001
    Posts: 2545
    Originally posted by James Chegwidden:
    Don,
    I have w2k at home and at school with java 1.4. We dont let our students set the environment variables. I just tell them to set the path at the DOS prompt like this{


    thanks a lot! James.
    Looks liek win 2000 is a better operating system, java-wise. well, since i switch to win 2000, i have not downloaded jdk yet, but i am going to do it in the next half an hour.
     
     
    subject: How to set up jdk environment variables in Window 2000
     
    Similar Threads
    backup & restore of db2 database
    installing win 2000 on an old computer
    Jdeveloper Problems
    unwanted OS
    oracle home in win 2000