This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Need help setting classpath to run JAXB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Need help setting classpath to run JAXB" Watch "Need help setting classpath to run JAXB" New topic
Author

Need help setting classpath to run JAXB

Tony Brown
Greenhorn

Joined: Jan 02, 2004
Posts: 6
Hi,
For some reason, I cannot compile the schema-derived JAXB classes I create with xjc. My computer can't seem to find java's binding classes even though I've tried to set the classpath all different ways.
I think it's because my classpath isn't set properly. It runs fine if I compile with ant.
Here's my attempt to add the classpath to the command line. Can someone tell me what I'm doing wrong?


Here's a sample of the error message I get:

[ January 06, 2004: Message edited by: Tony Brown ]
[ January 06, 2004: Message edited by: Tony Brown ]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
;c:jwsdp-1.3\jwsdp-shared\lib\*.jar

Looks like classpath syntax errors to me - for one thing *.jar doesn't work (see the tooldocs on setting CLASSPATH) and who knows what it thinks of "c:jwsdp"
Bite the Bullet - stick with ANT - you can edit and re-edit a preposterously long classpath until you get it right and then use it again and again.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Need help setting classpath to run JAXB
 
Similar Threads
unmarshal-read with JAXB 2.0 and jwsdp 2.0
Cant find the correct SOAPMessage class for SAAJ eg. RMH
compiling with non-standard classes
JAXB sample in the JWSDP1.3
Anyone ever seen this before?