• 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

How to set up jdk environment variables in Window 2000

 
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
     
    Ranch Hand
    Posts: 74
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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!
     
    Ranch Hand
    Posts: 46
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi,
    I would also like to get a answer for this.
    Thanks.
     
    mister krabs
    Posts: 13974
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    thanks a lot!
     
    Ranch Hand
    Posts: 126
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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!
     
    Ranch Hand
    Posts: 715
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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!
     
    Author
    Posts: 201
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    Don't get me started about those stupid light bulbs.
    reply
      Bookmark Topic Watch Topic
    • New Topic