ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray, Brian" <B...@kable.com>
Subject Configuration error
Date Sat, 21 Nov 2009 16:13:57 GMT
I am trying to run the Mail sample application from the Google Web
Toolkit. I get the following...

 

C:\gwt-windows-1.7.1\samples\Mail>ant -noclasspath hosted

C:\Program Files\Java\JDK5

Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar

Buildfile: build.xml

 

libs:

 

javac:

    [javac] Compiling 11 source files to
C:\gwt-windows-1.7.1\samples\Mail\war\WEB-INF\classes

 

BUILD FAILED

C:\gwt-windows-1.7.1\samples\Mail\build.xml:39: 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\jre6"

 

Total time: 0 seconds

C:\Program Files\Java\JDK5

 

I put a "echo %JAVA_HOME%" as the first and last lines in the ant.bat
file. Notice that they print out "C:\Program Files\Java\JDK5", but also
notice that ant is telling me that it is using my "C:\Program
Files\Java\jre6".

 

Below is the output of ant -diagnostics....

 

C:\gwt-windows-1.7.1\samples\Mail>ant -diagnostics

C:\Program Files\Java\JDK5

Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\lib\tools.jar

------- Ant diagnostics report -------

Apache Ant version 1.7.1 compiled on June 27 2008

 

-------------------------------------------

 Implementation Version

-------------------------------------------

core tasks     : 1.7.1

optional tasks : not available

 

-------------------------------------------

 ANT PROPERTIES

-------------------------------------------

ant.version: Apache Ant version 1.7.1 compiled on June 27 2008

ant.java.version: 1.6

ant.core.lib: C:\Program Files\Apache\apache-ant-1.7.1\lib\ant.jar

ant.home: C:\Program Files\Apache\apache-ant-1.7.1

 

-------------------------------------------

 ANT_HOME/lib jar listing

-------------------------------------------

ant.home: C:\Program Files\Apache\apache-ant-1.7.1

ant-antlr.jar (5752 bytes)

ant-apache-bcel.jar (8611 bytes)

ant-apache-bsf.jar (3939 bytes)

ant-apache-log4j.jar (3056 bytes)

ant-apache-oro.jar (39627 bytes)

ant-apache-regexp.jar (3762 bytes)

ant-apache-resolver.jar (4071 bytes)

ant-commons-logging.jar (3910 bytes)

ant-commons-net.jar (47026 bytes)

ant-jai.jar (21348 bytes)

ant-javamail.jar (6998 bytes)

ant-jdepend.jar (8132 bytes)

ant-jmf.jar (6593 bytes)

ant-jsch.jar (30797 bytes)

ant-junit.jar (93518 bytes)

ant-launcher.jar (12143 bytes)

ant-netrexx.jar (9881 bytes)

ant-nodeps.jar (431580 bytes)

ant-starteam.jar (35355 bytes)

ant-stylebook.jar (2330 bytes)

ant-swing.jar (6738 bytes)

ant-testutil.jar (14941 bytes)

ant-trax.jar (6881 bytes)

ant-weblogic.jar (14205 bytes)

ant.jar (1323005 bytes)

xercesImpl.jar (1223877 bytes)

xml-apis.jar (194354 bytes)

 

-------------------------------------------

 USER_HOME/.ant/lib jar listing

-------------------------------------------

user.home: C:\Documents and Settings\bray

No such directory.

 

-------------------------------------------

 Tasks availability

-------------------------------------------

image : Missing dependency javax.media.jai.PlanarImage

sshexec : Missing dependency com.jcraft.jsch.UserInfo

scp : Missing dependency com.jcraft.jsch.UserInfo

jdepend : Missing dependency jdepend.xmlui.JDepend

A task being missing/unavailable should only matter if you are trying to
use it

 

-------------------------------------------

 org.apache.env.Which diagnostics

-------------------------------------------

Not available.

Download it at http://xml.apache.org/commons/

 

-------------------------------------------

 XML Parser information

-------------------------------------------

XML Parser : org.apache.xerces.jaxp.SAXParserImpl

XML Parser Location: C:\Program
Files\Apache\apache-ant-1.7.1\lib\xercesImpl.jar

Namespace-aware parser :
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser

Namespace-aware parser Location: C:\Program
Files\Apache\apache-ant-1.7.1\lib\xercesImpl.jar

 

-------------------------------------------

 System properties

