cancel
Showing results for 
Search instead for 
Did you mean: 

Failed build amp file - Ant problem

codersoft
Champ in-the-making
Champ in-the-making
Failed build amp file

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\jre6"


I have set JAVA_HOME in by console to: set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_37

The incredible thing is than ant tell me than the envriovment java home is ever C:\Program Files\Java\jre6


What happened? How can I resolve to build amp file?
1 REPLY 1

abarisone
Star Contributor
Star Contributor
Hi,
the problem should be solved if you set a JAVA_HOME variable pointing to your JDk installation using Settings->Control Panel->System->Advanced (tab)->Evnironment Variables (button) and inserting the variable either in the system level panel or user level panel.
You have to start a new console to get the modifications.

Regards,
Andrea