Hi Jose, Thanks for your respons.
This commandline was generated by Netbeans in case one did not wanted to use Ant. This generated line contains errors ( colons instead of semecolons), which I ofcourse removed. The rest of the config is collected from internal settings. Indeed the mods directory is also configured in Netbeans. In another programs I used the module-info.java. That build went OK, but alo the run failed. I am really amased that these new versions do not match. I am now almost two weeks going over the internet and trying all kinds of ways of working, but I did not find a solution. Maybe the advise will be: stay at version 8 for Java/JavaFX and Netbeans? Regards, Eef Op do 6 jun. 2019 om 13:50 schreef [email protected] < [email protected]>: > Hi Eef, > > Your command line says otherwise, but it tells what it is ultimately > running: > > c:\java_lib\jdk-12.0.1/bin/java \ > -p C:\java_lib\javafx-jmods-12.0.1; > C:\java_lib\javafx-jmods-12.0.1; > > > C:\java_lib\javafx-sdk-12.0.1\lib\javafx-swt.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.base.jar; > *C:\java_lib\javafx-sdk-12.0.1\lib\javafx.controls.jar; > *C:\java_lib\javafx-sdk-12.0.1\lib\javafx.fxml.jar;... \ > -cp C:\java_lib\javafx-sdk-12.0.1\lib\javafx-swt.jar; > C:\java_lib\javafx-sdk-12.0.1\lib\javafx.base.jar; > *C:\java_lib\javafx-sdk-12.0.1\lib\javafx.controls.jar;... > ;D:\NbProjects\FxApp01_c\dist\FxApp01_c.jar \ > fxapp01_c.FxApp01_c > > In this command line there are a few issues: > - No "--add-modules javafx.controls,javafx.fxml" > - JavaFX jmods and SDK mixed in the same module-path > - Weird path " *C:\...", this looks bad. > > Please follow the sample: > https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Non-Modular/Java > > And make sure you have the right libraries and Path. > > Jose > > On 2019/06/06 11:36:17, Eef Custers <[email protected]> wrote: > > Hi Jose, > > > > I did not missed step 5, I had that configured. As you can read in my > other > > reply to Geertjan something is going wrong at the initialisation of the > > boot layer. The VM parameters processing is complaining about the last > > value in the list, no matter what the value is. > > > > Regards, > > Eef > > > > Op do 6 jun. 2019 om 10:34 schreef [email protected] < > > [email protected]>: > > > > > Hi, you can still use Ant, of course, but as Geertjan already pointed > out, > > > you are missing this: > > > > > > --add-modules javafx.fxml,javafx.controls > > > > > > (no need for javafx.base nor javafx.graphics, as these are transitive > > > dependencies of javafx.controls). > > > > > > which is also shown in the pic > > > https://openjfx.io/openjfx-docs/images/ide/netbeans/ide/netbeans07.png > > > that is part of the mentioned tutorial (step 5 VM options). > > > > > > About your module-path, there is an issue too: you shouldn't mix > > > javafx-jmods with javafx-sdk paths. Mods are only required to do a > custom > > > image from a modular project, which doesn't seem to be your case now. > > > > > > Jose > > > > > > On 2019/06/06 05:08:23, Geertjan Wielenga <[email protected]> wrote: > > > > Even without javafx.graphics there, it works. > > > > > > > > Gj > > > > > > > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga < > [email protected]> > > > > wrote: > > > > > > > > > For me, it suddenly started working when I was following the > > > instructions > > > > > re --add-modules: > > > > > > > > > > --add-modules javafx.fxml,javafx.controls,javafx.graphics > > > > > > > > > > In the place indicated in the instructions, add the above. > > > > > > > > > > Gj > > > > > > > > > > On Thu, Jun 6, 2019 at 6:44 AM Geertjan Wielenga < > [email protected]> > > > > > wrote: > > > > > > > > > >> I went through the procedure you're referring to, and I got a > similar > > > > >> error, and I would definitely recommend to use the Maven-approach > > > instead, > > > > >> unless you have a very strong reason for not doing that. > > > > >> > > > > >> Gj > > > > >> > > > > >> On Thu, Jun 6, 2019 at 6:23 AM Geertjan Wielenga < > [email protected] > > > > > > > > >> wrote: > > > > >> > > > > >>> Definitely preferable to use Maven rather than Ant -- what's the > > > reason > > > > >>> you're not doing that? > > > > >>> > > > > >>> Gj > > > > >>> > > > > >>> On Wed, Jun 5, 2019 at 11:51 PM Eef Custers < > [email protected]> > > > > >>> wrote: > > > > >>> > > > > >>>> Hello, > > > > >>>> > > > > >>>> I try to make a simple class working in Netbeans 11.0 with > > > > >>>> java12/javaFx12. > > > > >>>> > > > > >>>> My configuration is: > > > > >>>> === Java Environment === > > > > >>>> Path=C:\java_lib\jdk-12.0.1\bin; > > > > >>>> C:\java_lib\javafx-sdk-12.0.1\bin; > > > > >>>> C:\java_lib\javafx-jmods-12.0.1; > > > > >>>> JAVA_HOME=C:\java_lib\jdk-12.0.1 > > > > >>>> > > > > >>>> I follow the tutorial https://openjfx.io/openjfx-docs/ and use > the > > > > >>>> part: Netbeans and JavaFX - non-modular with IDE. The last step > > > gives the > > > > >>>> error below, while it should work according to the manual. > > > > >>>> > > > > >>>> This error appears when I run the class within the IDE, but also > > > when I > > > > >>>> run the command on the commandline. > > > > >>>> > > > > >>>> IDE: > > > > >>>> Error occurred during initialization of boot layer > > > > >>>> java.lang.module.FindException: *Module javafx.controls not > found* > > > > >>>> > > > > C:\Users\ecusters\AppData\Local\NetBeans\Cache\11.0\executor-snippets\run.xml:111: > > > > >>>> The following error occurred while executing this line: > > > > >>>> > > > > C:\Users\ecusters\AppData\Local\NetBeans\Cache\11.0\executor-snippets\run.xml:68: > > > > >>>> Java returned: 1 > > > > >>>> BUILD FAILED (total time: 0 seconds) > > > > >>>> > > > > >>>> Commandline: > > > > >>>> > > > > >>>> c:\java_lib\jdk-12.0.1/bin/java -p > > > > >>>> > > > > C:\java_lib\javafx-jmods-12.0.1;C:\java_lib\javafx-jmods-12.0.1;C:\java_lib\javafx-sdk-12.0.1\lib\javafx-swt.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.base.jar; > > > > >>>> > > > > *C:\java_lib\javafx-sdk-12.0.1\lib\javafx.controls.jar;*C:\java_lib\javafx-sdk-12.0.1\lib\javafx.fxml.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.graphics.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.media.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.swing.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.web.jar > > > > >>>> -cp > > > > >>>> > > > > C:\java_lib\javafx-sdk-12.0.1\lib\javafx-swt.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.base.jar; > > > > >>>> > > > > *C:\java_lib\javafx-sdk-12.0.1\lib\javafx.controls.jar;*C:\java_lib\javafx-sdk-12.0.1\lib\javafx.fxml.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.graphics.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.media.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.swing.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.web.jar;D:\NbProjects\FxApp01_c\dist\FxApp01_c.jar > > > > >>>> fxapp01_c.FxApp01_c > > > > >>>> > > > > >>>> *Error: JavaFX runtime components are missing, and are required > to > > > run > > > > >>>> this application* > > > > >>>> > > > > >>>> I cannot find a way to solve this issue. Has anyone a > suggestion? > > > That > > > > >>>> would be great help! > > > > >>>> > > > > >>>> Regards, > > > > >>>> > > > > >>>> Eef > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>>> > > > > >>>> -- > > > > >>>> Met vriendelijke groeten, > > > > >>>> > > > > >>>> E. Custers, > > > > >>>> Oracle & Java Ontwikkelaar / Senior Oracle DBA > > > > >>>> OrendaFlex BV > > > > >>>> Orenda iT Services BV > > > > >>>> 00 31 6 5499 2250 > > > > >>>> ==================================== > > > > >>>> Oracle database Beheer & Data Management > > > > >>>> ==================================== > > > > >>>> > > > > >>> > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > For further information about the NetBeans mailing lists, visit: > > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > > > > > > > -- > > Met vriendelijke groeten, > > > > E. Custers, > > Oracle & Java Ontwikkelaar / Senior Oracle DBA > > OrendaFlex BV > > Orenda iT Services BV > > 00 31 6 5499 2250 > > ==================================== > > Oracle database Beheer & Data Management > > ==================================== > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > -- Met vriendelijke groeten, E. Custers, Oracle & Java Ontwikkelaar / Senior Oracle DBA OrendaFlex BV Orenda iT Services BV 00 31 6 5499 2250 ==================================== Oracle database Beheer & Data Management ====================================
