ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Waugh" <ptwa...@gmail.com>
Subject Re: missing tools.jar????
Date Sun, 10 Aug 2008 17:23:11 GMT
Thanks, I was messing with Java_Home and wasn't thinking!!!  That
fixed it completely.

Patrick

On Sun, Aug 10, 2008 at 11:51 AM, Scot P. Floess <floess@mindspring.com> wrote:
> Looks like your JAVA_HOME is pointing to the JRE...
>
> tools.jar contains javac and that comes with the JDK...
>
> Just need to point your JAVA_HOME to the dir that contains the JDK...
>
> On Sat, 9 Aug 2008, Patrick Waugh wrote:
>
>> Hi,
>>
>> Everything was working fine... but now I get this:
>>
>> C:\Documents and Settings\Patrick\workspaces
>>>
>>> ant
>>
>> Unable to locate tools.jar. Expected to find it in C:\Program
>> Files\Java\jre1.6.
>> 0_07\lib\tools.jar
>> Buildfile: build.xml does not exist!
>> Build failed
>>
>> As you can see, not a classpath problem:
>>
>> C:\Documents and Settings\Patrick\workspaces
>>>
>>> ant -noclasspath
>>
>> Unable to locate tools.jar. Expected to find it in C:\Program
>> Files\Java\jre1.6.
>> 0_07\lib\tools.jar
>> Buildfile: build.xml does not exist!
>> Build failed
>> C:\Documents and Settings\Patrick\workspaces
>>>
>>
>> Here is -diagnostics:
>>
>> C:\Documents and Settings\Patrick\workspaces
>>>
>>> ant -diagnostics
>>
>> Unable to locate tools.jar. Expected to find it in C:\Program
>> Files\Java\jre1.6
>> 0_07\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:\apache-ant-1.7.1\lib\ant.jar
>> ant.home: C:\apache-ant-1.7.1
>>
>> -------------------------------------------
>> ANT_HOME/lib jar listing
>> -------------------------------------------
>> 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)
>> bb-ant-tools.jar (13699 bytes)
>> xercesImpl.jar (1223877 bytes)
>> xml-apis.jar (194354 bytes)
>>
>> -------------------------------------------
>> USER_HOME/.ant/lib jar listing
>> -------------------------------------------
>> user.home: C:\Documents and Settings\Patrick
>> 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:\apache-ant-1.7.1\lib\xercesImpl.jar
>> Namespace-aware parser :
>> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
>> Namespace-aware parser Location: C:\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\jre1.6.0_07\bin
>> java.vm.version : 10.0-b23
>> ant.library.dir : C:\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 3, v.3311
>> java.vm.specification.name : Java Virtual Machine Specification
>> user.dir : C:\Documents and Settings\Patrick\workspaces
>> java.runtime.version : 1.6.0_07-b06
>> java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
>> java.endorsed.dirs : C:\Program Files\Java\jre1.6.0_07\lib\endorsed
>> os.arch : x86
>> java.io.tmpdir : C:\DOCUME~1\Patrick\LOCALS~1\Temp\
>> line.separator :
>>
>> java.vm.specification.vendor : Sun Microsystems Inc.
>> user.variant :
>> os.name : Windows XP
>> ant.home : C:\apache-ant-1.7.1
>> sun.jnu.encoding : Cp1252
>> java.library.path : C:\Program
>> Files\Java\jre1.6.0_07\bin;.;C:\WINDOWS\Sun\Java\
>> bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Tcl\bin;C:\Program
>> Files\Autodesk\Maya2008
>> \bin;C:\Program
>> Files\Alias\StudioTools12.0\bin;C:\Perl\site\bin;C:\Perl\bin;C:\
>> Program Files\Development\ActiveState Perl Dev Kit 7.0\bin;C:\Program
>> Files\Micr
>> osoft DirectX
>> SDK\Utilities\Bin\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sy
>> stem32\Wbem;c:\Program Files\Microsoft SQL
>> Server\90\Tools\binn\;C:\Program File
>> s\Common Files\Autodesk Shared\;C:\Program
>> Files\Autodesk\backburner\;C:\Program
>> Files\Common Files\Adobe\AGL;C:\Program
>> Files\QuickTime\QTSystem\;C:\Program Fi
>> les\Microsoft SQL Server\80\Tools\Binn\;C:\PROGRA~1\SecureFX;C:\Program
>> Files\Ga
>> mes\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Terrain
>> SDK;C:\Program
>> Files\Common Files\Softimage;C:\Program Files\backburner 2\;C:\Program
>> Files\Dev
>> elopment\FSX;C:\Program Files\Common Files\Roxio
>> Shared\9.0\DLLShared\;C:\Progra
>> m Files\Java\jdk1.5.0_14\bin;C:\Program
>> Files\Subversion\bin;C:\bin\mercurial;C:
>> \WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
>> Files\Java\jre1
>> .6.0_07\bin;C:\Program Files\Research In Motion\BlackBerry JDE
>> 4.5.0\bin;C:\apac
>> he-ant-1.7.1\bin;c:\bin;C:\Python25;C:\Python25\Scripts;C:\Program
>> Files\Vim\vim
>> 70;c:\Program
>> Files\GNU\GnuPG;c:\unix\usr\local\wbin;C:\cygwin\bin;c:\Perl\site\
>> bin;c:\Perl\bin;c:\Program Files\Development\ActiveState Perl Dev Kit
>> 7.0\bin;c:
>> \Program Files\Plazmic CDK 4.2.2\bin;c:\Program Files\Microsoft DirectX
>> SDK\Util
>> ities\Bin\x86;c:\Program Files\Microsoft SQL
>> Server\90\Tools\binn\;C:\Program Fi
>> les\SecureFX;C:\Program Files\Common Files\Roxio
>> Shared\9.0\DLLShared\;C:\Progra
>> m Files\Autodesk\Maya2008\bin;c:\Program Files\Alias\StudioTools12.0\bin;
>> 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\Patrick
>> user.timezone : America/Chicago
>> java.awt.printerjob : sun.awt.windows.WPrinterJob
>> file.encoding : Cp1252
>> java.specification.version : 1.6
>> user.name : Patrick
>> java.class.path :
>> C:\apache-ant-1.7.1\lib\ant-launcher.jar;C:\apache-ant-1.7.1\l
>>
>> ib\ant-antlr.jar;C:\apache-ant-1.7.1\lib\ant-apache-bcel.jar;C:\apache-ant-1.7.1
>>
>> \lib\ant-apache-bsf.jar;C:\apache-ant-1.7.1\lib\ant-apache-log4j.jar;C:\apache-a
>>
>> nt-1.7.1\lib\ant-apache-oro.jar;C:\apache-ant-1.7.1\lib\ant-apache-regexp.jar;C:
>>
>> \apache-ant-1.7.1\lib\ant-apache-resolver.jar;C:\apache-ant-1.7.1\lib\ant-common
>>
>> s-logging.jar;C:\apache-ant-1.7.1\lib\ant-commons-net.jar;C:\apache-ant-1.7.1\li
>>
>> b\ant-jai.jar;C:\apache-ant-1.7.1\lib\ant-javamail.jar;C:\apache-ant-1.7.1\lib\a
>>
>> nt-jdepend.jar;C:\apache-ant-1.7.1\lib\ant-jmf.jar;C:\apache-ant-1.7.1\lib\ant-j
>>
>> sch.jar;C:\apache-ant-1.7.1\lib\ant-junit.jar;C:\apache-ant-1.7.1\lib\ant-launch
>>
>> er.jar;C:\apache-ant-1.7.1\lib\ant-netrexx.jar;C:\apache-ant-1.7.1\lib\ant-nodep
>>
>> s.jar;C:\apache-ant-1.7.1\lib\ant-starteam.jar;C:\apache-ant-1.7.1\lib\ant-style
>>
>> book.jar;C:\apache-ant-1.7.1\lib\ant-swing.jar;C:\apache-ant-1.7.1\lib\ant-testu
>>
>> til.jar;C:\apache-ant-1.7.1\lib\ant-trax.jar;C:\apache-ant-1.7.1\lib\ant-weblogi
>>
>> c.jar;C:\apache-ant-1.7.1\lib\ant.jar;C:\apache-ant-1.7.1\lib\bb-ant-tools.jar;C
>> :\apache-ant-1.7.1\lib\xercesImpl.jar;C:\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\jre1.6.0_07
>> 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_07
>> java.ext.dirs : C:\Program
>> Files\Java\jre1.6.0_07\lib\ext;C:\WINDOWS\Sun\Java\li
>> b\ext
>> sun.boot.class.path : C:\Program
>> Files\Java\jre1.6.0_07\lib\resources.jar;C:\Pro
>> gram Files\Java\jre1.6.0_07\lib\rt.jar;C:\Program
>> Files\Java\jre1.6.0_07\lib\sun
>> rsasign.jar;C:\Program Files\Java\jre1.6.0_07\lib\jsse.jar;C:\Program
>> Files\Java
>> \jre1.6.0_07\lib\jce.jar;C:\Program
>> Files\Java\jre1.6.0_07\lib\charsets.jar;C:\P
>> rogram Files\Java\jre1.6.0_07\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 :
>>
>> -------------------------------------------
>> Temp dir
>> -------------------------------------------
>> Temp dir is C:\DOCUME~1\Patrick\LOCALS~1\Temp\
>> Temp dir is writeable
>> Temp dir alignment with system clock is 0 ms
>>
>> -------------------------------------------
>> Locale information
>> -------------------------------------------
>> Timezone Central Standard Time offset=-18000000
>>
>> -------------------------------------------
>> Proxy information
>> -------------------------------------------
>> Java1.5+ proxy settings:
>> Direct connection
>>
>>
>> C:\Documents and Settings\Patrick\workspaces
>>>
>>
>> Interestingly, the user.home directory does indeed exist, although it
>> reports otherwise.
>>
>> Also, why no optional tasks????
>>
>> Any help appreciated.
>>
>> Patrick
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
>
> 252-478-8087 (Home)
> 919-754-4592 (Work)
>
> Chief Architect JPlate   http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
>
> Architect Keros          http://sourceforge.net/projects/keros
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message