GithubHelp home page GithubHelp logo

Comments (3)

jperedadnr avatar jperedadnr commented on September 28, 2024

You can try the sample linked at that section: https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Modular/Java

and see if you still have the same issue. Probably you are missing some configuration step.

from openjfx-docs.

vic0824 avatar vic0824 commented on September 28, 2024

The sample project downloaded from github works.
I have compared the project files and found a crucial difference.
In the project.properties file of the sample project from github, the run.modulepath property has the following value:

run.modulepath=\
    ${libs.JavaFXMODS11.classpath}:\
    ${javac.modulepath}:\
    ${build.modules.dir}

whereas the run.modulepath property generated by NetBeans following the instructions in the tutorial is:

run.modulepath=\
    ${javac.modulepath}:\
    ${build.modules.dir}:\
    ${libs.JavaFXMODS11.classpath}

Apparently, the order in which the paths are specified is important: if I move ${libs.JavaFXMODS11.classpath} at the beginning of the string, the packaging step generates a correct image.
Given that this file is generated automatically by NetBeans, I wonder how it is possible that the order is different in the sample project.

from openjfx-docs.

jperedadnr avatar jperedadnr commented on September 28, 2024

Yes, the order is important, indeed. However, the order can be modified when you add the library.

See updated document https://openjfx.io/openjfx-docs/#IDE-NetBeans, section Modular from IDE:

Add this library to NetBeans -> Properties -> Libraries -> Run -> Modulepath and place it on top.

and sample:

run.modulepath=\
    ${libs.JavaFXMODS12.classpath}:\
    ${javac.modulepath}:\
    ${build.modules.dir}

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.