I wrote two classes: one for the GUI and another for the handler.
The application starts within the eclipse IDE (Ganymed) and packed as runnable jar-file on my own machine (Windows Vista, jre 1.6.0_14) without problem. Even starting the application from a shared device it works fine - for me!
I asked some collegues to give it a try, they all can start the application, but not execute the main method.
Since there are some necessary third party libraries, I packed them into the jar fiile. I wonder why it works for me and not for others. Who can give me hints where to search within code or project configuration in eclipse?
You can't package jar files within jar files. You either need to distribute them separately (and then use appropriate entries in the manifest to point to them), or repackage *all* required classes and libraries into a single jar file. There are tools out there that can do that for you.
posted 10 years ago
within eclipse I have three options:
- Extract required libraries into generated JAR
- Package required libraries into generated JAR
- Copy required libraries into a sub-folder next to the generated JAR
If I understand you right, the second option is to avoid. The first and third options are to prefer, right?