Code Monkey home page Code Monkey logo

Comments (3)

adangel avatar adangel commented on June 25, 2024

Thanks for the report. We are searching for "javafx.properties", but can't find it:

try (InputStream is = DesignerStarter.class.getClassLoader().getResourceAsStream("javafx.properties")) {

There are two problems here:

from pmd-designer.

adangel avatar adangel commented on June 25, 2024

To get it running for you, try to use a newer java version and openjfx. You need to set the env var JAVAFX_HOME then (see https://docs.pmd-code.org/latest/pmd_userdocs_extending_designer_reference.html).

Since you are using MacOS, you probably anyway need to use a newer javafx version... (#10, #49).

from pmd-designer.

adangel avatar adangel commented on June 25, 2024

In summary: Oracle Java8 contains an embedded version of javafx - so our start script can't add the jre/lib or lib folder onto the classpath (and it shouldn't - we would try to modify the boot classpath). So, we need to live with the fact, that javafx.properties can't be found on the classpath. That means, we don't need to change the start script on PMD side.

But we can search this file in a different way - an this at least works for me under Linux (don't have a MacOS machine to test).

We basically look, from where the javafx classes have been loaded (protection domain, code source) and try to guess where the javafx.properties is.
See #76.

from pmd-designer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.