Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set up jdk environment variables in Window 2000

 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
     
    Murali Nanchala
    Ranch Hand
    Posts: 74
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    John Lee
    Ranch Hand
    Posts: 2545
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 46
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi,
    I would also like to get a answer for this.
    Thanks.
     
    Thomas Paul
    mister krabs
    Ranch Hand
    Posts: 13974
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    John Lee
    Ranch Hand
    Posts: 2545
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    thanks a lot!
     
    Nicholas Turner
    Ranch Hand
    Posts: 126
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 2545
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 715
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 2545
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 201
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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{
     
    John Lee
    Ranch Hand
    Posts: 2545
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic