Okay, so, i compiled it fine, then used install4j to make an installer, it installs but then when it trys to start it, Java throws this error:
java.lang.ClassNotFoundException: org.jivesoftware.launcher.Startup
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Any help please? thanks
Message was edited by: winsrev
I know youre probably not looking for an answer anymore, but for the people that come through here looking, I think I found the solution. This is how to package spark into a single executable JAR with Maven.
You need to make a MVN assembly plugin definition in your spark-parent pom.xml. Right now there is only one in the spark-core pom.xml
It should follow this format
Here is a copy-able txt file
parent_pom_assembly_plugin.txt (1.1 KB)
Keep in mind you’ll have to change your spark version to match your currently installed version
Flow
September 2, 2020, 1:26pm
3
Ideally a fat jar would be one artifact produced by Sparks build system. @Rob_Rasmussen care to to create a PR against https://github.com/igniterealtime/Spark/blob/master/pom.xml with that?
Done (Be aware: I’m using a slightly older version of Spark)