This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Pie
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
Posts: 48445
56
  • 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