• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Java executable

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first le me describe my program:

-The program has a main class that is statically calling other programs
(ex: class1.main(Args); class2.main(Args)....)
-the programs is using three external JAR files (say j1, j2 and j3.jar)

the program is fully working. but I wanted to bundle everything in one executable file (JAR or exe)....

I tried for weeks but still it is not working....the created jar file doesn't have access to the archives files.....

any idea anyone???


Regards..
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One simple way: unjar all the jars into one directory, then jar them back up all together.
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A jar file does not support embedding other jar files inside of it. You either need to place all the jar files in the same directory or, as has already been suggested, expand all jars and then package them all up in a single jar.
 
Rabih Tayyem
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys....

For sure...you are the best,,,,,
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic