PDA

View Full Version : JAVA_HOME environment variable under Vista


renegadeandy
03-07-2009, 05:31 PM
Hi!

I am trying to run an ant script and I am getting this error:

BUILD FAILED
C:\Users\Andy\workspace\Screensaver\src\build.xml:68: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre1.6.0"

Now Where is the JAVA_HOME environment variable set because I go to environment variables but i dont see JAVA_HOME there at all - and when I make one it still reports this error.

Obviously the correct path should be pointing to the JDK not the JRE?

Please help me change where this is pointing!

Thanks

Andy

Balu Sadhasivam
03-07-2009, 08:22 PM
JAVA_HOME should point to JDK and its where you get javac compiler.

Check if JDK is installed in your machine.. and i m not sure about Vista , but i guess its same like you setup JAVA_HOME in other OS.

renegadeandy
03-07-2009, 08:35 PM
Right i was running it through Eclipse and i sorted it from there.

Now, got it working - does anybody have any experiance with

https://screensavers.dev.java.net/

I was wondering if anybody would be able to explain if its possible to multi thread a screensaver app, as when I open the .scr it ran various other java threads.

Thanks

Andy