Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jar-file inside jar-file #77

Open
KenziTrader opened this issue Jul 24, 2018 · 2 comments
Open

jar-file inside jar-file #77

KenziTrader opened this issue Jul 24, 2018 · 2 comments

Comments

@KenziTrader
Copy link

I have a jar-file which packages its libraries in a lib-directory inside itself. The MANIFEST.MF inside the jar allows the libraries to be found.

When I call a class from the jar the library inside it is not found and I get java.lang.NoClassDefFoundError. I have to extract the lib-directory and add it manually to the class path.

How can I add jar-file inside a jar-file to the class path in JavaCall.jl?

@aviks
Copy link
Collaborator

aviks commented Jul 26, 2018

How would it work if you were running java directly? Does java -cp outerfile.jar SomeClass work? Can you provide a working example for me to try out?

@KenziTrader
Copy link
Author

There is an example which uses a custom class loader:

Deliver Your Java Application in One-JAR!

There is a very old bug report: JDK-4648386.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants