This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Embedded jar in java 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Embedded jar in java 6" Watch "Embedded jar in java 6" New topic

Embedded jar in java 6

Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
Hello all I my application I have following jar declared as a Maven dependecies:

serializer.jar, xercesImpl-2.8.1.jar, jaxb-api.jar, jaxb-impl.jar, saaj.jar

But I think some of them are already included in rt.jar ? Can you tell me so that I do not exclude dependencies if they aren't already present in java 6 ?

Best regards,


Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
any one have a idea ?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

XML parsing (what you use Apache Xerces for) and JAXB (Java API for XML Binding) are already in the standard Java library, in the packages javax.xml.parsers and javax.xml.bind. If you use the standard API you wouldn't have to use external libraries for that.

I don't know what serializer.jar and saaj.jar are.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
Ok thank you,

I have exclude them and I try to find find if serializer and saaj is already provided into java6 but it isn't very clear on forums ...
if anyone knows the question, I'm interested
Adrien Ruffie
Ranch Hand

Joined: Jan 14, 2009
Posts: 90
I also have another question.

In my application I have the following dependency:

org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.2:compile pulled by org.apache.axis2:addressing:mar:1.5.1:compile
javax.mail:mail:jar:1.4:compile also pulled by axis2:addressing:

+- org.apache.axis2:addressing:mar:1.5.1:compile
[INFO] | +-
[INFO] | | +- org.apache.geronimo.specs:geronimo-activation_1.1_spec:jar:1.0.1:compile
[INFO] | | +- org.apache.geronimo.specs:geronimo-javamail_1.4_spec:jar:1.2:compile
[INFO] | | \- jaxen:jaxen:jar:1.1.1:compile
[INFO] | +-
[INFO] | +-
[INFO] | +- javax.mail:mail:jar:1.4:compile
[INFO] | +- xalan:xalan:jar:2.7.0:compile

and com.sun.mail:javax.mail:jar:1.4.4:compile pulled by another dependency I my application.
Can't I exclude 2 of these 3 dependencies ... and which of them ?

xerces:xercesImpl:jar:2.8.1:compile pulled by net.sourceforge.nekohtml:nekohtml:jar:1.9.7:compile

In fact that xeces is already embedded into java 6 can I exclude 2.8.1 ? because my last exclude was xercesImpl 2.7.1 and
I have javax.mail:mail:jar:1.4:compile pull

And how can I be sure that there will be no problem in execution due to exclusions?
subject: Embedded jar in java 6
Similar Threads
JAXB 1.0 and 1.0.2
ant schemagen task
Getting xml contents from wsdl2java class
where to find the jar containing com.sun.xml.util .*
Very Urgent!!! Please Help