aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "jar files" Watch "jar files" New topic
Author

jar files

vin miller
Ranch Hand

Joined: Feb 01, 2001
Posts: 33
Does anyone know the syntax for the pathname of a file inside of a jar file? I'm trying to run my app from a jar and am having trouble with the pathname for Data's constructor (db.db is in the sam jar file as the class files).
Henry Zhang
Greenhorn

Joined: Jan 16, 2001
Posts: 15
If my understanding is correct, you may type
prompt>jar tvf jarfile.jar
to list the path of the files in JAR file.
Hope this clears up a little bit.

[This message has been edited by Henry Zhang (edited February 28, 2001).]


Henry Zhang
Kalichar Rangantittu
Ranch Hand

Joined: Jan 15, 2002
Posts: 240
Can someone please give an example of jarring files. I have a structure like
suncertify
->client
->server
I want to pull some classes from server into the client.jar. Where and how can I build it?


Never be satisfied with anything less than the best and you will surely pass the test...
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

I had a directory structure of c:\devexam\suncertify\..
Here are the commands I used to make my jar files. I also had a direcotry for both the server and the clients manifest file


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Kalichar Rangantittu
Ranch Hand

Joined: Jan 15, 2002
Posts: 240
Could you please post your manifest file sir. I am not sure how to use one. Very bad in deployment stuff
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Here's my Manifest file. Which is also posted on I think three other threads here
For server


For Client

Hope that helps
Mark
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jar files