question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Mac] Getting JRELoadError on launch

See original GitHub issue

Using JRE:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Running the jar directly with java -jar ../Java/desktop.jar does seem to work.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
metaphorecommented, Nov 13, 2020

Thanks a lot @phanviet At least in this version there are some nice logs with the clear crash stack trace. I think I found what’s the problem in your case and it’s gonna be patched up in the upcoming release!

0reactions
phanvietcommented, Nov 13, 2020

Thanks for your hard work @metaphore . I just tried and have no lucky, my step:

  1. Remove dir: /Users/xxx/.gdxtexturepackergui
  2. Run: java -jar desktop.jar, and log is below:
(venv) venv ❯ java -jar desktop.jar
Restarting the JVM with "startOnFirstThread" parameter.
External log file: /Users/xxx/.gdxtexturepackergui/logs/2011130906.log
Version: 4.9.0
OS: Mac OS X 10.15.6 x86_64
JRE: 11.0.8 Oracle Corporation
GPU: Intel(R) Iris(TM) Plus Graphics 640
OpenGL vendor: Intel Inc.
OpenGL version: 2.1 INTEL-14.7.8
[ExtensionModuleRepositoryService] Cached data is outdated.
[ExtensionModuleRepositoryService] Requesting new data from remote server.
[ConfigurationController] Incremental fonts are disabled
[GlobalShortcutHandler] Parsing shortcut file: hotkeys_default.txt
com.badlogic.gdx.utils.GdxRuntimeException: Unable to invoke method: setupInitialProject of type: com.crashinvaders.texturepackergui.controllers.ConfigurationController@4263b080 with parameters: [com.crashinvaders.texturepackergui.controllers.model.ModelService@62d363ab, com.crashinvaders.texturepackergui.controllers.projectserializer.ProjectSerializer@7889a1ac]
	at com.github.czyzby.autumn.context.impl.method.MethodInvocation.invoke(MethodInvocation.java:50)
	at com.github.czyzby.autumn.processor.impl.InitiateAnnotationProcessor.doAfterScanning(InitiateAnnotationProcessor.java:42)
	at com.github.czyzby.autumn.context.ContextInitializer.invokeProcessorActionsAfterInitiation(ContextInitializer.java:351)
	at com.github.czyzby.autumn.context.ContextInitializer.initiate(ContextInitializer.java:294)
	at com.crashinvaders.texturepackergui.App.initiateContext(App.java:100)
	at com.crashinvaders.texturepackergui.App.create(App.java:85)
	at com.crashinvaders.texturepackergui.desktop.ApplicationListenerWrapper.create(ApplicationListenerWrapper.java:14)
	at com.crashinvaders.texturepackergui.desktop.Lwjgl3AppWrapper.create(Lwjgl3AppWrapper.java:41)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.initializeListener(Lwjgl3Window.java:433)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:381)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:138)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:114)
	at com.crashinvaders.texturepackergui.desktop.ApplicationStarter.start(ApplicationStarter.java:56)
	at com.crashinvaders.texturepackergui.desktop.ApplicationStarter.main(ApplicationStarter.java:35)
Caused by: com.badlogic.gdx.utils.reflect.ReflectionException: Exception occurred in method: setupInitialProject
	at com.badlogic.gdx.utils.reflect.Method.invoke(Method.java:114)
	at com.github.czyzby.kiwi.util.gdx.reflection.Reflection.invokeMethod(Reflection.java:130)
	at com.github.czyzby.autumn.context.impl.method.MethodInvocation.invoke(MethodInvocation.java:47)
	... 13 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.badlogic.gdx.utils.reflect.Method.invoke(Method.java:108)
	... 15 more
Caused by: java.lang.NullPointerException
	at com.crashinvaders.texturepackergui.controllers.projectserializer.ProjectSerializer.loadProject(ProjectSerializer.java:72)
	at com.crashinvaders.texturepackergui.controllers.ConfigurationController.setupInitialProject(ConfigurationController.java:267)
	... 20 more

And it’s hang, app window doesn’t appear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JRELoadError showing when I open Worksnap App
Hi cindy@me,. We see you're having trouble getting the app you need to run. If the app shows that it's compatible with your...
Read more >
How to fix JRELoadError on macOS 10.15.4 Catalina?
When I download or brew-cask-install JOSM, jEdit (and propably any other java app) and run it, I get JRELoadError.
Read more >
JRELoadError when trying to open the jEdit text editor in MAC ...
Right-click on the jEdit.app/Java/jedit.jar file and select "Get Info". Click the icon in the upper-left corner of the info window - it will ......
Read more >
131 JRELoadError on startup. macOS 10.12.5 - SourceForge
I'm getting an error trying to open the app. Downloaded two files: projectlibre-1.7.dmg projectlibre-java7-1.7.dmg. Getting same error opening ...
Read more >
JRE Load error - Feed the Beast
Trying to install the launcher on my Mac. Running OSX El Capitan. Have all firewalls and such turned off. Will not launch, just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found