GeezerVison is showing github.com — [core] designer.bat errors when JAVAFX_HOME contains spaces · Issue #3328 · pmd/pmd
[core] designer.bat errors when JAVAFX_HOME contains spaces #3328
Labels
a:bugPMD crashes or fails to analyse a file.in:cliAffects the PMD Command Line Interface Description
Affects PMD Version:
version 6.35.0
Windows
Description:
error code:
[%JAVAFX_HOME%] EQU []
runtime error:
if [C:\Program Files\javafx-sdk-11.0.2\] EQU [] (
此时不应有 Files\javafx-sdk-11.0.2\]。
fix:
["%JAVAFX_HOME%"] EQU [""]
Activity
LY1806620741 commented on Dec 27, 2021
I have the same problem as you.
This bug exists in windows10, Because space symbol in Env variable.
|
if [%JAVAFX_HOME%] EQU [] ( |
adangel commented on Jan 13, 2022
In this example:
> set JAVAFX_HOME="C:\Program Files\javafx-sdk-17.0.1"
> bin\designer.bat
Fehler: Hauptklasse Files\javafx-sdk-17.0.1\lib\* konnte nicht gefunden oder geladen werden
Ursache: java.lang.ClassNotFoundException: Files\javafx-sdk-17.0.1\lib\*
my error is a bit different: it can't find the main class - which means the command line for calling java is messed up.
Adding the suggested fix makes things worse:
"Files\javafx-sdk-17.0.1""]" kann syntaktisch an dieser Stelle nicht verarbeitet werden.
After reading http://windowsinspired.com/understanding-the-command-line-string-and-arguments-received-by-a-windows-program/ the problem is actually here:
|
java %PMD_JAVA_OPTS% %jreopts% -classpath "%classpath%" %OPTS% %MAIN_CLASS% %* |
The quotes around "%classpath%" are wrong.
changed the title
[-]designer.bat has a error, that could not run[/-] [+][core] designer.bat has a error, that could not run[/+] on Jan 13, 2022changed the title
[-][core] designer.bat has a error, that could not run[/-] [+][core] designer.bat has a error when javafx_home contains spaces[/+] on Jan 13, 2022changed the title
[-][core] designer.bat has a error when javafx_home contains spaces[/-] [+][core] designer.bat has a error when JAVAFX_HOME contains spaces[/+] on Jan 13, 2022changed the title
[-][core] designer.bat has a error when JAVAFX_HOME contains spaces[/-] [+][core] designer.bat errors when JAVAFX_HOME contains spaces[/+] on Jan 13, 2022added a commit that references this issue
on Jan 13, 2022This issue will close once commit 308173a is merged into the 'main' branch.308173a
Metadata
Metadata
a:bugPMD crashes or fails to analyse a file.in:cliAffects the PMD Command Line Interface Development
No branches or pull requestsIssue actions