Project doesn't open - Failed to start background index update task java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native

Answered

Hi,

 

I recently installed PHP Storm on one of my machines with arm/Mac CPU, with a Linux Ubuntu installation, and it fails when opening the IDE i.e. the project

 

When opening I see that the folder structure and files do not load. And there's the following exception thrown “Failed to start background index update task” (see full trace below please)

 

Here's some additional information:

JRE architecture

ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, not stripped

Java version

java --version
openjdk 21.0.6 2025-01-21 LTS
OpenJDK Runtime Environment (build 21.0.6+10-LTS)
OpenJDK 64-Bit Server VM (build 21.0.6+10-LTS, mixed mode, sharing)

CPU

Architecture:             aarch64
  CPU op-mode(s):         64-bit
  Byte Order:             Little Endian
CPU(s):                   6
  On-line CPU(s) list:    0-5
Vendor ID:                Apple

OS

Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy

 

Full trace

Failed to start background index update task

java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
	at com.intellij.ui.jcef.LibC.<clinit>(LibC.java:8)
	at com.intellij.ui.jcef.JBCefApp.isLinuxLibcSupported(JBCefApp.java:598)
	at com.intellij.ui.jcef.JBCefApp.isSupportedImpl(JBCefApp.java:290)
	at com.intellij.ui.jcef.JBCefApp.isSupported(JBCefApp.java:278)
	at com.intellij.ui.jcef.HwFacadeHelper.create(HwFacadeHelper.java:94)
	at com.intellij.ui.jcef.HwFacadeJPanel.<init>(HwFacadeJPanel.java:14)
	at com.intellij.ui.BalloonImpl$MyComponent.<init>(BalloonImpl.java:1804)
	at com.intellij.ui.BalloonImpl.createComponent(BalloonImpl.java:748)
	at com.intellij.ui.BalloonImpl.show(BalloonImpl.java:544)
	at com.intellij.ui.BalloonImpl.show(BalloonImpl.java:450)
	at com.intellij.openapi.wm.impl.status.ProcessBalloon.show(ProcessBalloon.kt:81)
	at com.intellij.openapi.wm.impl.status.ProcessBalloon.addIndicator(ProcessBalloon.kt:36)
	at com.intellij.openapi.wm.impl.status.InfoAndProgressPanel.addProgress(InfoAndProgressPanel.kt:248)
	at com.intellij.openapi.wm.impl.status.IdeStatusBarImpl.addProgressImpl$intellij_platform_ide_impl(IdeStatusBarImpl.kt:541)
	at com.intellij.openapi.wm.impl.status.IdeStatusBarImpl.addProgress(IdeStatusBarImpl.kt:464)
	at com.intellij.openapi.progress.impl.BackgroundableProcessIndicator.doBackground(BackgroundableProcessIndicator.java:163)
	at com.intellij.openapi.progress.impl.BackgroundableProcessIndicator.initializeStatusBar(BackgroundableProcessIndicator.java:94)
	at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:32)
	at com.intellij.openapi.progress.impl.BackgroundableProcessIndicator.<init>(BackgroundableProcessIndicator.java:68)
	at com.intellij.openapi.progress.impl.BackgroundableProcessIndicator.<init>(BackgroundableProcessIndicator.java:56)
	at com.intellij.openapi.progress.impl.BackgroundableProcessIndicator.<init>(BackgroundableProcessIndicator.java:41)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.createDefaultAsynchronousProgressIndicator(ProgressManagerImpl.java:149)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressAsynchronously(CoreProgressManager.java:476)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runAsynchronously(CoreProgressManager.java:453)
	at com.intellij.openapi.progress.impl.CoreProgressManager.run(CoreProgressManager.java:436)
	at com.intellij.openapi.project.MergingQueueGuiExecutor.startInBackgroundWithVisibleOrInvisibleProgress(MergingQueueGuiExecutor.kt:205)
	at com.intellij.openapi.project.MergingQueueGuiExecutor.startBackgroundProcess$lambda$6(MergingQueueGuiExecutor.kt:153)
	at com.intellij.openapi.project.SingleTaskExecutor.tryStartProcess(SingleTaskExecutor.kt:105)
	at com.intellij.openapi.project.MergingQueueGuiExecutor.startBackgroundProcess(MergingQueueGuiExecutor.kt:148)
	at com.intellij.openapi.project.DumbServiceImpl$DumbTaskLauncher.launch(DumbServiceImpl.kt:116)
	at com.intellij.openapi.project.DumbServiceImpl$queueTaskOnEdt$1.invokeSuspend(DumbServiceImpl.kt:433)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at com.intellij.openapi.application.impl.DispatchedRunnable.run(DispatchedRunnable.kt:44)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:236)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:25)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:218)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:117)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:43)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:675)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:573)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$18$lambda$17$lambda$16$lambda$15(IdeEventQueue.kt:355)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:857)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$18$lambda$17$lambda$16(IdeEventQueue.kt:354)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$2$lambda$1(IdeEventQueue.kt:1045)
	at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:128)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:917)
	at com.intellij.openapi.application.WriteIntentReadAction.compute(WriteIntentReadAction.java:55)
	at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$2(IdeEventQueue.kt:1045)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$3(IdeEventQueue.kt:1054)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:109)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1054)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$18(IdeEventQueue.kt:349)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:395)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@1424224233), com.intellij.codeWithMe.ClientIdContextElementPrecursor@556ebc59, CoroutineName(com.intellij.openapi.project.DumbServiceImpl), ModalityState.NON_MODAL, StandaloneCoroutine{Cancelled}@2b98089a, Dispatchers.EDT]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Unable to locate JNA native support library [in thread "DefaultDispatcher-worker-1"]
	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:30)
	at com.intellij.platform.ide.bootstrap.StartupUtil$scheduleLoadSystemLibsAndLogInfoAndInitMacApp$1$2.invokeSuspend(startup.kt:342)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
0
1 comment

Hello,

Could you please attach idea.log (Help | Show log in…) after restarting IDE and reproducing the issue? Probably wrong JDK is used to run IDE.

Do you use IntelliJ IDEA for ARM Linux?


 

0

Please sign in to leave a comment.