Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compiler can not find javax.xml.bind package classes

843834Jul 25 2005 — edited Jul 27 2005
Hi

I have quite simple (I hope) problem. I'm trying to run some jaxb example but when I try to compile it I get:
Test.java:20: package javax.xml.bind does not exist
import javax.xml.bind.JAXBContext;
                      ^
Test.java:21: package javax.xml.bind does not exist
import javax.xml.bind.Marshaller;
                      ^
Test.java:22: package javax.xml.bind does not exist
import javax.xml.bind.Unmarshaller;
                      ^
Test.java:23: package javax.xml.bind does not exist
import javax.xml.bind.Validator;
                      ^
I added to my classpath all packages I found to have anything in common with jaxb:

jaxb-api.jar
jaxb-xjc.jar
jaxb-ri.jar
jaxb.libs.jar
jaxp-api.jar
sax.jar
dom.jar
xercesImpl.jar
xalan.jar
jax-qname.jar
namespace.jar

All of those are taken from jwsdp-1.6

Any ideas?

ania
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 24 2005
Added on Jul 25 2005
2 comments
476 views