File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to set jre version? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to set jre version?" Watch "How to set jre version?" New topic
Author

How to set jre version?

shalaka wadekar
Ranch Hand

Joined: Mar 21, 2008
Posts: 37
Hi friends,

I am badly stuck. can you help?
My machine has jre 1.5... & the oracle client installed on my machine has jre 1.3...
I have set the proper version in the Registry as well as copied the required file in my windows/system32..
Still when i load my DOS window & type java -version, it gives jre 1.3...
This is what I get:

java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

while I want it to take the server version which is jre1.5...


Regards,
Shalaka


shalaka
SCJP
SCWCD
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

Oracle puts their JDK in the PATH environment variable.
Do you know how to change that?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
shalaka wadekar
Ranch Hand

Joined: Mar 21, 2008
Posts: 37
Hi,

I do not know how to change that. Can someone help me with that?

Regards,
Shalaka
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38334
    
  23
There are details of how to set the PATH on Windows in the installation pages.
shalaka wadekar
Ranch Hand

Joined: Mar 21, 2008
Posts: 37
Thanks.. Issue resolved!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38334
    
  23
You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set jre version?