openjfx / openjfx-docs

Getting started guide for JavaFX 11
BSD 3-Clause "New" or "Revised" License
95 stars 25 forks source link

Generic Error #220

Open nskarthik1968 opened 2 years ago

nskarthik1968 commented 2 years ago

Hi

Spec : jdk17 , jfx18 ,win-10

I coded a small SIMPLE Non-Modular application of FXML with AnchorPane & a button ( executes perfectly well in IDE and displays the Anchorpane ) I create a 'jar' of this application and tryed to execute the same ( out of IDE ) in cmd mode. I also set JAVA_HOME, JAVAFX_HOME , JAVAFX_LIB, PATH

On execution java --module-path %JAVAFX_LIB% --add-modules,javafx.controls,javafx.media,javafx.fxml -jar anchorpanejfx.jar

I get this generic exception Error occurred during initialization of boot layer java.lang.module.FindException: Module javafx.controls not found

Is Module args not correct OR javafx.controls not in package ??

Tryed all solution as avaliable on www, but no solution