# Jar files auto-created and added to classpath on Cursor startup

**URL:** <https://forum.cursor.com/t/jar-files-auto-created-and-added-to-classpath-on-cursor-startup/158569>\
**Category:** Bug Reports\
**Tags:** language-servers, java\
**Created:** [April 20, 2026, 11:42pm UTC](https://forum.cursor.com/t/jar-files-auto-created-and-added-to-classpath-on-cursor-startup/158569 "2026-04-20T23:42:10Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [April 22, 2026, 9:10am UTC](https://forum.cursor.com/t/jar-files-auto-created-and-added-to-classpath-on-cursor-startup/158569/9 "2026-04-22T09:10:07Z")

</div>

Hey, nice that you came back with a solution, this will really help other users who hit the same bug in a multi-project Gradle setup.

For future readers, here’s a quick summary:

- Upstream issue: [Gradle multi-project import materializes internal build/libs jars into live JDT classpath · Issue #4399 · redhat-developer/vscode-java · GitHub](https://github.com/redhat-developer/vscode-java/issues/4399)
- Workaround: add `"java.jdt.ls.scalaSupport.enabled": false` to `settings.json` or to `.code-workspace`

The recent Scala-in-Gradle support in redhat.java adds extra jar entries to the classpath during import. Disabling this feature brings back the normal project reference behavior until the upstream fix lands.

I’ll mark the thread as solved.

---

_[View the full topic](https://forum.cursor.com/t/jar-files-auto-created-and-added-to-classpath-on-cursor-startup/158569)._
