I'm not sure if this question is answered in full or if my title is quite descriptive given my situation, but I was asked to convert the project from Ant to Maven. This part is not so bad, but I was told that this application was developed specifically for JRE version 1.5, and not JRE 6, all that I did using. Now I'm incredibly new to Eclipse and Java, so I was a bit confused when I was asked to tell Eclipse or Maven to create this particular project using JRE 1.5 instead. I believe that it is installed, and I tried to follow the steps described here: ( Eclipse: create and match different versions of the JRE ), but I get hooked.
I was able to modify the launch configuration to use the alternative jre jre1.5.0_11 JRE. When I tried to build it, the console spat out the following:
[ERROR] Unable to locate the Javac Compiler in: [ERROR] C:\Program Files (x86)\Java\jre1.5.0_11\..\lib\tools.jar [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE (the com.sun.tools.javac.Main class is required). [ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the JAVA_HOME environment variable.
I assume this means that I need to use JDK 1.5 to use JRE 1.5 since I am working with JDK 1.6 right now. Now, is there a way to install JDK 1.5 so this project can use it? My JAVA_HOME variable currently points to JDK 1.6, and I would like it to stay that way ... Is there a way to use them and just tell the project (either Eclipse or Maven ... however it works) to use the specific version JDK?
Kris schouw
source share