Perhaps I spoke too soon...

Here are the two problems I am having:

1) I am only able to run Ant from within the Ant directory. I am trying
to use Ant to build a build.xml within a Pentaho BI application and the
steps indicate I should be able to execute Ant from within the Pentaho
directory.
2) When I run ant -diagnostics, it indicates that it is unable to find
the tools.jar file and that it is expecting to find it in my C:\Program
Files\Java\jre1.5.0_15\lib\tools.jar.

My environment variables are set as follows:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=C:\Progra~1\Ant\apache-ant-1.7.0
APPDATA=C:\Documents and Settings\Administrator.ENGDOM\Application Data
ClusterLog=C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=BIDEV
ComSpec=C:\WINDOWS\system32\cmd.exe
DEFLOGDIR=C:\Documents and Settings\All Users\Application
Data\McAfee\DesktopProtection
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Administrator.ENGDOM
JAVA_HOME=C:\Progra~1\Java\jdk1.5.0_15; 
JDK_HOME=c:\Progra~1\Java\jdk1.5.0_15;
LOGONSERVER=\\Q2K3
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Dell\SysMgt\RAC5;C:\Program Files\Dell\SysMgt\oma\bin;
C:\Progra~1\Ant\apache-ant-1.7.0\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0604
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\ADMINI~1.ENG\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1.ENG\LOCALS~1\Temp
USERDNSDOMAIN=QUINTON.COM
USERDOMAIN=ENGDOM
USERNAME=Administrator
USERPROFILE=C:\Documents and Settings\Administrator.ENGDOM
VSEDEFLOGDIR=C:\Documents and Settings\All Users\Application
Data\McAfee\DesktopProtection
windir=C:\WINDOWS

However, my ANT diagnostics are showing the following:
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre1.5.0_15\lib\tools.jar
------- Ant diagnostics report -------
Apache Ant version 1.7.0 compiled on December 13 2006

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.0
optional tasks : not available

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.0 compiled on December 13 2006
ant.java.version: 1.5
ant.core.lib: C:\Program Files\Ant\apache-ant-1.7.0\lib\ant.jar
ant.home: C:\Progra~1\Ant\apache-ant-1.7.0

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: C:\Progra~1\Ant\apache-ant-1.7.0
ant-antlr.jar (5769 bytes)
ant-apache-bcel.jar (8627 bytes)
ant-apache-bsf.jar (3980 bytes)
ant-apache-log4j.jar (3074 bytes)
ant-apache-oro.jar (39591 bytes)
ant-apache-regexp.jar (3737 bytes)
ant-apache-resolver.jar (4080 bytes)
ant-commons-logging.jar (3943 bytes)
ant-commons-net.jar (47163 bytes)
ant-jai.jar (21368 bytes)
ant-javamail.jar (7011 bytes)
ant-jdepend.jar (8152 bytes)
ant-jmf.jar (6609 bytes)
ant-jsch.jar (30122 bytes)
ant-junit.jar (92792 bytes)
ant-launcher.jar (11734 bytes)
ant-netrexx.jar (9895 bytes)
ant-nodeps.jar (430311 bytes)
ant-starteam.jar (35404 bytes)
ant-stylebook.jar (2334 bytes)
ant-swing.jar (6713 bytes)
ant-testutil.jar (14919 bytes)
ant-trax.jar (6897 bytes)
ant-weblogic.jar (14254 bytes)
ant.jar (1289806 bytes)
xercesImpl.jar (1212965 bytes)
xml-apis.jar (195119 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Documents and Settings\Administrator.ENGDOM
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\Ant\apache-ant-1.7.0\lib\xercesImpl.jar
Namespace-aware parser :
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: C:\Program
Files\Ant\apache-ant-1.7.0\lib\xercesImpl.jar

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path : C:\Program Files\Java\jre1.5.0_15\bin
java.vm.version : 1.5.0_15-b04
ant.library.dir : C:\Program Files\Ant\apache-ant-1.7.0\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:\Program Files\Ant\apache-ant-1.7.0\bin
java.runtime.version : 1.5.0_15-b04
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : C:\Program Files\Java\jre1.5.0_15\lib\endorsed
os.arch : x86
java.io.tmpdir : C:\DOCUME~1\ADMINI~1.ENG\LOCALS~1\Temp\
line.separator : 

java.vm.specification.vendor : Sun Microsystems Inc.
user.variant : 
os.name : Windows 2003
ant.home : C:\Progra~1\Ant\apache-ant-1.7.0
sun.jnu.encoding : Cp1252
java.library.path :
C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32
;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Dell\SysMgt\RAC5;C:\Program Files\Dell\SysMgt\oma\bin;
C:\Progra~1\Ant\apache-ant-1.7.0\bin
java.specification.name : Java Platform API Specification
java.class.version : 49.0
sun.management.compiler : HotSpot Client Compiler
os.version : 5.2
user.home : C:\Documents and Settings\Administrator.ENGDOM
user.timezone : America/Chicago
java.awt.printerjob : sun.awt.windows.WPrinterJob
file.encoding : Cp1252
java.specification.version : 1.5
user.name : Administrator
java.class.path :
C:\Progra~1\Ant\apache-ant-1.7.0\lib\ant-launcher.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-antlr.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-apache-bcel.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-apache-bsf.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-apache-log4j.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-apache-oro.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-apache-regexp.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-apache-resolver.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-commons-logging.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-commons-net.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-jai.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-javamail.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-jdepend.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-jmf.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-jsch.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-junit.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-launcher.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-netrexx.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-nodeps.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-starteam.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-stylebook.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-swing.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-testutil.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-trax.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant-weblogic.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\ant.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\xercesImpl.jar;C:\Program
Files\Ant\apache-ant-1.7.0\lib\xml-apis.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : C:\Program Files\Java\jre1.5.0_15
java.specification.vendor : Sun Microsystems Inc.
user.language : en
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode, sharing
java.version : 1.5.0_15
java.ext.dirs : C:\Program Files\Java\jre1.5.0_15\lib\ext
sun.boot.class.path : C:\Program
Files\Java\jre1.5.0_15\lib\rt.jar;C:\Program
Files\Java\jre1.5.0_15\lib\i18n.jar;C:\Program
Files\Java\jre1.5.0_15\lib\sunrsasign.jar;C:\Program
Files\Java\jre1.5.0_15\lib\jsse.jar;C:\Program
Files\Java\jre1.5.0_15\lib\jce.jar;C:\Program
Files\Java\jre1.5.0_15\lib\charsets.jar;C:\Program
Files\Java\jre1.5.0_15\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\ADMINI~1.ENG\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

It seems as if it has the JRE path locked in instead of the JDK path.
How do I get Ant to see the JDK path? And why am I unable to run Ant
from other directories?

Debbie Shapiro, Data Warehouse Manager
Office: 425.402.2233 
-----Original Message-----
From: Debbie Shapiro 
Sent: Monday, April 28, 2008 12:45 PM
To: Ant Users List
Subject: RE: Trouble with installation

Thanks so much for the quick response!

 think I have this working now. Part of the problem was having both the
JDK and JRE paths in my JAVA_HOME when I only needed the JDK there. I
also had to point to the JRE directory of my JDK path. I created a new
environment variable called JDK_HOME that only contains my JDK path as
well. I also had, for my ANT_HOME variable the higher level Ant
directory rather than the apache-ant-1.7.0 directory, which apparently
was causing some problems. So, apparently, Ant was a bit confused about
where it was looking for stuff.



Debbie Shapiro, Data Warehouse Manager
Office: 425.402.2233 
-----Original Message-----
From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 25, 2008 7:41 PM
To: Ant Users List
Subject: Re: Trouble with installation

What is the java home directory?
what is PATH and JAVA_HOME?

Also, you stated that the jdk was installed but later indicate that
jre was being used.

--glenn

On Fri, Apr 25, 2008 at 1:19 PM, Debbie Shapiro
<[EMAIL PROTECTED]> wrote:
> Hello -
>
>  Let me preface this with saying I am not a Java guru by any means. I
am
>  trying to install Ant 1.7 in conjunction with a Pentaho Business
>  Intelligence installation. I had extracted the application into a
>  directory on my server and tried to create a build.xml but then
learned
>  that Ant needs the Java JDK installed and not just a JRE. I had
1.5.0_04
>  JRE installed. Downloaded 1.5.0_15 JDK and installed that on my
server.
>  Yesterday, when I tried to run Ant -diagnostics it indicated it was
>  still pointing to my _04 version even though I had changed my
JAVA_HOME
>  and PATH to point to the new installation. I uninstalled the _04
version
>  completely. However, when I try to run Ant -diagnostics now it is
giving
>  me the following error:
>
>
>
>  Exception in thread "main" java.lang.NoClassDefFoundError:
>  org/apache/tools/ant/Launch/Launcher
>
>
>
>  I checked my java version. And this all seems correct: Java(tm) 2
>  Runtime Environment, Standard Edition (build 1.5.0_015-b04) Java
>  JotSpot(tm) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
>
>
>
>  I DO NOT have a CLASSPATH set. Only ANT_HOME, JAVA_HOME, PATH. What
am I
>  doing wrong here? I followed the instructions in the manual
completely.
>  Did not do any of the optional tasks.
>
>
>
>  Thanks in advance for any help!
>
>
>
>  Debbie Shapiro
>  Data Warehouse Manager
>  Cardiac Science Corporation * cardiacscience.com
>  3303 Monte Villa Parkway, Bothell, WA 98021
>  Office: 425.402.2233
>
>  Cardiac Science Corporation [NASDAQ: CSCX] is a global leader in
>  advanced cardiac diagnosis, resuscitation, rehabilitation, and
>  informatics products.
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to