Java install on Window xp?

I had a problem with oracle 9i and uninstalled it.

I had 1.3, 1.4, 1.5 java on my machine and 1.5 was default.
It looks like when i uninstalled oracle it must have deleted my java..
so reinstalled 1.5 and 1.4.

I set my class path to 1.4.

But from my dos, when i do java -version, i get 1.3. Even thoug there is no java 1.3.

How can i change it to 1.4??
Because my eclipse is asking for 1.4 and won't launch.
Spend 4 hours today trying to fix this..

Please help.
dkim18Asked:
Who is Participating?
 
CEHJCommented:
>>I set my class path to 1.4.

The version doesn't have anything to do with the classpath

If you want to compile and run from the command line, then place the path to 1.4 bin first in your PATH variable. For Eclipse, add it as a JRE
0
 
dkim18Author Commented:
I did.

I set path = C:\j2sdk1.4.2_11\bin

From my cmd, when I do jave -version, i still see java 1.3 instead and when i try to compile, it doesn't know javac command.

For the eclipse, i can't even open the eclipse, it won't launch it, i get a little pop up saying, require java 1.4.1 available:java 1.3.

I don't know what to do.

0
 
dkim18Author Commented:
fixed.

in the path variable, there was one oracle path which uses java 1.3 and this was sitting before the java 1.4.
I just moved it to the front.
Thanks much anyway.
0
 
CEHJCommented:
;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.