The 1.1.0 version worked great; the 1.3.0 or 1.3.1 both close without notification #6

Closed
opened 2023-10-25 19:16:58 +00:00 by Griffon-Prime · 5 comments
Griffon-Prime commented 2023-10-25 19:16:58 +00:00 (Migrated from github.com)

Wanted to see what was new with the 1.3.1 version but when I try to run it, the javaw.exe opens for a second and closes without notification. The 1.1.0 still works with no issues.

If I can somehow run it in a way to produce a log of the error, let me know. There is no update on screen; just a brief existence in Task Manager.

Wanted to see what was new with the 1.3.1 version but when I try to run it, the javaw.exe opens for a second and closes without notification. The 1.1.0 still works with no issues. If I can somehow run it in a way to produce a log of the error, let me know. There is no update on screen; just a brief existence in Task Manager.
andrewlalis commented 2023-10-25 19:19:13 +00:00 (Migrated from github.com)

Run the program from the terminal using java -jar <jarfile>; that will show output.

Run the program from the terminal using `java -jar <jarfile>`; that will show output.
Griffon-Prime commented 2023-10-25 19:44:43 +00:00 (Migrated from github.com)

Perfect. It appears I have an older version of Java because it says it only supports versions up to class file 60.0 and your program is looking for class file version 61.0. Not sure if backward compatibility is your goal, or maybe a noisier notification if it stops running, but that is my issue. I'll update my java and try again. Here is the text of the error:

Error: LinkageError occurred while loading main class nl.andrewlalis.blockbookbinder.BlockBookBinder
java.lang.UnsupportedClassVersionError: nl/andrewlalis/blockbookbinder/BlockBookBinder has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 60.0

Perfect. It appears I have an older version of Java because it says it only supports versions up to class file 60.0 and your program is looking for class file version 61.0. Not sure if backward compatibility is your goal, or maybe a noisier notification if it stops running, but that is my issue. I'll update my java and try again. Here is the text of the error: Error: LinkageError occurred while loading main class nl.andrewlalis.blockbookbinder.BlockBookBinder java.lang.UnsupportedClassVersionError: nl/andrewlalis/blockbookbinder/BlockBookBinder has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 60.0
Griffon-Prime commented 2023-10-25 19:58:36 +00:00 (Migrated from github.com)

Upgraded to JDK 21 and no issues now. Thanks.

Upgraded to JDK 21 and no issues now. Thanks.
andrewlalis commented 2023-10-25 22:55:41 +00:00 (Migrated from github.com)

Yep, I'm pretty sure I mentioned somewhere in the readme that at least java 17 was required. Now that version 21 is out, I might like to upgrade again, but good to see it's resolved.

Yep, I'm pretty sure I mentioned somewhere in the readme that at least java 17 was required. Now that version 21 is out, I might like to upgrade again, but good to see it's resolved.
winderine commented 2023-11-24 06:29:04 +00:00 (Migrated from github.com)

Okay, with Java 21 I still had this window not opening issue but opening it through the command line just worked. Using the same commands in a batch file worked (after I learned how to change directories to another drive). Java is so weird.

Okay, with Java 21 I still had this window not opening issue but opening it through the command line just worked. Using the same commands in a batch file worked (after I learned how to change directories to another drive). Java is so weird.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: andrew/BlockBookBinder#6
No description provided.