Comments (3)
Thanks for the report. We are searching for "javafx.properties", but can't find it:
There are two problems here:
- we should handle the case, that we can't find the file (and
getResourceAsStream()
returnsnull
- we don't account for the oracle java8 directory structure, where this property file is not in
lib
but injre/lib/
. We make this assumption here: https://github.com/pmd/pmd/blob/512d6cbb8d198119a588b84c238ed78d75abda0c/pmd-dist/src/main/resources/scripts/pmd#L177-L178 - here we only deal with openjfx, but the java8 case is missing.
from pmd-designer.
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.
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)
- Designer doesn't start under Linux with Wayland
- Rule export escapes special characters in rules unnecessarily HOT 1
- TypeResolution is enabled by default in designer, but exported rule does not enable it HOT 2
- Support for other languages HOT 2
- Extension points for the designer
- Bug with property description being unwritable
- Use TextTreeRenderer from pmd-core
- Update PMD 7 Logo in the Designer
- Designer won't start on macOS 11.3 (M1) HOT 4
- Upgrade openjfx to 17 HOT 3
- JVM crash when starting designer under Linux with Wayland HOT 1
- Wrong qualified name? HOT 1
- Remove dependency to jcommander
- Exceptions and errors are not always logged
- Update to PMD 7.0.0-rc3
- Rename artifactId to pmd-designer
- Counterintuitive language management
- Support JavaFX as module (e.g. via azul jdk+fx) HOT 5
- Remove commons-io dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pmd-designer.