Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Packing files to single encapsulated object  RSS feed

 
moshi cochem
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a class that I created, it use another files - a few dlls , a few jars, a few txt and xml,
but all of these other files are located in my class's directory or sub directories.
I want to pack it all to single object that I can take and put in any machine. Also do I want to invoke
methodes in my class , using httpRequest.
Well, I want to know which java object do I need to create ? I got an advise to create a jar file out of it...
The second thing that I should know is how to gather all of these elements to a single unit, that works independently.
Thanl a lot for any advice !
 
Campbell Ritchie
Marshal
Posts: 55672
161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Uses both jars and dlls? Does that mean you only intend it to run on a Windows box?

Look at the Java™ Tutorials and try unzipping all your jars into a single folder structure, then creating a new jar. that might help, or might not.

No idea what to do with the dlls, sorry.
 
moshi cochem
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, thanks for your advice.
well, i need the dlls because they treat a hardware that my java class is using.
about the zipping - should i zip all the folder together and then make a jar out of it ?
how can i create a jar from the zip file ?
and, i think i can do it using eclipse , am i right ?
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!