Brad Zdanivsky - 2003-03-12

Logged In: YES
user_id=732560

Guys I have the same error, it seems ...

the build.xml is:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<project name="ProcTest" default="convert" basedir=".">

<!-- set global properties for this build -->
<property environment="env"/>

<!-- Bring in the "onewire" task. -->
<!-- taskdef name="tini"
classname="net.geeba.ant.Tini"/ -->
<!-- Bring in the "tini" task. -->
<taskdef name="tini"
classpath="c:\java\ant\lib\TiniAnt.jar"
classname="net.geeba.ant.Tini"/>

<!-- Location of the TINI installation. -->
<property name="tini.dir" value="c:\tini\tini1.02"/>

<!-- The TINI ROM API database file. -->
<property name="tini.db" value="${tini.dir}\bin\tini.db"/>

<!-- The TINI classes. -->
<property name="tini.classes" value="${tini.dir}
\bin\tiniclasses.jar"/>

<!-- Where tini.jar is. -->
<property name="tini.jar" value="${tini.dir}\bin\tini.jar"/>

<!-- The OneWire containers. -->
<property name="tini.containers" value="${tini.dir}
\bin\owapi_dependencies_TINI_001.jar"/>

<!-- Where the OneWire dependency groups are defined. -->
<property name="tini.containers.dep" value="${tini.dir}
\bin\owapi_dep.txt"/>

<!-- message -->
<target name="message">
<echo message="--------------------------------------------
--"/>
<echo message=" ANT_HOME is set
to = ${env.ANT_HOME} "/>
<echo message=" JAVA_HOME is set
to = ${env.JAVA_HOME} "/>
<echo message=" TINI_HOME is set
to = ${env.TINI_HOME} "/>
<echo message="--------------------------------------------
--"/>
</target>

<!-- clean -->
<target name="clean" depends="message" >
<delete>
<fileset dir="." includes="**/*.class"/>
<fileset dir="."
includes="**/*.tini"/>
</delete>
</target>

<!-- compile -->
<target name="compile" depends="clean">
<javac target="1.1" srcdir="."
destdir=".">
<classpath>
<pathelement
location="c:\j2sdk1.4.1\jre\lib\rt.jar"/>
<!--- pathelement
location="${env.TINI_HOME}"/ -->
<pathelement
location="c:\tini\tini1.02\bin\tini.jar"/>
<pathelement
location="c:\tini\tini1.02\bin\tiniclasses.jar"/>
<!--- pathelement
location="c:\tini\tini1.02\bin\tini_utils.jar"/ -->
</classpath>
</javac>
</target>

<target name="convert" depends="compile">
<tini classpath="${tini.jar}"

outputfile="ProcTest.tini"

database="${tini.db}"
dependpath="${tini.containers}"

dependencyfile="${tini.containers.dep}"
depends="ProcTest.java">
<convert dir="build"/>
</tini>
</target>

</project>

the debug log file is:

