Closed sengsational closed 4 days ago
Updated BuildExeFromClassFiles.java so that it now creates the runnable jar. See https://github.com/sengsational/cwhelper/commit/49019d7e1dd495cc8f43c0460a92cbd8ced06998
@TPeterson94070 I left your specifics in the class file, but they're commented out. So when you pull this into your environment, you'll have to uncomment those, and comment mine. We probably should have a local (non-source control) config file, but this will work for now.
The implementation had a bug where backslashes were used when creating zip entries. That's why java -jar ConstructedJarFile.jar said "Could not find or load main class", even though the main class was there. Made the change here: https://github.com/sengsational/cwhelper/commit/e7d8522abc9745da0d59c5e0c2cc061911192f4c
With this update to JarUpdater.java, it should allow us to run the builder program one time and get the exe, the zipped exe, and the jar.
The above was checked into the master directly.
If you pull this down and it works, we can close this issue.
@TPeterson94070, if you can run the build and get a good jar, you can close this.
Roger that. It works now as long as I tell the 2024-09 Eclipse IDE to limit Java to JRE 1.8.
The build process requires the IDE "export runnable jar" process instead of just making the runnable jar.