Test Runner for Java not working with cursor 3.10.17

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I am using the java extension pack, that includes java test runner.
Since a few days its not longer possible to start tests via IDE. Run dedicated Test etc.
Also the Feature to jump to a Test from a Class is not working.
In my .log i found:
!ENTRY com.microsoft.java.test.plugin 4 0 2026-07-07 16:24:15.814
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.microsoft.java.test.plugin [111]
Unresolved requirement: Require-Bundle: org.objectweb.asm; bundle-version=“[9.9.0,9.10.0)”

at org.eclipse.osgi.container.Module.start(Module.java:495)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1943)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

Steps to Reproduce

Create a Java-Class. Right click then select Go To Test. Create an Test. In the Testclass try to exesute just oner test.

Expected Behavior

Run Tests should work in IDE

Operating System

Linux

Version Information

Version: 3.10.17
VS Code Extension API: 1.125.0
Commit: c89f45b831621cdc5e951694db44fecd8fab1150
Date: 2026-07-05T06:39:45.228Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Linux x64 6.8.0-134-generic

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

logfile.log (34,6 KB)

Hey, thanks for the detailed log, it makes the cause clear right away. This is a version mismatch between two Java extensions, not a Cursor bug.

Key line:

Unresolved requirement: Require-Bundle: org.objectweb.asm; bundle-version="[9.9.0,9.10.0)"

Test Runner for Java by Microsoft runs inside the OSGi server from Language Support for Java by Red Hat and shares the org.objectweb.asm bundle with it. When these two extensions get out of sync in versions, usually after an auto update from the marketplace, the ASM requirement can’t be resolved and the test plugin won’t start. That’s why both Run Test and Go To Test stop working.

How to fix it:

  • In the Extensions panel, align the versions. Downgrade Language Support for Java by Red Hat to a version that provides ASM in the [9.9.0,9.10.0) range. In a similar thread, version 1.46.0 worked, try that or nearby versions.
  • Turn off auto update for both extensions right click the extension and disable Auto Update so they don’t drift again.
  • Run Java: Clean Java Language Server Workspace via Cmd+Shift+P or Ctrl+Shift+P, then reload the window.

More details and confirmations from other users here: Test Runner for Java not working with 2.0

Let me know if tests still won’t run after you align the versions.

@deanrie Thx for the quick reply.
A Downgrade of the Laguage Suppoort for Java to 1.54.0 fixed the issue.