wood burning stoves*
The moose likes Beginning Java and the fly likes Different Java versions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Different Java versions" Watch "Different Java versions" New topic
Author

Different Java versions

Jessica Lang
Ranch Hand

Joined: Jul 23, 2002
Posts: 61
After compiling a sample pgm, I tried running the pgm by issuing "java Welcome", but the following error message is encountered:
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' has value '1.3', but '1.2' is required.
I am running jdk1.3.1. Any clue on the above?
Thanks....
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
My guess is that you have installed 1.3.1, but you are still running 1.2 when you type "java". type
PATH
and see if you have a java 1.2 "bin" directory in it.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I'd probably try to reinstall the JDK 1.3.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

and uninstall any older JDK's like e.g. 1.2.x
Rene


Regards, Rene Larsen
Dropbox Invite
Jessica Lang
Ranch Hand

Joined: Jul 23, 2002
Posts: 61
I have figured out the problem...which I would like to share here...
I have a Dietel Java Learning app installed on my pc that uses jre 1.2. However, I tried compiling and running the Welcome program under jdk1.3.1. This has resulted in the version conflict.
I think I will try to uninstall jre 1.2 and let jre 1.3.1 be default. Hopefully, my Dietel Java learning app can still run under jre 1.3.1....
Jessica Lang
Ranch Hand

Joined: Jul 23, 2002
Posts: 61
The problem is solved.... I checked the "Programs Installed" at the Control Panel and discovered that I had the following:
*** JRE 1.2 (used by Dietel)
*** JRE 1.3
*** JDK 1.3
First, I uninstalled JRE 1.2 only, but the java program wouldn't run. So, I ended up unistalled all of them and reinstall JDK1.4 and also changed the PATH accordingly under the "Env var". Now, the program runs perfectly. My pc (env) is all ready to move on to Java now.....
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Great!
 
 
subject: Different Java versions
 
Similar Threads
contents in the .bat file is not getting executed.
Casting and Conversions
Executing DOS command in Java
Execute a pgm from a UNIX server from JSP
jasper Reports