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.

05-01-2002, 03:57 PM

Colin McGuigan

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

05-02-2002, 07:38 AM

MarkN

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
>
>