Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar files

 
vin miller
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kalichar Rangantittu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's my Manifest file. Which is also posted on I think three other threads here
For server


For Client

Hope that helps
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic