homebrewpmd

PMD Designer. The environment variable JAVAFX_HOME is missing


I installed the PMD using the following command:

brew install pmd

After installation I tried to run the PMD Designer:

pmd designer

And I got the following error: The environment variable JAVAFX_HOME is missing.

Please tell me how to fix the problem and launch the PMD designer (I assume that homebrew should have installed all the necessary dependencies for the PMD)?


Solution

  • A possible solution could be the following:

    1. Download JavaFX.
    2. Unzip the archive.
    3. Set the environment variable: export JAVAFX_HOME=/path/to/unzipped-dir
    4. Run PMD Designer: pmd designer