You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[1.57.0] Java projects on network drives are not recognized #4550
After upgrading Language Support for Java(TM) by Red Hat to version 1.57.0:
Creating a new Java project in a local folder works correctly.
Creating a new Java project on a network drive creates the project files, but VS Code reports that no Java projects are found and prompts me to create a new Java project.
After downgrading the extension to version 1.56.0, the issue disappears.
Expected behavior:
Java projects on network drives should be recognized correctly, just like local projects.
I'm hitting the same problem on 1.57.0 (JDT LS 1.62.0), with an existing Maven project rather than a new one. Downgrading to 1.56.0 fixes it.
Setup: Windows, folder opened as X:\...\project, where X: is a mapped drive for \\<server>\<share>. The Maven project is in a subfolder (project\project-java\pom.xml), and there is only one pom.xml in the workspace.
Symptoms:
Java Projects view: "No Java projects found in the current workspace"
Main class reported as "a non-project file, only syntax errors are reported"
Run does nothing
Log:
Importing Maven project(s)
Failed to import Maven project at \\<server>\<share>\...\project\project-java\pom.xml - a project with the same name already exists (check for duplicate groupId/artifactId)
Build projects fail: Cannot find projects from given uris. []
"Java: Import Java Projects into Workspace" shows: "1 Maven project(s) could not be imported due to duplicate groupId/artifactId."
Notes: the log shows the project under the UNC path, while VS Code uses the drive letter. Opening the folder directly through the UNC path also failed on 1.57.0, and cleaning the language server workspace did not help.
Still early development, most of features work, review are welcome, write an issue if you find something that bothers you and I'll try to fix it promptly.
Same error here on a local drive with no network share. On my machine it's triggered by a mismatch in drive-letter case, so the problem doesn't look limited to UNC/mapped drives.
Environment
Windows 11 Pro (10.0.26200)
Language Support for Java(TM) by Red Hat 1.58.0 (also present in 1.58.0, not only 1.57.0)
Maven for Java 0.46.0, Project Manager for Java 0.27.7
Multi-module Maven project at D:\<path>\project\pom.xml
Log
[error] Failed to import Maven project at d:\<path>\project\pom.xml - a project with the same name already exists (check for duplicate groupId/artifactId) []
Observation
The Maven view shows the root project as d:\<path>\project\pom.xml (lowercase drive letter).
The Java Projects view shows it as D:\<path>\project (uppercase drive letter).
So the same project seems to get registered twice under two path spellings that differ only in drive-letter case. The second import then fails with the duplicate-name error.
Reproducibility
Happens on every VS Code restart.
"Java: Clean Java Language Server Workspace" fixes it only until the next restart.
Opening the folder explicitly with an uppercase drive letter (code "D:\<path>\project") doesn't prevent it either.
Downgrading to 1.56.0 fixes it for me.
My guess is that the path comparison or URI normalization introduced in 1.57.0 is case-sensitive for the Windows drive letter, and probably doesn't resolve UNC vs. mapped-drive paths either. That would explain both the original report and the UNC case @menthil described.
Activity
menthil commentedon Oct 19, 2026
I'm hitting the same problem on 1.57.0 (JDT LS 1.62.0), with an existing Maven project rather than a new one. Downgrading to 1.56.0 fixes it.
Setup: Windows, folder opened as
X:\...\project, where X: is a mapped drive for\\<server>\<share>. The Maven project is in a subfolder (project\project-java\pom.xml), and there is only one pom.xml in the workspace.Symptoms:
Log:
"Java: Import Java Projects into Workspace" shows: "1 Maven project(s) could not be imported due to duplicate groupId/artifactId."
Notes: the log shows the project under the UNC path, while VS Code uses the drive letter. Opening the folder directly through the UNC path also failed on 1.57.0, and cleaning the language server workspace did not help.
mamilic commentedon Nov 12, 2026
Hi @bbanjjoo, @menthil try out this extension, I had a lot of issues with java stack for vscode and descided to build my own.
https://marketplace.visualstudio.com/publishers/bitno
Still early development, most of features work, review are welcome, write an issue if you find something that bothers you and I'll try to fix it promptly.
ago1024 commentedon Nov 25, 2026
Same error here on a local drive with no network share. On my machine it's triggered by a mismatch in drive-letter case, so the problem doesn't look limited to UNC/mapped drives.
Environment
D:\<path>\project\pom.xmlLog
Observation
d:\<path>\project\pom.xml(lowercase drive letter).D:\<path>\project(uppercase drive letter).Reproducibility
code "D:\<path>\project") doesn't prevent it either.Downgrading to 1.56.0 fixes it for me.
My guess is that the path comparison or URI normalization introduced in 1.57.0 is case-sensitive for the Windows drive letter, and probably doesn't resolve UNC vs. mapped-drive paths either. That would explain both the original report and the UNC case @menthil described.