具体错误:
java.lang.ExceptionInInitializerError at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:147) at jogamp.opengl.ThreadingImpl$1.run(ThreadingImpl.java:83) at jogamp.opengl.ThreadingImpl$1.run(ThreadingImpl.java:66) at java.security.AccessController.doPrivileged(Native Method) at jogamp.opengl.ThreadingImpl.<clinit>(ThreadingImpl.java:66) at com.jogamp.opengl.Threading.disableSingleThreading(Threading.java:164) at javax.media.j3d.JoglPipeline.initialize(JoglPipeline.java:129) at javax.media.j3d.PGPipeline.getDefaultConfiguration(Unknown Source) Caused by: java.lang.RuntimeException: Please port CPUType detection to your platform (CPU_ABI string 'loongarch64') at com.jogamp.common.os.Platform$CPUType.query(Platform.java:211) at jogamp.common.os.PlatformPropsImpl.<clinit>(PlatformPropsImpl.java:240) ... 22 more java.lang.NoClassDefFoundError: Could not initialize class jogamp.opengl.ThreadingImpl at com.jogamp.opengl.Threading.disableSingleThreading(Threading.java:164) at javax.media.j3d.JoglPipeline.initialize(JoglPipeline.java:129) at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:92) at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:858) at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:267) at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:3811)
原因是jogmap没有在loongarch64上编译。参考吾其他博文编译即可。
编译之后,相应的jar包都要更新一下。