I just asked a question about using javafxpackager to create a JavaFX jar, you can see it here. My problem is that I cannot include the classpath in the manifest. Well, when I While waiting for the answer, I tried maven-antrun-plugin. It works well, I can run my application with dependencies, but (there is always one but) only the dependency OUTSIDE my last jar. So it is like this Of:
FinalJar.jar lib |_{all dependencies here}
My manifest file passed The JavaFX-Class-Path attribute points to the dependency. If I put the dependency in the jar, like I want, it cannot find my dependency. Does it help?
Edit: This is the step of adding dependencies to the jar, which is located in pom.xml:
com. oracle ant-javafx ${javafx.version} ${java.home}/../lib/ant-javafx.jar system
com.oracle javafx ${javafx.version} ${java.home}/lib/jfxrt.jar system
< br />
Finally, the “build” part of my POM became This one (you can see that it also has a soldering part), it has been a long time since I used it, so I don’t even know if it is already good
I just asked a question about using javafxpackager to create a JavaFX jar, you can see it here. My problem is that I cannot include the classpath in the manifest. Well, when I am waiting When answering, I tried maven-antrun-plugin. It works well, I can run my application with dependencies, but (there is always one but) only the dependency OUTSIDE my last jar. So it looks like this:
FinalJar.jar lib |_{all dependencies here}
My manifest file passes JavaFX- The Class-Path attribute points to the dependency. If I put the dependency in the jar, like I want, it cannot find my dependency. Does it help?
Edit: This is the step of adding dependencies to the jar, which is located in pom.xml:
com.oracle groupId> ant-javafx ${javafx.version} ${java.home}/../lib/ant-javafx.jar system
com.oracle javafx ${javafx.version} ${java.home}/lib/jfxrt.jar system
Finally, the “build” part of my POM became this (you can see it also has a welding part), since It’s been a long time since I used it, so I don’t even know if it is ready