eclipse-jdt / eclipse-jdt/eclipse.jdt.debug
Incorrect quoting causing failure to run java application
- Dominant language
- Java
- Stars
- 23
- Forks
- 68
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 13
Description
I'm encountering a quoting issue which is causing Run/Debug of applications in Eclipse to fail consistently with error messages such as
Error: Could not find or load main class Files\Eclipse
Caused by: java.lang.ClassNotFoundException: Files\Eclipse
Selecting View command line shows the reason, i.e. the command line is being incorrectly quoted as there is a missing quote at the start of the command line. Further on in the command line, quotes are applied around spaces instead of around the path name :
C:\Program Files\Eclipse Adoptium\jdk-11.0.27.6-hotspot\bin\javaw.exe "-Djava.library.path=”C:\svn\manager\trunk\manager\lib\x64;C:/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_21.0.6.v20250130-0529/jre/bin/server;C:/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_21.0.6.v20250130-0529/jre/bin;C:\Users\XXX\AppData\Local\Temp\e4jF350.tmp_dir1745855433\user;C:\Program" "Files\Eclipse" "Adoptium\jdk-11.0.27.6-hotspot\bin;
etc.
This error was occurring in an older version of Eclipse (from 2024?) but I have now upgraded to the latest version 2025-03 (4.35.0) and the issue is still the same as before.
Contributor guide
Assessment
This issue has not been assessed yet.