Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Exception on Initial Launch #12

Open
atomicdad opened this issue Jan 15, 2025 · 3 comments
Open

Exception on Initial Launch #12

atomicdad opened this issue Jan 15, 2025 · 3 comments
Assignees
Labels

Comments

@atomicdad
Copy link

Details:
terramaster-3.02.jar
Windows 11
java version "1.8.0_431"

java -jar .\terramaster-3.02.jar

Returns the following exception.

WARNING: Couldn't load properties : java.io.FileNotFoundException: terramaster.properties (The system cannot find the file specified)

I've tried a few things include giving it a blank terramaster.properties file, updating JRE to the version above, and downgrading to the 3.00 version. All fail to launch.

When I made a blank terramaster.properties that error went away but I get NoSuchMethodError exception.

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: java.lang.String.isBlank()Z

Not sure what the Z at the end of that is. I'm also really confused about what version of the Java runtime is the latest. Official JRE download gave me "Java 8" I believe. And after going down a rabbit hole of Oracle versioning it appears that is the latest.

Not sure what I'm doing wrong here.

@wkitty42
Copy link

yeah, there's definitely something wrong there...

$ java --version
openjdk 11.0.25 2024-10-15
OpenJDK Runtime Environment (build 11.0.25+9-post-Ubuntu-1ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.25+9-post-Ubuntu-1ubuntu122.04, mixed mode, sharing)

i haven't done windows in probably 20 years but i do remember a few dances with multiple versions of java or something being installed... IIRC i had to go into the control panel to the icon for it, open it, and then figure out how to have the system run the latest version by default... i don't recall if that included uninstalling older versions or not... sometimes older ones must be left on the system for other things that won't run with the newer...

@atomicdad
Copy link
Author

Ok, apparently the official Oracle JRE is for Java 8. And they do not provide JREs for any versions after this. I grabbed a Java 21 JRE from here https://adoptium.net/temurin/releases/?os=windows&arch=x64&package=jre and it launches. Sorry for the confusion and thank you for the help. I guess if nothing else this issue might help point someone else in the right direction with Windows. It's strange to me that you have to go to a third party for a JRE, but now I know!

@Portree-Kid
Copy link
Owner

Oh dear. Sorry it seems I broke JDK8. It should be easy to "downgrade" it. I'll also test the initial start.

@Portree-Kid Portree-Kid self-assigned this Jan 16, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants