Problem
When the bundled IDE terminal is started, the IDE freezes.
The log file shows the following exception stacktrace:
SEVERE - #c.i.o.a.i.RwLockHolder - Could not initialize class com.pty4j.unix.PtyHelpers
java.lang.NoClassDefFoundError: Could not initialize class com.pty4j.unix.PtyHelpers
at com.pty4j.unix.Pty.ptyMasterOpen(Pty.java:130)
at com.pty4j.unix.Pty.openMaster(Pty.java:166)
at com.pty4j.unix.Pty.<init>(Pty.java:64)
at com.pty4j.unix.UnixPtyProcess.<init>(UnixPtyProcess.java:59)
at com.pty4j.PtyProcessBuilder.start(PtyProcessBuilder.java:147)
at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:251)
at org.jetbrains.plugins.terminal.LocalTerminalDirectRunner.createProcess(LocalTerminalDirectRunner.java:58)
at org.jetbrains.plugins.terminal.AbstractTerminalRunner.lambda$openSessionInDirectory$2(AbstractTerminalRunner.java:220)
at com.intellij.openapi.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native [in thread "ApplicationImpl pooled thread 89"]
at com.sun.jna.NativeLong.<clinit>(NativeLong.java:35)
at jtermios.linux.JTermiosImpl.<clinit>(JTermiosImpl.java:61)
at jtermios.JTermios.<clinit>(JTermios.java:288)
at com.pty4j.unix.PtyHelpers.<clinit>(PtyHelpers.java:190)
... 18 more
Cause
The warning in the log shows that the JNA library for ARM64 is installed. However, the user's CPU architecture is x64.
WARN - #c.i.p.i.b.AppStarter - Unable to load JNA library (os=Linux 6.1.0-21-amd64, jna.boot.library.path=/opt/idea-IU-241.17011.79/lib/jna/aarch64)
java.lang.UnsatisfiedLinkError: Unable to locate JNA native support library
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1014)
at com.sun.jna.Native.<clinit>(Native.java:221)
at com.intellij.jna.JnaLoader.load(JnaLoader.java:19)
at com.intellij.platform.ide.bootstrap.StartupUtil$scheduleLoadSystemLibsAndLogInfoAndInitMacApp$1$2.invokeSuspend(main.kt:368)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Resolution
Install the IDE from a correct installation package: https://www.jetbrains.com/idea/download. In this case it should be x64:
Comments
0 comments
Please sign in to leave a comment.