Buildfile: build.xml
Setting project property: ant.java.version -> 1.3
Detected Java Version: 1.3
Detected OS: Windows 2000
+User task: tar org.apache.tools.ant.taskdefs.Tar
+User task: fail org.apache.tools.ant.taskdefs.Exit
+User task: uptodate
org.apache.tools.ant.taskdefs.UpToDate
+User task: java org.apache.tools.ant.taskdefs.Java
+User task: execon
org.apache.tools.ant.taskdefs.ExecuteOn
+User task: echo org.apache.tools.ant.taskdefs.Echo
+User task: compileTask
org.apache.tools.ant.taskdefs.CompileTask
+User task: chmod org.apache.tools.ant.taskdefs.Chmod
+User task: javadoc2
org.apache.tools.ant.taskdefs.Javadoc
+User task: deltree org.apache.tools.ant.taskdefs.Deltree
+User task: cvs org.apache.tools.ant.taskdefs.Cvs
+User task: tstamp org.apache.tools.ant.taskdefs.Tstamp
+User task: unjar org.apache.tools.ant.taskdefs.Expand
+User task: patch org.apache.tools.ant.taskdefs.Patch
+User task: mail org.apache.tools.ant.taskdefs.SendEmail
+User task: gzip org.apache.tools.ant.taskdefs.GZip
+User task: copy org.apache.tools.ant.taskdefs.Copy
+User task: filter org.apache.tools.ant.taskdefs.Filter
+User task: jar org.apache.tools.ant.taskdefs.Jar
+User task: unzip org.apache.tools.ant.taskdefs.Expand
+User task: rename
org.apache.tools.ant.taskdefs.Rename
+User task: copyfile
org.apache.tools.ant.taskdefs.Copyfile
+User task: gunzip org.apache.tools.ant.taskdefs.GUnzip
+User task: antcall
org.apache.tools.ant.taskdefs.CallTarget
+User task: taskdef org.apache.tools.ant.taskdefs.Taskdef
+User task: mkdir org.apache.tools.ant.taskdefs.Mkdir
+User task: sql org.apache.tools.ant.taskdefs.SQLExec
+User task: replace org.apache.tools.ant.taskdefs.Replace
+User task: ant org.apache.tools.ant.taskdefs.Ant
+User task: style
org.apache.tools.ant.taskdefs.XSLTProcess
+User task: fixcrlf org.apache.tools.ant.taskdefs.FixCRLF
+User task: genkey
org.apache.tools.ant.taskdefs.GenerateKey
+User task: zip org.apache.tools.ant.taskdefs.Zip
+User task: antstructure
org.apache.tools.ant.taskdefs.AntStructure
+User task: javac org.apache.tools.ant.taskdefs.Javac
+User task: available
org.apache.tools.ant.taskdefs.Available
+User task: move org.apache.tools.ant.taskdefs.Move
+User task: signjar org.apache.tools.ant.taskdefs.SignJar
+User task: property
org.apache.tools.ant.taskdefs.Property
+User task: unwar org.apache.tools.ant.taskdefs.Expand
+User task: touch org.apache.tools.ant.taskdefs.Touch
+User task: get org.apache.tools.ant.taskdefs.Get
+User task: javadoc org.apache.tools.ant.taskdefs.Javadoc
+User task: untar org.apache.tools.ant.taskdefs.Untar
+User task: delete org.apache.tools.ant.taskdefs.Delete
+User task: copydir org.apache.tools.ant.taskdefs.Copydir
+User task: war org.apache.tools.ant.taskdefs.War
+User task: exec org.apache.tools.ant.taskdefs.ExecTask
+User task: apply org.apache.tools.ant.taskdefs.Transform
+User task: rmic org.apache.tools.ant.taskdefs.Rmic
+User datatype: fileset org.apache.tools.ant.types.FileSet
+User datatype: patternset
org.apache.tools.ant.types.PatternSet
+User datatype: path org.apache.tools.ant.types.Path
+User datatype: mapper
org.apache.tools.ant.types.Mapper
Setting project property: java.runtime.name -> Java(TM) 2
Runtime Environment, Standard Edition
Setting project property: sun.boot.library.path -> C:\jdk1.3.1
\jre\bin
Setting project property: java.vm.version -> 1.3.1_02-b02
Setting project property: java.vm.vendor -> Sun Microsystems
Inc.
Setting project property: java.vendor.url -> http://java.sun.com/
Setting project property: path.separator -> ;
Setting project property: java.vm.name -> Java HotSpot(TM)
Client VM
Setting project property: file.encoding.pkg -> sun.io
Setting project property: java.vm.specification.name -> Java
Virtual Machine Specification
Setting project property: user.dir -> C:\tini\tini1.02
\dev\ProcTest
Setting project property: java.runtime.version -> 1.3.1_02-b02
Setting project property: java.awt.graphicsenv ->
sun.awt.Win32GraphicsEnvironment
Setting project property: os.arch -> x86
Setting project property: java.io.tmpdir -> C:\DOCUME~1
\ADMINI~1\LOCALS~1\Temp\ Setting project property: line.separator ->

