Git Product home page Git Product logo

Comments (5)

jperedadnr avatar jperedadnr commented on May 27, 2024

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.

hmyzak avatar hmyzak commented on May 27, 2024

===============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.

jperedadnr avatar jperedadnr commented on May 27, 2024

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.

hmyzak avatar hmyzak commented on May 27, 2024

here you are:
--module-path /home/nobody/javafx-sdk/lib --add-modules=javafx.controls

from openjfx-docs.

jperedadnr avatar jperedadnr commented on May 27, 2024

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)

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.