Workbench始终会自行关闭,.jar文件不会打开

问题描述

我想在Mac上打开.jar文件。我正在使用JDK15。无论如何,每次我尝试通过终端打开.jar文件时,都会出现:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/Users/danielamitteregger/Desktop/hamstersimulator-v29-06/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-11-09 06:12:21.601 java[22826:2172365] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
2020-11-09 06:12:21.601 java[22826:2172365] *** 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                      0x00007fff31d67b57 __exceptionPreprocess + 250
    1   libobjc.A.dylib                     0x00007fff6abae5bf objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff31d9034c -[NSException raise] + 9
    3   AppKit                              0x00007fff2ef8a5ec -[NSWindow(NSWindow_Theme) _postwindowNeedsToResetDragMarginsUnlesspostingdisabled] + 310
    4   AppKit                              0x00007fff2ef72052 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
    5   AppKit                              0x00007fff2ef71ac3 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
    6   libnativewindow_macosx.jnilib       0x00000001551ce3fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
    7   ???                                 0x000000011a3213f0 0x0 + 4734456816
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
Danielas-iMac:hamstersimulator-v29-06 danielamitteregger$ 

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)