Comments (5)
If you don't post how you get that error, it won't be possible to reproduce it and help you. Edit your post with your settings: platform, build tools (and pom or build.gradle) and your command line options (module-path, add-module, ...).
from openjfx-docs.
===============Code===========================
package bug;
import javafx.application.Application;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class Bug extends Application {
@Override
public void start(Stage _primaryStage) {
for (String key : System.getProperties().stringPropertyNames()) {
System.err.println(key + " : " + System.getProperties().getProperty(key));
}
System.err.flush();
WebView wv = new WebView();
}
public static void main(String[] _args) {
launch(_args);
}
}
================Environment======================
awt.toolkit : sun.awt.X11.XToolkit
java.specification.version : 11
javafx.runtime.version : 11.0.1+1
sun.cpu.isalist :
sun.jnu.encoding : UTF-8
java.class.path : /home/nobody/javafx-sdk/lib/javafx-swt.jar:/home/nobody/javafx-sdk/lib/javafx.base.jar:/home/nobody/javafx-sdk/lib/javafx.controls.jar:/home/nobody/javafx-sdk/lib/javafx.fxml.jar:/home/nobody/javafx-sdk/lib/javafx.graphics.jar:/home/nobody/javafx-sdk/lib/javafx.media.jar:/home/nobody/javafx-sdk/lib/javafx.swing.jar:/home/nobody/javafx-sdk/lib/javafx.web.jar:/home/nobody/NetBeansProjects/Bug/build/classes
java.vm.vendor : Oracle Corporation
sun.arch.data.model : 64
java.vendor.url : http://java.oracle.com/
user.timezone :
os.name : Linux
java.vm.specification.version : 11
javafx.version : 11.0.1
sun.java.launcher : SUN_STANDARD
user.country : US
sun.boot.library.path : /home/nobody/jdk/lib
sun.java.command : bug.Bug
jdk.debug : release
sun.cpu.endian : little
user.home : /home/nobody
user.language : en
java.specification.vendor : Oracle Corporation
jdk.module.path : /home/nobody/javafx-sdk/lib/javafx-swt.jar:/home/nobody/javafx-sdk/lib/javafx.base.jar:/home/nobody/javafx-sdk/lib/javafx.controls.jar:/home/nobody/javafx-sdk/lib/javafx.fxml.jar:/home/nobody/javafx-sdk/lib/javafx.graphics.jar:/home/nobody/javafx-sdk/lib/javafx.media.jar:/home/nobody/javafx-sdk/lib/javafx.swing.jar:/home/nobody/javafx-sdk/lib/javafx.web.jar
java.version.date : 2018-10-16
java.home : /home/nobody/jdk
file.separator : /
java.vm.compressedOopsMode : Zero based
line.separator :
java.specification.name : Java Platform API Specification
java.vm.specification.vendor : Oracle Corporation
java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
sun.management.compiler : HotSpot 64-Bit Tiered Compilers
java.runtime.version : 11.0.1+13
user.name : nobody
path.separator : :
os.version : 4.15.0-42-generic
java.runtime.name : OpenJDK Runtime Environment
file.encoding : UTF-8
java.vm.name : OpenJDK 64-Bit Server VM
java.vendor.version : 18.9
java.vendor.url.bug : http://bugreport.java.com/bugreport/
java.io.tmpdir : /tmp
java.version : 11.0.1
user.dir : /home/nobody/NetBeansProjects/Bug
os.arch : amd64
java.vm.specification.name : Java Virtual Machine Specification
java.awt.printerjob : sun.print.PSPrinterJob
sun.os.patch.level : unknown
java.library.path : /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
java.vendor : Oracle Corporation
java.vm.info : mixed mode
java.vm.version : 11.0.1+13
sun.io.unicode.encoding : UnicodeLittle
java.class.version : 55.0
from openjfx-docs.
Thanks, but you still don't show your VM options (--module-path
, --add-modules
), or if you use build tools (Maven/Gradle).
from openjfx-docs.
here you are:
--module-path /home/nobody/javafx-sdk/lib --add-modules=javafx.controls
from openjfx-docs.
This is mentioned at the beginning of the docs:
Note: Additional modules are required for extended functionality. For example, if your application is using FXML, you will need to add the javafx.fxml module, as shown below:
javac --module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.fxml HelloFX.java
This is the case of the web module, you need to add it too.
from openjfx-docs.
Related Issues (20)
- Can not generate working jar
- Failed to execute goal org.openjfx:javafx-maven-plugin:0.0.8:run (default-cli) on project demo3: Error HOT 1
- javac command fails to find javafx.controls with openjfx 18.0.2 HOT 1
- TableView Scroll to bottom issue and adding graphics to the cell
- JavaFX HelloWorld Failed to run HOT 1
- JavaFX 20 release
- Class com.sun.glass.ui.monocle.MonocleWindow does not define or inherit method _updateViewSize(long)
- Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found HOT 2
- javaFX - Run time error - Graphics Device initialization failed HOT 1
- Doesn't work on Apple M1 Mac --> Error. Warning
- Text cannot show some unicode String like "𝔸𝔹𝕒𝕓"
- JavaFX runtime components are missing, and are required to run this program HOT 2
- 不自己搞一个脚手架吗?新建个项目都报错
- JavaFX 21 release
- Graphics Device initialization failed for : es2, sw Error initializing QuantumRenderer: no suitable pipeline found HOT 2
- java.lang.module.FindException: Module JavaFXApp not found
- The desired archetype does not exist (org.openjfx:javafx-maven-archetypes:0.0.6) HOT 1
- the javaFX documentation page do not work! HOT 2
- JavaFX 乱码问题不知道如何解决
- Which repository can I submit pull requests to? HOT 1
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 openjfx-docs.