Originally posted by John Cronk:
Ok I compared my settings with another person's PC here, and they were using JRE 1.5.
So I downloaded that and changed my eclipse JRE settings to point to this instead.
You are not required to use JRE but JDK. Eclipse internally refers JDK as JRE.
Originally posted by John Cronk:
Now on ant build I get
So it appears that Eclipse's understanding of what JAVA_HOME is has been affected by my changing the default JRE.
JAVA_HOME is definitely "C:\Program Files\Java\jdk1.5.0_12"
?? Again, any ideas anyone ?
This was bound to happen.
Now please execute the following steps to resolve your problem:
1) Goto Window --> Preferences --> Java --> Installed JREs
2) Select the Installed JRE displayed in the list which will be pointing to "C:\Program Files\Java\jre1.5.0_15" and Click on Edit
3) In the EditJRE window click on Browse button and select the location as "C:\Program Files\Java\jdk1.5.0_12".
4) Click on OK for each window and try to run you program again.
5) Your program should work now.
Kind Regards,
Suraj