File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Embedded jar in java 6

 
Adrien Ruffie
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Adrien Ruffie
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any one have a idea ?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Adrien Ruffie
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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] | +- org.apache.ws.commons.axiom:axiom-api:jar:1.2.8:compile
[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] | +- org.apache.ws.commons.axiom:axiom-impl:jar:1.2.8:compile
[INFO] | +- org.apache.ws.commons.axiom:axiom-dom:jar:1.2.8:compile
[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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic