but you have to understand that those class files might need access to other class files in the jar file as well.
Main Topics
Browse All TopicsDoes anyone know of a way to include all the needed java files and resource files in a project? I'm trying to use loadjava in Oracle 8i. I load my first file and then load the library files that it depends on. Those files then depend on other files and I have a feeling I'll be here all day loading java files. I'm hoping to create a directory with all the files that my first file needs. I don't want to include the entire jar files - because it will load each and every class file in the library even if I'm not using it. I hope I've explained this clearly enough. Let me know if I haven't.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
to extract a JAR
http://java.sun.com/docs/b
JBuilder and IDE for java applications development, provides such functionalities in easy steps.
JBuilder can be found here
www.borland.com
What ever your immediate gains, I honestly dont think you should be unpacking and providing a limited collection of the api class files. For one thing(as someone else pointed out) the classes in your limited collection will very probably require other classes in the jar. Also in case you need to enhance or even fix some probable defects you would invariably require th ehelp of these additional classes (as they are all related and part of a larger world).
These classes were bundled together for a reason and stripping them might be a harmful thing to do for your project. If necessary you can compress the jars - java knows how to pull out classes from .jar and .zip files.
HOpe that helps,
Anoop
I agree with anokun7 that you should not be unpacking the JAR and moving some of the files somewhere else and using only those - I don't remember ever doing it in years.
>> because it will load each and every class file in the library even if I'm not using it
Are you talking about class-loading while running your program or are you talking about loadjava? If its the former, then the class will only be loaded when it is needed. In case of the latter, I am not sure (as I have not worked with it), but I doubt if you will be: >> here all day loading java files
:)
Business Accounts
Answer for Membership
by: InNoCenT_Ch1ldPosted on 2005-10-27 at 18:50:25ID: 15176113
you can extract the files in you jar out and copy only those files that you need to the directory.