sengsational / cwhelper

The code here is the background job for CW_EPG, an electronic program guide / DVR for Windows
1 stars 1 forks source link

Build process requires IDE runnable jar process #42

Closed sengsational closed 4 days ago

sengsational commented 6 days ago

The build process requires the IDE "export runnable jar" process instead of just making the runnable jar.

sengsational commented 6 days ago

Updated BuildExeFromClassFiles.java so that it now creates the runnable jar. See https://github.com/sengsational/cwhelper/commit/49019d7e1dd495cc8f43c0460a92cbd8ced06998

sengsational commented 6 days ago

@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.

sengsational commented 5 days ago

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.

sengsational commented 4 days ago

@TPeterson94070, if you can run the build and get a good jar, you can close this.

TPeterson94070 commented 4 days ago

Roger that. It works now as long as I tell the 2024-09 Eclipse IDE to limit Java to JRE 1.8.