Setting project property: java.vm.specification.vendor -> Sun
Microsystems Inc.
Setting project property: java.awt.fonts ->
Setting project property: os.name -> Windows 2000
Setting project property: ant.home -> C:\JAVA\ANT
Setting project property: java.library.path -> C:\jdk1.3.1
\bin;.;C:\WINNT\System32;C:\WINNT;.;C:\WINNT\system32;C
:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1
\ULTRAE~1;c:\jdk1.3.1\bin;c:\j2sdk1.4.1
\bin;c:\java\ant\bin;c:\java\jikes\bin\;c:\cywil\dev\tools\ftp\;c:\tin
i\tini1.02
Setting project property: java.specification.name -> Java
Platform API Specification
Setting project property: java.class.version -> 47.0
Setting project property: os.version -> 5.0
Setting project property: user.home -> C:\Documents and
Settings\Administrator
Setting project property: user.timezone ->
Setting project property: java.awt.printerjob ->
sun.awt.windows.WPrinterJob
Setting project property: file.encoding -> Cp1252
Setting project property: java.specification.version -> 1.3
Setting project property: java.class.path -> C:\jdk1.3.1
\lib\tools.jar;C:\JAVA\ANT\lib\TiniAnt.jar;C:\JAVA\ANT\lib\pars
er.jar;C:\JAVA\ANT\lib\jaxp.jar;C:\JAVA\ANT\lib\ant.jar;
Setting project property: user.name -> Administrator
Setting project property: java.vm.specification.version -> 1.0
Setting project property: java.home -> C:\jdk1.3.1\jre
Setting project property: user.language -> en
Setting project property: java.specification.vendor -> Sun
Microsystems Inc.
Setting project property: awt.toolkit ->
sun.awt.windows.WToolkit
Setting project property: java.vm.info -> mixed mode
Setting project property: java.version -> 1.3.1_02
Setting project property: java.ext.dirs -> C:\jdk1.3.1\jre\lib\ext
Setting project property: sun.boot.class.path -> C:\jdk1.3.1
\jre\lib\rt.jar;C:\jdk1.3.1\jre\lib\i18n.jar;C:\jdk1.3.1
\jre\lib\sunrsasign.jar;C:\jdk1.3.1\jre\classes
Setting project property: java.vendor -> Sun Microsystems Inc.
Setting project property: file.separator -> \ Setting project property: java.vendor.url.bug ->
http://java.sun.com/cgi-bin/bugreport.cgi
Setting project property: sun.io.unicode.encoding ->
UnicodeLittle
Setting project property: sun.cpu.endian -> little
Setting project property: user.region -> US
Setting project property: sun.cpu.isalist -> pentium i486 i386
Setting ro project property: ant.file -> C:\tini\tini1.02
\dev\ProcTest\build.xml
parsing buildfile C:\tini\tini1.02\dev\ProcTest\build.xml with
URI = file:C:/tini/tini1.02/dev/ProcTest/build.xml
Setting ro project property: ant.project.name -> ProcTest
Setting project property: basedir -> C:\tini\tini1.02
\dev\ProcTest
Project base dir set to: C:\tini\tini1.02\dev\ProcTest
+Task: property
[property] Loading Environment env.
Setting project property: env.SystemDrive -> C:
Setting project property: env.windir -> C:\WINNT
Setting project property: env.ANT_CMD_LINE_ARGS -> -
verbose -debug -logfile log.txt
Setting project property: env.PATHEXT -
> .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
Setting project property: env.USERDOMAIN -> ORBIT
Setting project property: env.PROCESSOR_IDENTIFIER ->
x86 Family 6 Model 8 Stepping 10, GenuineIntel
Setting project property: env.PROCESSOR_LEVEL -> 6
Setting project property: env.ComSpec ->
C:\WINNT\system32\cmd.exe
Setting project property: env.OS -> Windows_NT
Setting project property: env.ProgramFiles -> C:\Program
Files
Setting project property: env.HOMEDRIVE -> C:
Setting project property: env.HOMEPATH -> \ Setting project property: env.Path -
> .;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32
\Wbem;C:\PROGRA~1\ULTRAE~1;c:\jdk1.3.1
\bin;c:\j2sdk1.4.1
\bin;c:\java\ant\bin;c:\java\jikes\bin\;c:\cywil\dev\tools\ftp\;c:\tin
i\tini1.02
Setting project property: env.PROCESSOR_REVISION ->
080a
Setting project property: env.USERPROFILE ->
C:\Documents and Settings\Administrator
Setting project property: env.TMP -> C:\DOCUME~1
\ADMINI~1\LOCALS~1\Temp
Setting project property: env.TINI_HOME -> C:\tini\tini1.02\bin
Setting project property: env.ALLUSERSPROFILE ->
C:\Documents and Settings\All Users
Setting project property: env.USERNAME -> Administrator
Setting project property: env.LOGONSERVER -> \\ORBIT
Setting project property: env.Os2LibPath ->
C:\WINNT\system32\os2\dll;
Setting project property: env.PROMPT -> $P$G
Setting project property:
env.PROCESSOR_ARCHITECTURE -> x86
Setting project property: env.JAVA_HOME -> C:\jdk1.3.1
Setting project property: env.CommonProgramFiles ->
C:\Program Files\Common Files
Setting project property: env.ANT_HOME -> C:\JAVA\ANT
Setting project property: env.APPDATA -> C:\Documents and
Settings\Administrator\Application Data
Setting project property: env._JAVACMD -> C:\jdk1.3.1
\bin\java
Setting project property: env.TEMP -> C:\DOCUME~1
\ADMINI~1\LOCALS~1\Temp
Setting project property: env.NUMBER_OF_PROCESSORS -
> 1
Setting project property: env.LOCALCLASSPATH -
> "C:\jdk1.3.1
\lib\tools.jar";"C:\JAVA\ANT\lib\TiniAnt.jar";"C:\JAVA\ANT\lib\p
arser.jar";"C:\JAVA\ANT\lib\jaxp.jar";"C:\JAVA\ANT\lib\ant.jar"
;
Setting project property: env.SystemRoot -> C:\WINNT
Setting project property: env.COMPUTERNAME -> ORBIT
+Task: taskdef
Finding class net.geeba.ant.Tini
Class org.apache.tools.ant.taskdefs.Java loaded from system
loader
Class net.geeba.ant.Tini loaded from ant loader
+User task: tini net.geeba.ant.Tini
+Task: property
Setting project property: tini.dir -> c:\tini\tini1.02
+Task: property
Setting project property: tini.db -> c:\tini\tini1.02\bin\tini.db
+Task: property
Setting project property: tini.classes -> c:\tini\tini1.02
\bin\tiniclasses.jar
+Task: property
Setting project property: tini.jar -> c:\tini\tini1.02\bin\tini.jar
+Task: property
Setting project property: tini.containers -> c:\tini\tini1.02
\bin\owapi_dependencies_TINI_001.jar
+Task: property
Setting project property: tini.containers.dep -> c:\tini\tini1.02
\bin\owapi_dep.txt
+Target: message
+Task: echo
+Task: echo
+Task: echo
+Task: echo
+Task: echo
+Target: clean
+Task: delete
+Target: compile
+Task: javac
+Target: convert
Finding class org.apache.tools.ant.ProjectComponent
Build sequence for target `convert' is [message, clean,
compile, convert]
Complete build sequence is [message, clean, compile,
convert]

message:
[echo] ----------------------------------------------
[echo] ANT_HOME is set to = C:\JAVA\ANT
[echo] JAVA_HOME is set to = C:\jdk1.3.1
[echo] TINI_HOME is set to = C:\tini\tini1.02\bin
[echo] ----------------------------------------------

clean:
[delete] Deleting 2 files from C:\tini\tini1.02\dev\ProcTest
[delete] Deleting C:\tini\tini1.02\dev\ProcTest\Proc.class
[delete] Deleting C:\tini\tini1.02\dev\ProcTest\ProcTest.class

compile:
[javac] ant_log.txt skipped - don't know how to handle it
[javac] build.xml skipped - don't know how to handle it
[javac] hello.bat skipped - don't know how to handle it
[javac] load.txt skipped - don't know how to handle it
[javac] log.txt skipped - don't know how to handle it
[javac] Proc.java added as C:\tini\tini1.02
\dev\ProcTest\Proc.class doesn't exist.
[javac] ProcTest.java added as C:\tini\tini1.02
\dev\ProcTest\ProcTest.class doesn't exist.
[javac] Compiling 2 source files to C:\tini\tini1.02
\dev\ProcTest
[javac] Using modern compiler
[javac] Compilation args: -d C:\tini\tini1.02\dev\ProcTest -
classpath C:\tini\tini1.02\dev\ProcTest;C:\j2sdk1.4.1
\jre\lib\rt.jar;C:\tini\tini1.02\bin\tini.jar;C:\tini\tini1.02
\bin\tiniclasses.jar;C:\jdk1.3.1
\lib\tools.jar;C:\java\ant\lib\TiniAnt.jar;C:\java\ant\lib\parser.jar;
C:\java\ant\lib\jaxp.jar;C:\java\ant\lib\ant.jar -sourcepath
C:\tini\tini1.02\dev\ProcTest -target 1.1
[javac] Files to be compiled:
C:\tini\tini1.02\dev\ProcTest\Proc.java
C:\tini\tini1.02\dev\ProcTest\ProcTest.java

convert:
Finding class org.apache.tools.ant.ProjectComponent

BUILD FAILED

C:\tini\tini1.02\dev\ProcTest\build.xml:67: Could not create
task of type: tini due to java.lang.NoClassDefFoundError:
org/apache/tools/ant/ProjectComponent
--- Nested Exception ---
java.lang.NoClassDefFoundError:
org/apache/tools/ant/ProjectComponent
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.tools.ant.Project.createTask
(Project.java:439)
at
org.apache.tools.ant.UnknownElement.maybeConfigure
(UnknownElement.java:83)
at org.apache.tools.ant.Target.execute
(Target.java:152)
at org.apache.tools.ant.Project.runTarget
(Project.java:898)
at org.apache.tools.ant.Project.executeTarget
(Project.java:536)
at org.apache.tools.ant.Project.executeTargets
(Project.java:510)
at org.apache.tools.ant.Main.runBuild
(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 4 seconds

Notice the Compile is fine, and I am currently using a bat to
convert and ftp the files!

Any help Pleeease?

brad@cywil.com