Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes Help Required. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Help Required. " Watch "Help Required. " New topic
Author

Help Required.

Parameswaran Ramanan
Greenhorn

Joined: Mar 07, 2007
Posts: 3
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

Joined: Sep 17, 2006
Posts: 1282
Re-install 1.5 then correct the earlier code such that it will compile on current compilers.


"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Parameswaran Ramanan
Greenhorn

Joined: Mar 07, 2007
Posts: 3
It is a 3rd party code and I cannot modify the code to compile in 1.5.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35443
    
    9
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?


Android appsImageJ pluginsJava web charts
Parameswaran Ramanan
Greenhorn

Joined: Mar 07, 2007
Posts: 3
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

Joined: Oct 13, 2005
Posts: 32833
    
    4
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Help Required.
 
Similar Threads
how to run in JDK 1.5.1
Help me with broken links
tomcat not starting
j2sdkee1.2.1 and The Sun' Tutorial Exercise 1
Registry Error