Forums Register Login
Wrong java version!
After installing java 6 update 20 ....i still get the version as 1.3 ,can someone could help me...and java 1.3 is not there in control panel
[Thumbnail for path.jpg]
What is your PATH environment variable set to? Are you sure you do not have Java 1.3 installed somewhere?

Do you have Oracle database client software installed? Older versions of the Oracle client software installed a Java 1.3 JDK along. Make sure the bin directory of your Java 6 JDK is in the PATH before any other Java installations on your system.
(And please just copy and paste text when showing console output. Thanks!)

Jesper Young wrote: Older versions of the Oracle client software installed a Java 1.3 JDK along

Your right ,i have Oracle 9i .

F:\oracle\ora92\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;JAVA_HOME\bin;

Just delete "C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;" from your path - oracle will work anyway.
Oracle has a reputation for installing older versions of Java and adding them to your PATH just where they are most annoying.
Even worse, it adds them at the start. And since the path is evaluated from left to right the Oracle path elements take precedence...

Rob Prime wrote:Even worse, it adds them at the start. ...

That's what I meant by "most annoying."

Arun raghvan wrote:PATH:
F:\oracle\ora92\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;JAVA_HOME\bin;


Change your PATH to the following:


Note: Do not use "JAVA_HOME" literally in your PATH. Windows will not understand that.
That's why you enclose it in % symbols:
I have both JAVA_HOME and ANT_HOME on my path like that, and it works like a charm.
Rob: In my experience that doesn't always work correctly, in some versions of Windows (?) it might set PATH before it sets JAVA_HOME, and then you'd have a literal "%JAVA_HOME%" in your path instead of the real path.
I've used this on several versions, including 32-bit Windows XP SP3 and both 32-bit and 64-bit Windows Server 2003 R2 SP2, and it has worked on all so far.
So why do we use classpath?? ...i'm am able to run the program ! but some specify to use class path can i know . why?
The classpath is what Java uses to determine where to look for classes.
But i never assigned value for classpath but ...i can execute in different directory.How is that so?
If there is no system or user classpath, the JVM looks in the current directory. It is like having a default classpath of . which would be overwritten by a system classpath.
This is my favorite show. And this is my favorite tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database

This thread has been viewed 5473 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 19, 2019 21:27:35.