Setting Java path in Windows2000


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Setting Java path in Windows2000

Hybrid View

  1. #1
    Alimar Guest

    Setting Java path in Windows2000


    Hello everyone,

    I had to install Java copiler JSDK 1.3.1 on my computer that has
    Windows professional 2000, but I don't really know where to set the
    path for it to be able to compile and run my programs.
    In Windows 98,Me I used to set the path in autoexec.bat fiel, but it's not
    the case here!!
    I'll be more than glad to get your help.

  2. #2
    Colin McGuigan Guest

    Re: Setting Java path in Windows2000


    "Alimar" <java.@127.0.0.1> wrote in message news:3cd02cb0$1@10.1.10.29...
    >
    > Hello everyone,
    >
    > I had to install Java copiler JSDK 1.3.1 on my computer that has
    > Windows professional 2000, but I don't really know where to set the
    > path for it to be able to compile and run my programs.
    > In Windows 98,Me I used to set the path in autoexec.bat fiel, but it's not
    > the case here!!
    > I'll be more than glad to get your help.


    Control Panel -> System -> Advanced -> Environment Variables

    "Path" is listed under "System Variables"

    --
    Colin McGuigan



  3. #3
    MarkN Guest

    Re: Setting Java path in Windows2000


    If you use the installer to install the JDK instead of just copying files,
    values in the registry are used to determine which java.exe to use. Trust
    me, I found out the hard way. You can play with the path all you want.
    I have more than one JDK installed. I installed 1.4 and my IDE stopped working.
    I looked at the path and guess what? None of my jdks or jres are in the
    'PATH'. I had to reinstall 1.3.1.

    The best thing to do: Fully define the path to the Javac.exe and Java.exe
    (you can use parameters), set the path for anything additional and set the
    classpath in a batch file or in the IDE, if you use one. Don't depend on
    Windows to do anything right. The registry and environmental variables are
    a big pain and cause more grief than help.



    "Colin McGuigan" <cmcguigan@imany.com> wrote:
    >
    >"Alimar" <java.@127.0.0.1> wrote in message news:3cd02cb0$1@10.1.10.29...
    >>
    >> Hello everyone,
    >>
    >> I had to install Java copiler JSDK 1.3.1 on my computer that has
    >> Windows professional 2000, but I don't really know where to set the
    >> path for it to be able to compile and run my programs.
    >> In Windows 98,Me I used to set the path in autoexec.bat fiel, but it's

    not
    >> the case here!!
    >> I'll be more than glad to get your help.

    >
    >Control Panel -> System -> Advanced -> Environment Variables
    >
    >"Path" is listed under "System Variables"
    >
    >--
    >Colin McGuigan
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center