Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2006

Tip: Looking for answers? Try searching our database.

Creating Jar files

Thread view: 
carlito@whitmore.fsnet.co.uk - 08 Feb 2006 21:06 GMT
I am new to creating jar files.(and new to posting messages) i need to
create a jar file that has two packages inside it but cannot for the
life of me think how to tell the command line how to include all class
files in the following structure:

i have two Packages:
ORG.oclc.os.SRW \\this contains class files]
gov.loc.www.zing.srw \\ this contains class files and more sub
directories

I have updated some of the classes in these packages and want my new
jar to have the same structure.

I would be greatful if someone could help me

Cheers Guys

Andrew
SMC - 09 Feb 2006 03:58 GMT
On Thu, 09 Feb 2006 08:06:09 +1100, carlito wrote:

> I am new to creating jar files.(and new to posting messages) i need to
> create a jar file that has two packages inside it but cannot for the
[quoted text clipped - 14 lines]
>
> Andrew

jar cvf myjar.jar <dir1> <dir2>

Assuming you have the two directory structures (org/oclc/... and
gov/loc/..) under the same parent directory then you can run the above
from within that parent directory as:

jar cvf myjar.jar org gov

Signature

Sean

Quidquid latine dictum sit, altum sonatur. - Whatever is said in Latin
sounds profound.

Rhino - 09 Feb 2006 14:26 GMT
>I am new to creating jar files.(and new to posting messages) i need to
> create a jar file that has two packages inside it but cannot for the
[quoted text clipped - 12 lines]
>
> Cheers Guys

You may find the tutorial on Jars helpful. Have a look at:
http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

--
Rhino
carlito@whitmore.fsnet.co.uk - 12 Feb 2006 12:05 GMT
Thanks very much That helped a lot

Cheers

Andrew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.