I have a JavaFX application which is referring to few jars. I need to create a runnable jar of the application. However, MANIFEST file is referring to classpath lib/*.jar. So the runnable jar is expecting the *.jar to be present under /lib folder. If the jar is moved elsewhere, it doesn't work. I'm copying these *.jar inside my runnable jar. Still it is not referring to them. Please help me to refer to the jars present inside the jar.
Actually in eclipse it will create a runnable jar where it will extract the classpath classes to its own jar file. If you want to combine your application jar and reference jars together you can do the same.
If runnable jar's MANIFEST refers lib/*.jar means your application structure should be
Main Directory
runnable.jar
lib
a.jar
b.jar
I don't know how it works, by copying reference jars inside runnable jar.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.