Please help..nu bee correct probable path.. (?)  
Author Message
Bart Cremers





PostPosted: 2006-11-22 15:56:00 Top

java-programmer, Please help..nu bee correct probable path.. (?)
ahmed khalak wrote:
> Hi
> Thank in advance.... I am getting error when I run from prompt (cmd)..
> I installed Jdk1.5.0_09 path is C:\Program files\Java\Jdk1.......
> I have oracle 9i and oracle 10g installed...
> Path and classpath I have put correctly in windowxp.. as follow
> path=C:\oracle..etc ;C:\Program File\java\Jdk1.5.0_09\bin
> classpath= .;C:\Program File\java\Jdk1.5.0_09\lib\root.jar
> Now when I check version for java and javac.. in other then Jdk1 directory
> I am getting version 1.3.1 where as jdk gives me it version I checked oracle
> directories
> In Oracle directory.. jre show 1.3.1 directory...
> how can I correct this problem.. my simple program compiles but running from
> promp gives error..
>
> would highly appreciate help
> :-) just starting learning Java..
>
> A Khalak

Change the path setting so it reads:

PATH=C:\Program File\java\Jdk1.5.0_09\bin;C:\oracle;...

The OS looks for commands on the PATH from left to right, so starting
with java, then oracle, and so on.

Besides this. The classpath setting isn't really needed. This is a
general note which might bring in problems later. If you don't have a
real need for it, simply remove the classpath setting. You can still
pass it to the java command using the "-classpath" switch.

Regards,

Bart

 
ahmed khalak





PostPosted: 2006-11-23 2:57:00 Top

java-programmer >> Please help..nu bee correct probable path.. (?) Thank you very much Bart
I appreciate very much.. help will do .. thanks and Happy
Thanks Giving.
Thanks again a lot.
a.
khalak
"Bart Cremers" <email***@***.com> wrote in message
news:email***@***.com...
>
> ahmed khalak wrote:
>> Hi
>> Thank in advance.... I am getting error when I run from prompt
>> (cmd)..
>> I installed Jdk1.5.0_09 path is C:\Program files\Java\Jdk1.......
>> I have oracle 9i and oracle 10g installed...
>> Path and classpath I have put correctly in windowxp.. as follow
>> path=C:\oracle..etc ;C:\Program File\java\Jdk1.5.0_09\bin
>> classpath= .;C:\Program File\java\Jdk1.5.0_09\lib\root.jar
>> Now when I check version for java and javac.. in other then Jdk1
>> directory
>> I am getting version 1.3.1 where as jdk gives me it version I checked
>> oracle
>> directories
>> In Oracle directory.. jre show 1.3.1 directory...
>> how can I correct this problem.. my simple program compiles but running
>> from
>> promp gives error..
>>
>> would highly appreciate help
>> :-) just starting learning Java..
>>
>> A Khalak
>
> Change the path setting so it reads:
>
> PATH=C:\Program File\java\Jdk1.5.0_09\bin;C:\oracle;...
>
> The OS looks for commands on the PATH from left to right, so starting
> with java, then oracle, and so on.
>
> Besides this. The classpath setting isn't really needed. This is a
> general note which might bring in problems later. If you don't have a
> real need for it, simply remove the classpath setting. You can still
> pass it to the java command using the "-classpath" switch.
>
> Regards,
>
> Bart
>