Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
"jar" Commands to Split A JAR File
How to split a JAR file into two JAR files? I jave a huge JAR file and I only need to use one package of classes from the JAR file.
✍: FYIcenter.com
If you have a huge JAR file and want to build a smaller JAR file with classes from one package from the huge JAR file, you can follow these steps:
1. Put the huge JAR files into .\lib folder.
2. Create a sub folder called temp under .\lib folder.
\fyicenter>cd lib \fyicenter\lib>mkdir temp
3. Go to the .\lib\temp folder and extract all classes from a given package:
\fyicenter\lib>cd temp \fyicenter\lib\temp>jar -xf ..\activation.jar com/sub/activation
4. Create a new JAR file with only one package
\fyicenter\lib\temp>jar -cf ..\activation-sun.jar .
5. Take the activation-sun.jar in the .\lib folder and delete .\lib\temp folder.
Back to FAQ for JDK JAR (Java ARchive) Tool.
2016-05-28, 6079🔥, 0💬
Popular Posts:
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
JDK 11 jdk.scripting.nashorn.jm odis the JMOD file for JDK 11 Scripting Nashorn module. JDK 11 Scrip...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
Where to find answers to frequently asked questions on Downloading and Using JDK (Java Development K...