in Education by
I'm just on: https://openjfx.io/openjfx-docs/#modular trying to create a jar I can run on other systems (that do not have the javafx libraries as would happen with a non-developer layman user) and they've told me to use this: dir /s /b src\*.java > sources.txt & javac --module-path %PATH_TO_FX% -d mods/hellofx @sources.txt & del sources.txt What is mods/ Where is that supposed to be? Are they talking about out/ ? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The doc you have linked refers to this sample. If you clone the sample, and follow instructions on how to compile and run the project, the first command can be divided in three parts: dir /s /b src\*.java > sources.txt & \ javac --module-path %PATH_TO_FX% -d mods/hellofx @sources.txt & \ del sources.txt The first part just gets all the Java files in the src path and adds that to sources.txt file: C:\path\to\hellofx\src\module-info.java C:\path\to\hellofx\src\hellofx\HelloFX.java The second part calls the javac command (see reference) to compile the content of sources.txt, adding the required --module-path option to include the JavaFX modules, and also adding the output or destination -d option: -d directory Sets the destination directory for class files. If a class is part of a package, then javac puts the class file in a subdirectory that reflects the package name and creates directories as needed. This means that we are going to compile hellofx.HelloFX.java into the directory mods/hellofx, resulting in: C:\path\to\hellofx\mods\hellofx\module-info.class C:\path\to\hellofx\mods\hellofx\hellofx\HelloFX.class The third step will just remove the sources.txt file. And now you can run your module: java --module-path "%PATH_TO_FX%;mods" -m hellofx/hellofx.HelloFX You can specify any directory for the output, of course, so you can change it to out or build for instance, but then make sure you modify it accordingly in the rest of the instructions.

Related questions

0 votes
    I have a barChart : that looks like this The bars align to the left of the category, for instance ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
     “How to lose belly fat” is one of the most common questions out there. And ... you can start using it right away to lose belly fat....
asked Jan 6, 2023 in General by JackTerrance
0 votes
    I think it goes without saying that I should be able to use Oracle's own JDK with JavaFX (from ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 26, 2022 in Education by JackTerrance
0 votes
    Salt is applied on the inner surface of pickle jars and the pickle is covered with oil. Why ... ,Science proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
0 votes
    What are the benefit of storing JARS/external dependencies in the local repository instead of a remote one?...
asked May 4, 2021 in Technology by Editorial Staff
0 votes
    I am trying to upload my localhost site that I am making to the live server. Before I did that I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Having a Golang project and Go workspace. I'm trying to run my test, but I'm having the following ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    I am trying to upload my localhost site that I am making to the live server. Before I did that I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Let's say, I have a folder called maps and inside maps I have map1.txt, map2.txt, and map3.txt. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 8, 2022 in Education by JackTerrance
0 votes
    I have to download images to my iOS apps local file system and read them back. On my simulator I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 6, 2022 in Education by JackTerrance
0 votes
    What is the .vs folder used for exactly? It gets created at the base folder of my solution. I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    My code for download files and save them in the internal storage is: val downloadManager = context!!. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    what i want : i have a config file where it contains some urls in .json file stored in asset ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    I have a custom PyPi package. It is installed under Pyhon\Python38\Lib\site-packages\myCustomPackage. In the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
...