From this:
Expected to find it in C:\Program Files\Java\jre1.6.
0_05\lib\tools.jar
it is rather obvious that your JAVA_HOME currently points to JRE and not
to full JDK installation. In order to install and run GF you will need
full JDK bundle so please install it if you don't have one already.
Thanks,
Snjezana
glassfish_at_javadesktop.org wrote:
>Help!
>I've downloaded the glassfish binaries for windows (running xp sp2). Set my JAVA_HOME user environment variable to the installation directoryof my JDK(6), unpacked/installed the binary, (which is fine, exists at c:\glassfish), and run "lib\ant\bin\ant -f setup.xml" from glassfish directory. All as per instructions.
>
>i get this message:
>
>--------------------------------------------------------------------------------------------------------------------
>C:\glassfish>lib\ant\bin\ant -f setup.xml
>Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6.
>0_05\lib\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_05
>
>BUILD FAILED
>C:\glassfish\setup.xml:156: The following error occurred while executing this li
>ne:
>C:\glassfish\setup.xml:136: The following error occurred while executing this li
>ne:
>C:\glassfish\setup.xml:132: Please set java.home to a JDK installation
>
>Total time: 0 seconds
>C:\glassfish>
>------------------------------------------------------------------------------------------------------------------
>
>Why is it looking in the JRE folder? I don't know. I have DEFINITELY set the JAVA_HOME variable to pouint to the JDK.
>here is the output of the "set" command:
>
>-----------------------------------------------------------------------------------------------------------------
>ALLUSERSPROFILE=C:\Documents and Settings\All Users
>APPDATA=C:\Documents and Settings\Jazz Andrews\Application Data
>CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip;C:\apache-tomcat-5.5.
>17\common\lib\servlet-api.jar;C:\apache-tomcat-5.5.17\common\lib\jsp-api.jar;C:\
>Servlets+JSP
>CLIENTNAME=Console
>CommonProgramFiles=C:\Program Files\Common Files
>COMPUTERNAME=JAZZ
>ComSpec=C:\WINDOWS\system32\cmd.exe
>FP_NO_HOST_CHECK=NO
>HOMEDRIVE=C:
>HOMEPATH=\Documents and Settings\Jazz Andrews
>java.home=C:\Program Files\Java\jdk1.6.0_05
>LOGONSERVER=\\JAZZ
>NUMBER_OF_PROCESSORS=2
>OS=Windows_NT
>Path=C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C
>:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Co
>mmon Files\GTK\2.0\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\P
>rogram Files\Common Files\Adobe\AGL;C:\Program Files\Java\jdk1.6.0_05\bin
>PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>PROCESSOR_ARCHITECTURE=x86
>PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 6, GenuineIntel
>PROCESSOR_LEVEL=6
>PROCESSOR_REVISION=0f06
>ProgramFiles=C:\Program Files
>PROMPT=$P$G
>QTJAVA=C:\Program Files\QuickTime\QTSystem\QTJava.zip
>SESSIONNAME=Console
>SystemDrive=C:
>SystemRoot=C:\WINDOWS
>TEMP=C:\DOCUME~1\JAZZAN~1\LOCALS~1\Temp
>TMP=C:\DOCUME~1\JAZZAN~1\LOCALS~1\Temp
>USERDOMAIN=JAZZ
>USERNAME=Jazz Andrews
>USERPROFILE=C:\Documents and Settings\Jazz Andrews
>VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
>windir=C:\WINDOWS
>-----------------------------------------------------------------------------------------------------------------------
>
>i found a bug report on this exact issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6443439
>which was deemed invalid by sun who assumed that the complainent had set the JAVA_HOME to the jre because thats what glassfish was saying. The bug was closed. there was a whole bunch of people writing in supporting the guy filing the bug saying, this IS a bug, i HAVE pointed JAVA_HOME to my jdk.
>
>please if anyone knows what is going on here could you post here. it is driving me up the wall.
>thanks heaps in advance...
>[Message sent by forum member 'jazzua' (jazzua)]
>
>http://forums.java.net/jive/thread.jspa?messageID=270646
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>