Thanks Christian,

This was not a classpath issue. I had the wrong jar.

Jaxb1-impl.jar instead of jaxb.jar.

Once I fixed this, I had only one more issue. 

C:\LTK\LTKJava>ant jar
Buildfile: build.xml

init:

jaxb:
     [echo] Compiling the llrpdef.xsd schema with jaxb ...
      [xjc] Consider using <depends>/<produces> so that XJC won't do
unnecessary compilation
      [xjc] Compiling file:/C:/LTK/Definitions/llrpdef.xsd

BUILD FAILED
C:\LTK\LTKJava\build.xml:38: java.lang.LinkageError: JAXB 2.0 API is
being loaded from the bootstrap classloader, but th
is RI (from
jar:file:/c:/LTK/LTKJava/lib/jaxb-impl.jar!/com/sun/xml/bind/v2/model/im
pl/ModelBuilder.class) needs 2.1 API
. Use the endorsed directory mechanism to place jaxb-api.jar in the
bootstrap classloader. (See http://java.sun.com/j2se
/1.5.0/docs/guide/standards/)

Total time: 1 second
C:\LTK\LTKJava>

I added the jaxb-api.jar in the manner described in the web page and
everything worked great to build. Now on to testing.


-----Original Message-----
From: floerkem [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 02, 2007 10:58 AM
To: Paul Dietrich
Subject: Re: [ltk-d] Request... "LTKJava install for the JavaClueless"


Paul,

i don't think this is a classpath problem because the classpath is 
being set in
the build.xml file. It includes all jars in the lib directory e.g. for
xjc
task:

<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
             <classpath>
                <fileset dir="lib" includes="*.jar" />
             </classpath>
     </taskdef>

The missing class "com/sun/xml/bind/api/ErrorListener" is part of the
jaxb-impl.jar. When I remove this jar from the lib directory on my
machine, I
get the same error message you reported.

Can you check whether the com/sun/xml/bin/api/ErrorListener is 
contained in your
jaxb-impl.jar? (when you type "jar tvf lib/jaxb-impl.jar", you'll see
what is
included in the archive - this assumes you $JAVA_HOME/bin/jar.exe in 
your sytem
path)

     Christian


Zitat von Paul Dietrich <[EMAIL PROTECTED]>:

> Here here,
>
>
>
> I'm java ignorant. I spent a bit yesterday collecting and installing
> tools, but didn't get 'ant jar' to work. I'm working in windows
>
>
>
> Downloaded Apache-log4j-1.2.15.zip and unzipped.  Inside was the jar
> that was mentioned (log4j-1.2.15.jar) in the install.  I copied to
> LTKJava/lib.
>
> Downloaded jdom-1.0.zip and unzipped.  I followed its build
instructions
> and copied jdom.jar to LTKJava\lib
>
> Downloaded JAXB2_200612111.jar and ran it (double click on windows).
It
> unzipped.  I copied all the jar files in lib to LTKJava/lib
>
> Downloaded jalopy-1.5rc3.zip and unzipped.  Copied jalopy.jar to the
> LTKJava/lib directory
>
> Downloaded velocity-dep.1.5.jar and copied to LTKJava/lib directory.
>
>
>
> Set JAVA_HOME to my jdk (1.6.03)
>
> Set ANT_HOME to point to apache ant 1.7.0
>
>
>
> set
>
CLASSPATH=c:\LTK\LTKJava\lib\activation.jar;c:\LTK\LTKJava\lib\jalopy.ja
> r;c:\LTK\LTKJava\lib\jaxb1-impl.jar;
>
c:\LTK\LTKJava\lib\jaxb-api.jar;c:\LTK\LTKJava\lib\jaxb-xjc.jar;c:\LTK\L
>
TKJava\lib\jdom.jar;c:\LTK\LTKJava\lib\jsr173_1.0_api.jar;c:\LTK\LTKJava
> \lib\log4j-1.2.15.jar;c:\LTK\LTKJava\lib\velocity-dep-1.5.jar
>
>
>
> Ran 'ant jar'
>
>
>
> but it looks like my classpath wasn't right or there were missing jars
>
>
>
> C:\LTK\LTKJava>ant jar
>
> Buildfile: build.xml
>
>
>
> init:
>
>
>
> jaxb:
>
>     [echo] Compiling the llrpdef.xsd schema with jaxb ...
>
>
>
> BUILD FAILED
>
> C:\LTK\LTKJava\build.xml:38: java.lang.NoClassDefFoundError:
> com/sun/xml/bind/api/ErrorListener
>
>
>
> Total time: 0 seconds
>
> C:\LTK\LTKJava>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  _____
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Joel Peshkin
> Sent: Friday, November 02, 2007 8:38 AM
> To: [email protected]
> Subject: [ltk-d] Request... "LTKJava install for the JavaClueless"
>
>
>
> Hi All:
>
>
>
>  For those of us who would like to "kick the tires" of LTKJava without
> having to learn all about JAXB, would someone be interested in
providing
> a step-by-step description of how to handle all of the prerequisities?
>
>
>
> -Joel Peshkin
>
>
>
>




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to