A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/5399 below:

PMD fails to start with special characters in path names · Issue #5399 · pmd/pmd · GitHub

Affects PMD Version: 7.8.0

Description:

When JAVAFX_HOME contains & in the path name, or PMD is located in a folder which contains & or the provided CLASSPATH variable contains &, then PMD doesn't start with some unclear error messages.

-> https://ss64.com/nt/syntax-redirection.html
-> https://ss64.com/nt/set.html

Example errors

> SET "CLASSPATH=C:\Users\adangel\sources\test & project\classes"
> pmd --version

The system cannot find the path specified.

Error: Could not find or load main class net.sourceforge.pmd.cli.PmdCli
Caused by: java.lang.ClassNotFoundException: net.sourceforge.pmd.cli.PmdCli
> SET "PMD_HOME=C:\Users\adangel\binaries\pmd bin & 7.8.0"
> SET "PATH=%PMD_HOME%\bin;%JAVA_HOME%\bin;C:\Windows\system32;C:\Windows"
> pmd --version

'bin' is not recognized as an internal or external command,
operable program or batch file.
'7.8.0\bin\..' is not recognized as an internal or external command,
operable program or batch file.

Error: Could not find or load main class net.sourceforge.pmd.cli.PmdCli
Caused by: java.lang.ClassNotFoundException: net.sourceforge.pmd.cli.PmdCli
> SET "JAVAFX_HOME=C:\Users\adangel\openjdk\javafx & sdk 21.0.5"
> pmd designer

'sdk' is not recognized as an internal or external command,
operable program or batch file.
'sdk' is not recognized as an internal or external command,
operable program or batch file.

You seem to be missing the JavaFX runtime.
 Please install JavaFX on your system and try again.
 See https://gluonhq.com/products/javafx/

Running PMD through: CLI

Found this problem while investigating ChuckJonas/vscode-apex-pmd#181


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4