-------------------------------------------

java.runtime.name : Java(TM) SE Runtime Environment

sun.boot.library.path : C:\Program Files\Java\jre6\bin

java.vm.version : 14.2-b01

ant.library.dir : C:\Program Files\Apache\apache-ant-1.7.1\lib

java.vm.vendor : Sun Microsystems Inc.

java.vendor.url : http://java.sun.com/

path.separator : ;

java.vm.name : Java HotSpot(TM) Client VM

file.encoding.pkg : sun.io

user.country : US

sun.java.launcher : SUN_STANDARD

sun.os.patch.level : Service Pack 2

java.vm.specification.name : Java Virtual Machine Specification

user.dir : C:\gwt-windows-1.7.1\samples\Mail

java.runtime.version : 1.6.0_16-b01

java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment

java.endorsed.dirs : C:\Program Files\Java\jre6\lib\endorsed

os.arch : x86

java.io.tmpdir : C:\DOCUME~1\bray\LOCALS~1\Temp\

line.separator :

            

java.vm.specification.vendor : Sun Microsystems Inc.

user.variant :

os.name : Windows XP

ant.home : C:\Program Files\Apache\apache-ant-1.7.1

sun.jnu.encoding : Cp1252

java.library.path :
C:\windows\system32;.;C:\windows\Sun\Java\bin;C:\windows\system32;C:\win
dows;C:\Program Files\Java\JDK5\bin;C:\Program
Files\Apache\apache-ant-1.7.1\bin;C:\windows\system32;C:\windows;C:\wind
ows\System32\Wbem;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNC
TION;C:\Program Files\Java\JDK5\bin;C:\Program
Files\Apache\apache-ant-1.7.1\bin;C:\windows\system32;C:\windows;C:\wind
ows\System32\Wbem;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNC
TION;;C:\PROGRA~1\E!TCP

java.specification.name : Java Platform API Specification

java.class.version : 50.0

sun.management.compiler : HotSpot Client Compiler

os.version : 5.1

user.home : C:\Documents and Settings\bray

user.timezone : America/Chicago

java.awt.printerjob : sun.awt.windows.WPrinterJob

file.encoding : Cp1252

java.specification.version : 1.6

user.name : BRay

java.class.path : C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-launcher.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-antlr.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-apache-bcel.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-apache-bsf.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-apache-log4j.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-apache-oro.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-apache-regexp.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-apache-resolver.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-commons-logging.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-commons-net.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-jai.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-javamail.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-jdepend.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-jmf.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-jsch.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-junit.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-launcher.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-netrexx.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-nodeps.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-starteam.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-stylebook.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-swing.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-testutil.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-trax.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant-weblogic.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\ant.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\xercesImpl.jar;C:\Program
Files\Apache\apache-ant-1.7.1\lib\xml-apis.jar

java.vm.specification.version : 1.0

sun.arch.data.model : 32

java.home : C:\Program Files\Java\jre6

java.specification.vendor : Sun Microsystems Inc.

user.language : en

awt.toolkit : sun.awt.windows.WToolkit

java.vm.info : mixed mode, sharing

java.version : 1.6.0_16

java.ext.dirs : C:\Program
Files\Java\jre6\lib\ext;C:\windows\Sun\Java\lib\ext

sun.boot.class.path : C:\Program
Files\Java\jre6\lib\resources.jar;C:\Program
Files\Java\jre6\lib\rt.jar;C:\Program
Files\Java\jre6\lib\sunrsasign.jar;C:\Program
Files\Java\jre6\lib\jsse.jar;C:\Program
Files\Java\jre6\lib\jce.jar;C:\Program
Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes

java.vendor : Sun Microsystems Inc.

file.separator : \

java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi

sun.cpu.endian : little

sun.io.unicode.encoding : UnicodeLittle

sun.desktop : windows

sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486
i386 i86

 

-------------------------------------------

 Temp dir

-------------------------------------------

Temp dir is C:\DOCUME~1\bray\LOCALS~1\Temp\

Temp dir is writeable

Temp dir alignment with system clock is 47 ms

 

-------------------------------------------

 Locale information

-------------------------------------------

Timezone Central Standard Time offset=-21600000

 

-------------------------------------------

 Proxy information

-------------------------------------------

Java1.5+ proxy settings:

Direct connection

 

 

C:\Program Files\Java\JDK5

 

Anybody have any ideas?


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message