lundi 26 octobre 2020

Getting a illegal reflective access error while starting a java application

i'm trying to use a Pseudo Programming Language called Hamster Simulator. It is written in java and i'm having issues to get it to start. I installed the openJDK 8 from https://adoptopenjdk.net/ and i run mac osx 10.15.7

This is the error my console prints out:

fabian@Fabians-iMac ~ % java -jar /Users/fabian/Desktop/hamstersimulator/hamstersimulator.jar     
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/Users/fabian/Desktop/hamstersimulator/lib/gluegen-rt.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-10-26 19:47:08.247 java[1363:26814] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
2020-10-26 19:47:08.248 java[1363:26814] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff36363b57 __exceptionPreprocess + 250
    1   libobjc.A.dylib                     0x00007fff6f1d45bf objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff3638c34c -[NSException raise] + 9
    3   AppKit                              0x00007fff335865ec -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310
    4   AppKit                              0x00007fff3356e052 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
    5   AppKit                              0x00007fff3356dac3 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
    6   libnativewindow_macosx.jnilib       0x000000014ef1f3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
    7   ???                                 0x000000010f1ab330 0x0 + 4548375344
)
libc++abi.dylib: terminating with uncaught exception of type NSException
zsh: abort      java -jar /Users/fabian/Desktop/hamstersimulator/hamstersimulator.jar
fabian@Fabians-iMac ~ %




Aucun commentaire:

Enregistrer un commentaire