glassfish_at_javadesktop.org schrieb:
> D:\Soft\glassfish>cd glassfish
>
> D:\Soft\glassfish\glassfish>lib\ant\bin\ant -f setup.xml
> Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\li
> b\tools.jar
> Buildfile: setup.xml
>
> all:
>
> get.java.home:
>
> setup.init:
>
> check-java:
>
> get.java.home:
>
> setup.init:
>
> validate-java:
> [echo] Current Java Version 1.6.0_10
>
> BUILD FAILED
> D:\Soft\glassfish\glassfish\setup.xml:156: The following error occurred while ex
> ecuting this line:
> D:\Soft\glassfish\glassfish\setup.xml:136: The following error occurred while ex
> ecuting this line:
> D:\Soft\glassfish\glassfish\setup.xml:132: Please set java.home to a JDK install
> ation
>
> Total time: 1 second
> ----------------
> line 156: <antcall target="check-java"/>
> line 136: <antcall target="validate-java"/>
> line 132: <fail message="Please set java.home to a JDK installation" unless="jdk.present"/>
> ----------------
> I have no idea why it fails. Please help !
I'd suggest to set JAVA_HOME environment variable to your JDK install
directory:
<quote>> line 132: <fail message="Please set java.home to a JDK
installation" unless="jdk.present"/> </quote>
> [Message sent by forum member '60q' (60q)]
>
> http://forums.java.net/jive/thread.jspa?messageID=317601
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>