Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

runtime environment problem??

 
Can Chen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do anyone happen to meet about such a situation?
It is really something strenge.
Pls help me solve it?
Thx in advance!
C:\j2sdk1.4.0\JNDI\getStarted\examples\src>java Getattr
Registry key 'Software\JavaSoft\Java Runtime Environment\CurentVersion'
has value '1.4', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment. :roll: :roll:
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can,
Looks like you have a corrupted or confused install. If you have recently installed the new JDK 1.4 and didn't uninstall the previous version (probably 1.3) then Windows doesn't know how (or which) to load the VM. I would try uninstalling both JDK's and reinstalling the one you want. This may fix problem and it may not. You may have to hack the registry which is always a dangerous proposition. If you decide to do either of these things, you should certainly make backups, especially the registry.
Hope this helps
Michael Morris
SCJP
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!
 
Can Chen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
They all solved.
Thanks.
This was because that i change the CurrentVirsion of the runtime environment to 1.4 masually.
Now i know the virsion of development kit is differ from runtime environment.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic