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

Help Required.

 
Parameswaran Ramanan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had J2SDK for Java2 installed in my machine. To compile some old files, I had to install jdk1.1.8. After installing this version, I am getting the following error. I didn't change the classpath. Now my eclipse is also not opening.

C:\>java -version
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.1', but '1.5' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Re-install 1.5 then correct the earlier code such that it will compile on current compilers.
 
Parameswaran Ramanan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a 3rd party code and I cannot modify the code to compile in 1.5.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is backwards-compatible, both the compiler and the runtime environment. Anything that used to compile with 1.1.8 will still compile and run with the latest version. Or are you talking about using the Microsoft JVM?
 
Parameswaran Ramanan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am all set now.. I changed the java shortcut for eclipse. But I didn't understand how by installing java1.1.8, I lost java2.
 
Campbell Ritchie
Sheriff
Pie
Posts: 48940
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might not have lost Java 2 at all. If you put the location for jdk1.1.8 in your PATH it would obscure the path to JDK2.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic