It can be relative to your executable.Ĭlasspath.1, classpath.2. This will be the current directory for the app. The INI file accepts the following settings: ico (this will inject your icon into the executable). ini (see the table below for information) The launcher is designed to be used as follows:
WinRun4J is licensed under the Common Public License (CPL).
Access Windows API without JNI, compatible with PINVOKE.NET.DDE implementation for file assocations.Built-in icon replacer for custom icon.Additional JVM args for more flexible memory use.Custom executable name that appears in task manager.Uses an INI file for specifying classpath, main class, vm args, program args.It is an alternative to javaw.exe and provides the following benefits: Go to IntelliJ->File->Settings->Appearance & Behavior->Path Variables, and add PATH_TO_FX, with the path to the lib folder:Īnd then you can use the literals $PATH_TO_FX$ or $ -add-modules=ntrols,javafx.WinRun4j is a java launcher for windows. You can also set an environment variable. module-path "C:Program FilesJavajavafx-sdk-11.0.1lib" -add-modules=ntrols,javafx.fxml : Module ntrols not foundĮdit run configurations, and in the VM options add your path: IntelliJ doesn't resolve that variable and the module path is not set, hence you get the expected error that reveals that the JavaFX modules are not found: So the issue is quite clear: In the VM options you have set verbatim what the tutorial says:īut you haven't applied your real path for PATH_TO_FX, as it is suggested in the picture inserted after that command in the tutorial: "C:Program FilesJavajdk-11.0.1binjava.exe" -module-path %PATH_TO_FX% -add-modules=ntrols,javafx.fxml Any help would be greatly appreciated and if you require more info please just drop a comment about it.īased on the posted command line, this is what IntelliJ applies to run your project: I have followed the tutorial precisely, and it does not work. I have really no idea where to go from here. JAVA_HOME variable (mentioned in guide) is set: OpenJDK Runtime Environment 18.9 (build 11.0.1+13) The path leading to jdk-11.0.1 and javafx-sdk-11.0.1: This makes little sense to me as I can see javafx.base under lib on the sidebar: "C:Program FilesJavajdk-11.0.1binjava.exe" -module-path %PATH_TO_FX% -add-modules=ntrols,javafx.fxml -add-modules javafx.base,aphics -add-reads javafx.base=ALL-UNNAMED -add-reads aphics=ALL-UNNAMED "-javaagent:C:Program FilesJetBrainsIntelliJ IDEA 2018.3libidea_rt.jar=53491:C:Program FilesJetBrainsIntelliJ IDEA 2018.3bin" -Dfile.encoding=UTF-8 -classpath "C:UsersjonatIdeaProjectsTawe-Lib FXoutproductionTawe-Lib FX C:Program FilesJavajavafx-sdk-11.0.1libsrc.zip C:Program FilesJavajavafx-sdk-11.0.1libjavafx-swt.jar C:Program FilesJavajavafx-sdk-11.0. C:Program FilesJavajavafx-sdk-11.0. C:Program FilesJavajavafx-sdk-11.0. C:Program FilesJavajavafx-sdk-11.0. C:Program FilesJavajavafx-sdk-11.0. C:Program FilesJavajavafx-sdk-11.0. C:Program FilesJavajavafx-sdk-11.0." sample.MainĮrror occurred during initialization of boot layer Here is the error message I receive when trying to run the default Intellij Idea JavaFX project: The tutorial is under JavaFX and Intellij Non-modular from IDE sections: I've followed a tutorial precisely and I can't seem to get it to work.