Results 1 to 8 of 8
Thread: jar file very big
- 06-23-2010, 10:16 AM #1
Member
- Join Date
- May 2010
- Posts
- 47
- Rep Power
- 0
jar file very big
Hi
initially when i started making changes to my project , the size of jar file was 2 mb not its 6 mb
i m sure i ma dding unnecessary things
please tell me does the import add modules to jar file.
compared to my older jar file , i have seen following packages added.please give me some idea from where do they come from
org/apache/html/dom/
com/lowagie/bc/asn1/
oracle/sql/
com/sun/
com/sun/java/
com/sun/java/help/
javax/
javax/help/
javax/help/plaf/
javax/help/plaf/basic/
javax/help/plaf/basic/images/
org/jdom/
org/jdom/adapters/
org/jdom/adapters/AbstractDOMAdapter.class
org/apache/log4j/
org/apache/log4j/xml/
regards
- 06-23-2010, 11:14 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Your question doesn't make much sense.
Which jar file are you concerned about?
What are exactly are you trying to do?
- 06-23-2010, 11:30 AM #3
Member
- Join Date
- May 2010
- Posts
- 47
- Rep Power
- 0
jar problem
sorry for not being clear
the thing is i find my runnable jar bigger than when i make a normal jar
when i use eclipse Export Wizard
for my understanding , based on what conditions are components packed into a jar i.e. for example
in my runnable jar contents i find
org/apache/xerces/dom/DocumentImpl.class
which i import com.sun.org.apache.xerces.internal.dom.DocumentImp l;
in my application
i assume import leads to DocumentImpl.class being added to the jar file ( correct me if im wrong )
But the issue is many other classes are also added to jar
org/apache/xerces/dom/ASDOMImplementationImpl.class
org/apache/xerces/dom/ASModelImpl.class
org/apache/xerces/dom/AttributeMap.class
org/apache/xerces/dom/AttrImpl.class
org/apache/xerces/dom/AttrNSImpl.class
org/apache/xerces/dom/CDATASectionImpl.class
org/apache/xerces/dom/CharacterDataImpl$1.class
org/apache/xerces/dom/CharacterDataImpl.class
My question , why is this happening , and where should i control it ?
regards
- 06-23-2010, 12:00 PM #4
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Who created the runnable jar? If you create the jar file yourself then it's you who decides what goes into it.
- 06-23-2010, 12:15 PM #5
Member
- Join Date
- May 2010
- Posts
- 47
- Rep Power
- 0
jar problem
yes
but i do not need the following
org/apache/xerces/dom/ASDOMImplementationImpl.class
org/apache/xerces/dom/ASModelImpl.class
org/apache/xerces/dom/AttributeMap.class
org/apache/xerces/dom/AttrImpl.class
org/apache/xerces/dom/AttrNSImpl.class
org/apache/xerces/dom/CDATASectionImpl.class
org/apache/xerces/dom/CharacterDataImpl$1.class
org/apache/xerces/dom/CharacterDataImpl.class
which are also added to jar
dunno why !!
- 06-23-2010, 12:30 PM #6
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Ok, answer the following questions.
Who created the jar?
If it is you created the jar file, how did you create the jar file?
- 06-23-2010, 12:42 PM #7
Member
- Join Date
- May 2010
- Posts
- 47
- Rep Power
- 0
jar problem
i use eclipse Export Wizard --> Selected "Runnable Jar" -->
Selected option
"Extract Required Lib into generated jars"
pressed Finish
in Eclipse
- 06-23-2010, 12:52 PM #8
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
How to show or open a file download or file save dialog box
By java_bond in forum New To JavaReplies: 0Last Post: 03-05-2010, 04:21 AM -
Sending a File from Server to Client and saving the file to Clients computer
By al_Marshy_1981 in forum NetworkingReplies: 8Last Post: 02-18-2010, 12:54 PM -
how to read openproj(Projity) file i.e. ,POD file(Project Management file)
By mahendra.athneria in forum New To JavaReplies: 0Last Post: 02-11-2009, 09:53 AM -
To open an image file such as Jpeg file using JAva Program
By itmani2020 in forum Advanced JavaReplies: 10Last Post: 07-11-2008, 09:57 AM -
How to parse the CSV(Comma separation values)file and validate the file using java
By padmajap13 in forum Advanced JavaReplies: 7Last Post: 05-23-2008, 03:46 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks