You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Eef Custers <ec...@orenda-it.nl> on 2019/06/05 21:51:26 UTC

Error: JavaFX runtime components are missing, and are required to run this application

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
====================================

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Eef Custers <ec...@orenda-it.nl>.
Hi Geertjan,

While reading your reply I think  it is better that we closed our
conversation. Your answers are not much of a help. And it certainly has
nothing to do with not being able to make choices!
I am exploring all the possibilities of Netbeans11.0 with java12/javafx12.
In my environment some ways work others don't. That's why I am also looking
into the modular way of working, and why not!
Never mind, I will not address you anymore and leave it up to the community.

Regards.



Op do 6 jun. 2019 om 14:16 schreef Geertjan Wielenga <ge...@apache.org>:

> The key problem is that you need to make a choice: are you using Ant or
> Maven? Are you creating a modular application or not?
>
> No one can help you if in each and every mail you send you're trying
> something completely different -- i.e., now you suddenly mention
> module-info.java, which means you're creating a modular application.
>
> What is it that you want to achieve? No one can help you, if you don't
> know.
>
> Gj
>
> On Thu, Jun 6, 2019 at 2:13 PM Eef Custers <ec...@orenda-it.nl> wrote:
>
>> 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 jose.pereda@gluonhq.com <
>> jose.pereda@gluonhq.com>:
>>
>>> 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 <ec...@orenda-it.nl> 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 jose.pereda@gluonhq.com <
>>> > jose.pereda@gluonhq.com>:
>>> >
>>> > > 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 <ge...@apache.org>
>>> wrote:
>>> > > > Even without javafx.graphics there, it works.
>>> > > >
>>> > > > Gj
>>> > > >
>>> > > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <
>>> geertjan@apache.org>
>>> > > > 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 <
>>> geertjan@apache.org>
>>> > > > > 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 <
>>> geertjan@apache.org
>>> > > >
>>> > > > >> 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 <
>>> ecusters@orenda-it.nl>
>>> > > > >>> 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: users-unsubscribe@netbeans.apache.org
>>> > > For additional commands, e-mail: users-help@netbeans.apache.org
>>> > >
>>> > > 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: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> 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
>> ====================================
>>
>

-- 
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
====================================

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
Thanks, done!

Gj

On Mon, 10 Jun 2019 at 23:24, David Green <dg...@gmail.com> wrote:

> Thanks for the blog entry as well as the source content.  Very helpful.
>
> Should “(Incubating)” be removed from blog title?
>
> On Mon, Jun 10, 2019 at 5:47 AM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
>> Created a blog entry listing your three great articles:
>>
>>
>> https://blogs.apache.org/netbeans/entry/apache-netbeans-openjfx-and-adoptopenjdk
>>
>> Gj
>>
>> On Mon, Jun 10, 2019 at 11:56 AM Geertjan Wielenga <ge...@apache.org>
>> wrote:
>>
>>> Yes, that would be cool, e.g., at blogs.apache.org/netbeans or at
>>> http://jaxenter.com/netbeans.
>>>
>>> Gj
>>>
>>> On Thu, Jun 6, 2019 at 5:09 PM Luff,Chris <Ch...@cerner.com> wrote:
>>>
>>>> Agree with @Geertjan here….you need to choose an approach. I prefer
>>>> maven which is by no means perfect but has good resource!
>>>>
>>>> I published some articles on modular JavaFX in NetBeans on DZone[1],
>>>> probably should start blogging for Apache NetBeans (Geertjan?).
>>>>
>>>> [1]: https://dzone.com/articles/adoptopenjdk-11-openjfx-netbeans
>>>>
>>>>
>>>> On 6 Jun 2019, at 13:16, Geertjan Wielenga <ge...@apache.org> wrote:
>>>>
>>>> The key problem is that you need to make a choice: are you using Ant or
>>>> Maven? Are you creating a modular application or not?
>>>>
>>>> No one can help you if in each and every mail you send you're trying
>>>> something completely different -- i.e., now you suddenly mention
>>>> module-info.java, which means you're creating a modular application.
>>>>
>>>> What is it that you want to achieve? No one can help you, if you don't
>>>> know.
>>>>
>>>> Gj
>>>>
>>>> On Thu, Jun 6, 2019 at 2:13 PM Eef Custers <ec...@orenda-it.nl>
>>>> wrote:
>>>>
>>>>> 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 jose.pereda@gluonhq.com <
>>>>> jose.pereda@gluonhq.com>:
>>>>>
>>>>>> 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
>>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenjfx%2Fsamples%2Ftree%2Fmaster%2FIDE%2FNetBeans%2FNon-Modular%2FJava&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=kHaTXX%2FCBBuuimWlue2maCkVa4glJ07g19fSMrSAd9E%3D&reserved=0>
>>>>>>
>>>>>> And make sure you have the right libraries and Path.
>>>>>>
>>>>>> Jose
>>>>>>
>>>>>> On 2019/06/06 11:36:17, Eef Custers <ec...@orenda-it.nl> 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 jose.pereda@gluonhq.com <
>>>>>> > jose.pereda@gluonhq.com>:
>>>>>> >
>>>>>> > > 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
>>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2Fimages%2Fide%2Fnetbeans%2Fide%2Fnetbeans07.png&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=Db0dAGyuggl5bYPoysWR%2By7%2F53YF850pwin%2B28t04%2FQ%3D&reserved=0>
>>>>>> > > 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 <ge...@apache.org>
>>>>>> wrote:
>>>>>> > > > Even without javafx.graphics there, it works.
>>>>>> > > >
>>>>>> > > > Gj
>>>>>> > > >
>>>>>> > > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <
>>>>>> geertjan@apache.org>
>>>>>> > > > 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 <
>>>>>> geertjan@apache.org>
>>>>>> > > > > 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 <
>>>>>> geertjan@apache.org
>>>>>> > > >
>>>>>> > > > >> 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 <
>>>>>> ecusters@orenda-it.nl>
>>>>>> > > > >>> 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/
>>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2F&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=QkoM6FysF2Sh3he%2FTZlp1xpVBs1i%2BUVjn0pLBptwNKM%3D&reserved=0>
>>>>>> 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: users-unsubscribe@netbeans.apache.org
>>>>>> > > For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>> > >
>>>>>> > > For further information about the NetBeans mailing lists, visit:
>>>>>> > >
>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=Z8LrCTBFyXe06Ax%2BPHlSrcfRBKtWXhqDBX97E8K0lH8%3D&reserved=0>
>>>>>> > >
>>>>>> > >
>>>>>> >
>>>>>> > --
>>>>>> > 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: users-unsubscribe@netbeans.apache.org
>>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>>
>>>>>> For further information about the NetBeans mailing lists, visit:
>>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158220368&sdata=Z%2F%2Bl5vK2E%2BAQxBJBGp8BIM3IcXX0qSiV%2FNx6NA1YHy8%3D&reserved=0>
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>>> ====================================
>>>>>
>>>>
>>>>
>>>>
>>>> CONFIDENTIALITY NOTICE This message and any included attachments are
>>>> from Cerner Corporation and are intended only for the addressee. The
>>>> information contained in this message is confidential and may constitute
>>>> inside or non-public information under international, federal, or state
>>>> securities laws. Unauthorized forwarding, printing, copying, distribution,
>>>> or use of such information is strictly prohibited and may be unlawful. If
>>>> you are not the addressee, please promptly delete this message and notify
>>>> the sender of the delivery error by e-mail or you may call Cerner's
>>>> corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
>>>> Cerner Limited, Registered in England no 2519305, Registered Office 37
>>>> North Wharf Road, London W2 1AF
>>>> <https://www.google.com/maps/search/37+North+Wharf+Road,+London+W2+1AF?entry=gmail&source=g>
>>>> .
>>>>
>>> --
> Sent from a mobile device. Please excuse any typos.
>

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by David Green <dg...@gmail.com>.
Thanks for the blog entry as well as the source content.  Very helpful.

Should “(Incubating)” be removed from blog title?

On Mon, Jun 10, 2019 at 5:47 AM Geertjan Wielenga <ge...@apache.org>
wrote:

> Created a blog entry listing your three great articles:
>
>
> https://blogs.apache.org/netbeans/entry/apache-netbeans-openjfx-and-adoptopenjdk
>
> Gj
>
> On Mon, Jun 10, 2019 at 11:56 AM Geertjan Wielenga <ge...@apache.org>
> wrote:
>
>> Yes, that would be cool, e.g., at blogs.apache.org/netbeans or at
>> http://jaxenter.com/netbeans.
>>
>> Gj
>>
>> On Thu, Jun 6, 2019 at 5:09 PM Luff,Chris <Ch...@cerner.com> wrote:
>>
>>> Agree with @Geertjan here….you need to choose an approach. I prefer
>>> maven which is by no means perfect but has good resource!
>>>
>>> I published some articles on modular JavaFX in NetBeans on DZone[1],
>>> probably should start blogging for Apache NetBeans (Geertjan?).
>>>
>>> [1]: https://dzone.com/articles/adoptopenjdk-11-openjfx-netbeans
>>>
>>>
>>> On 6 Jun 2019, at 13:16, Geertjan Wielenga <ge...@apache.org> wrote:
>>>
>>> The key problem is that you need to make a choice: are you using Ant or
>>> Maven? Are you creating a modular application or not?
>>>
>>> No one can help you if in each and every mail you send you're trying
>>> something completely different -- i.e., now you suddenly mention
>>> module-info.java, which means you're creating a modular application.
>>>
>>> What is it that you want to achieve? No one can help you, if you don't
>>> know.
>>>
>>> Gj
>>>
>>> On Thu, Jun 6, 2019 at 2:13 PM Eef Custers <ec...@orenda-it.nl>
>>> wrote:
>>>
>>>> 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 jose.pereda@gluonhq.com <
>>>> jose.pereda@gluonhq.com>:
>>>>
>>>>> 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
>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenjfx%2Fsamples%2Ftree%2Fmaster%2FIDE%2FNetBeans%2FNon-Modular%2FJava&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=kHaTXX%2FCBBuuimWlue2maCkVa4glJ07g19fSMrSAd9E%3D&reserved=0>
>>>>>
>>>>> And make sure you have the right libraries and Path.
>>>>>
>>>>> Jose
>>>>>
>>>>> On 2019/06/06 11:36:17, Eef Custers <ec...@orenda-it.nl> 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 jose.pereda@gluonhq.com <
>>>>> > jose.pereda@gluonhq.com>:
>>>>> >
>>>>> > > 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
>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2Fimages%2Fide%2Fnetbeans%2Fide%2Fnetbeans07.png&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=Db0dAGyuggl5bYPoysWR%2By7%2F53YF850pwin%2B28t04%2FQ%3D&reserved=0>
>>>>> > > 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 <ge...@apache.org>
>>>>> wrote:
>>>>> > > > Even without javafx.graphics there, it works.
>>>>> > > >
>>>>> > > > Gj
>>>>> > > >
>>>>> > > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <
>>>>> geertjan@apache.org>
>>>>> > > > 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 <
>>>>> geertjan@apache.org>
>>>>> > > > > 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 <
>>>>> geertjan@apache.org
>>>>> > > >
>>>>> > > > >> 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 <
>>>>> ecusters@orenda-it.nl>
>>>>> > > > >>> 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/
>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2F&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=QkoM6FysF2Sh3he%2FTZlp1xpVBs1i%2BUVjn0pLBptwNKM%3D&reserved=0>
>>>>> 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: users-unsubscribe@netbeans.apache.org
>>>>> > > For additional commands, e-mail: users-help@netbeans.apache.org
>>>>> > >
>>>>> > > For further information about the NetBeans mailing lists, visit:
>>>>> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=Z8LrCTBFyXe06Ax%2BPHlSrcfRBKtWXhqDBX97E8K0lH8%3D&reserved=0>
>>>>> > >
>>>>> > >
>>>>> >
>>>>> > --
>>>>> > 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: users-unsubscribe@netbeans.apache.org
>>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>>
>>>>> For further information about the NetBeans mailing lists, visit:
>>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158220368&sdata=Z%2F%2Bl5vK2E%2BAQxBJBGp8BIM3IcXX0qSiV%2FNx6NA1YHy8%3D&reserved=0>
>>>>>
>>>>>
>>>>
>>>> --
>>>> 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
>>>> ====================================
>>>>
>>>
>>>
>>>
>>> CONFIDENTIALITY NOTICE This message and any included attachments are
>>> from Cerner Corporation and are intended only for the addressee. The
>>> information contained in this message is confidential and may constitute
>>> inside or non-public information under international, federal, or state
>>> securities laws. Unauthorized forwarding, printing, copying, distribution,
>>> or use of such information is strictly prohibited and may be unlawful. If
>>> you are not the addressee, please promptly delete this message and notify
>>> the sender of the delivery error by e-mail or you may call Cerner's
>>> corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
>>> Cerner Limited, Registered in England no 2519305, Registered Office 37
>>> North Wharf Road, London W2 1AF
>>> <https://www.google.com/maps/search/37+North+Wharf+Road,+London+W2+1AF?entry=gmail&source=g>
>>> .
>>>
>> --
Sent from a mobile device. Please excuse any typos.

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by "Luff,Chris" <Ch...@Cerner.com.INVALID>.
Awesome!

On 10 Jun 2019, at 11:47, Geertjan Wielenga <ge...@apache.org>> wrote:

https://blogs.apache.org/netbeans/entry/apache-netbeans-openjfx-and-adoptopenjdk<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblogs.apache.org%2Fnetbeans%2Fentry%2Fapache-netbeans-openjfx-and-adoptopenjdk&data=02%7C01%7CChris.Luff%40cerner.com%7Ca7e933fa26b44ced03d808d6ed9109bb%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636957604526169617&sdata=lkimpHpdI0h3%2BzSA0WdoRnNzbiTsHZ7e%2FZTPSgVFglQ%3D&reserved=0>



CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
Created a blog entry listing your three great articles:

https://blogs.apache.org/netbeans/entry/apache-netbeans-openjfx-and-adoptopenjdk

Gj

On Mon, Jun 10, 2019 at 11:56 AM Geertjan Wielenga <ge...@apache.org>
wrote:

> Yes, that would be cool, e.g., at blogs.apache.org/netbeans or at
> http://jaxenter.com/netbeans.
>
> Gj
>
> On Thu, Jun 6, 2019 at 5:09 PM Luff,Chris <Ch...@cerner.com> wrote:
>
>> Agree with @Geertjan here….you need to choose an approach. I prefer maven
>> which is by no means perfect but has good resource!
>>
>> I published some articles on modular JavaFX in NetBeans on DZone[1],
>> probably should start blogging for Apache NetBeans (Geertjan?).
>>
>> [1]: https://dzone.com/articles/adoptopenjdk-11-openjfx-netbeans
>>
>>
>> On 6 Jun 2019, at 13:16, Geertjan Wielenga <ge...@apache.org> wrote:
>>
>> The key problem is that you need to make a choice: are you using Ant or
>> Maven? Are you creating a modular application or not?
>>
>> No one can help you if in each and every mail you send you're trying
>> something completely different -- i.e., now you suddenly mention
>> module-info.java, which means you're creating a modular application.
>>
>> What is it that you want to achieve? No one can help you, if you don't
>> know.
>>
>> Gj
>>
>> On Thu, Jun 6, 2019 at 2:13 PM Eef Custers <ec...@orenda-it.nl> wrote:
>>
>>> 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 jose.pereda@gluonhq.com <
>>> jose.pereda@gluonhq.com>:
>>>
>>>> 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
>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenjfx%2Fsamples%2Ftree%2Fmaster%2FIDE%2FNetBeans%2FNon-Modular%2FJava&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=kHaTXX%2FCBBuuimWlue2maCkVa4glJ07g19fSMrSAd9E%3D&reserved=0>
>>>>
>>>> And make sure you have the right libraries and Path.
>>>>
>>>> Jose
>>>>
>>>> On 2019/06/06 11:36:17, Eef Custers <ec...@orenda-it.nl> 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 jose.pereda@gluonhq.com <
>>>> > jose.pereda@gluonhq.com>:
>>>> >
>>>> > > 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
>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2Fimages%2Fide%2Fnetbeans%2Fide%2Fnetbeans07.png&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=Db0dAGyuggl5bYPoysWR%2By7%2F53YF850pwin%2B28t04%2FQ%3D&reserved=0>
>>>> > > 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 <ge...@apache.org>
>>>> wrote:
>>>> > > > Even without javafx.graphics there, it works.
>>>> > > >
>>>> > > > Gj
>>>> > > >
>>>> > > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <
>>>> geertjan@apache.org>
>>>> > > > 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 <
>>>> geertjan@apache.org>
>>>> > > > > 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 <
>>>> geertjan@apache.org
>>>> > > >
>>>> > > > >> 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 <
>>>> ecusters@orenda-it.nl>
>>>> > > > >>> 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/
>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2F&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=QkoM6FysF2Sh3he%2FTZlp1xpVBs1i%2BUVjn0pLBptwNKM%3D&reserved=0>
>>>> 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: users-unsubscribe@netbeans.apache.org
>>>> > > For additional commands, e-mail: users-help@netbeans.apache.org
>>>> > >
>>>> > > For further information about the NetBeans mailing lists, visit:
>>>> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=Z8LrCTBFyXe06Ax%2BPHlSrcfRBKtWXhqDBX97E8K0lH8%3D&reserved=0>
>>>> > >
>>>> > >
>>>> >
>>>> > --
>>>> > 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: users-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158220368&sdata=Z%2F%2Bl5vK2E%2BAQxBJBGp8BIM3IcXX0qSiV%2FNx6NA1YHy8%3D&reserved=0>
>>>>
>>>>
>>>
>>> --
>>> 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
>>> ====================================
>>>
>>
>>
>>
>> CONFIDENTIALITY NOTICE This message and any included attachments are from
>> Cerner Corporation and are intended only for the addressee. The information
>> contained in this message is confidential and may constitute inside or
>> non-public information under international, federal, or state securities
>> laws. Unauthorized forwarding, printing, copying, distribution, or use of
>> such information is strictly prohibited and may be unlawful. If you are not
>> the addressee, please promptly delete this message and notify the sender of
>> the delivery error by e-mail or you may call Cerner's corporate offices in
>> Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited,
>> Registered in England no 2519305, Registered Office 37 North Wharf Road,
>> London W2 1AF.
>>
>

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
Yes, that would be cool, e.g., at blogs.apache.org/netbeans or at
http://jaxenter.com/netbeans.

Gj

On Thu, Jun 6, 2019 at 5:09 PM Luff,Chris <Ch...@cerner.com> wrote:

> Agree with @Geertjan here….you need to choose an approach. I prefer maven
> which is by no means perfect but has good resource!
>
> I published some articles on modular JavaFX in NetBeans on DZone[1],
> probably should start blogging for Apache NetBeans (Geertjan?).
>
> [1]: https://dzone.com/articles/adoptopenjdk-11-openjfx-netbeans
>
>
> On 6 Jun 2019, at 13:16, Geertjan Wielenga <ge...@apache.org> wrote:
>
> The key problem is that you need to make a choice: are you using Ant or
> Maven? Are you creating a modular application or not?
>
> No one can help you if in each and every mail you send you're trying
> something completely different -- i.e., now you suddenly mention
> module-info.java, which means you're creating a modular application.
>
> What is it that you want to achieve? No one can help you, if you don't
> know.
>
> Gj
>
> On Thu, Jun 6, 2019 at 2:13 PM Eef Custers <ec...@orenda-it.nl> wrote:
>
>> 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 jose.pereda@gluonhq.com <
>> jose.pereda@gluonhq.com>:
>>
>>> 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
>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenjfx%2Fsamples%2Ftree%2Fmaster%2FIDE%2FNetBeans%2FNon-Modular%2FJava&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=kHaTXX%2FCBBuuimWlue2maCkVa4glJ07g19fSMrSAd9E%3D&reserved=0>
>>>
>>> And make sure you have the right libraries and Path.
>>>
>>> Jose
>>>
>>> On 2019/06/06 11:36:17, Eef Custers <ec...@orenda-it.nl> 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 jose.pereda@gluonhq.com <
>>> > jose.pereda@gluonhq.com>:
>>> >
>>> > > 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
>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2Fimages%2Fide%2Fnetbeans%2Fide%2Fnetbeans07.png&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=Db0dAGyuggl5bYPoysWR%2By7%2F53YF850pwin%2B28t04%2FQ%3D&reserved=0>
>>> > > 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 <ge...@apache.org>
>>> wrote:
>>> > > > Even without javafx.graphics there, it works.
>>> > > >
>>> > > > Gj
>>> > > >
>>> > > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <
>>> geertjan@apache.org>
>>> > > > 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 <
>>> geertjan@apache.org>
>>> > > > > 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 <
>>> geertjan@apache.org
>>> > > >
>>> > > > >> 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 <
>>> ecusters@orenda-it.nl>
>>> > > > >>> 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/
>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2F&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=QkoM6FysF2Sh3he%2FTZlp1xpVBs1i%2BUVjn0pLBptwNKM%3D&reserved=0>
>>> 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: users-unsubscribe@netbeans.apache.org
>>> > > For additional commands, e-mail: users-help@netbeans.apache.org
>>> > >
>>> > > For further information about the NetBeans mailing lists, visit:
>>> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=Z8LrCTBFyXe06Ax%2BPHlSrcfRBKtWXhqDBX97E8K0lH8%3D&reserved=0>
>>> > >
>>> > >
>>> >
>>> > --
>>> > 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: users-unsubscribe@netbeans.apache.org
>>> For additional commands, e-mail: users-help@netbeans.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158220368&sdata=Z%2F%2Bl5vK2E%2BAQxBJBGp8BIM3IcXX0qSiV%2FNx6NA1YHy8%3D&reserved=0>
>>>
>>>
>>
>> --
>> 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
>> ====================================
>>
>
>
>
> CONFIDENTIALITY NOTICE This message and any included attachments are from
> Cerner Corporation and are intended only for the addressee. The information
> contained in this message is confidential and may constitute inside or
> non-public information under international, federal, or state securities
> laws. Unauthorized forwarding, printing, copying, distribution, or use of
> such information is strictly prohibited and may be unlawful. If you are not
> the addressee, please promptly delete this message and notify the sender of
> the delivery error by e-mail or you may call Cerner's corporate offices in
> Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited,
> Registered in England no 2519305, Registered Office 37 North Wharf Road,
> London W2 1AF.
>

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by "Luff,Chris" <Ch...@Cerner.com.INVALID>.
Agree with @Geertjan here….you need to choose an approach. I prefer maven which is by no means perfect but has good resource!

I published some articles on modular JavaFX in NetBeans on DZone[1], probably should start blogging for Apache NetBeans (Geertjan?).

[1]: https://dzone.com/articles/adoptopenjdk-11-openjfx-netbeans


On 6 Jun 2019, at 13:16, Geertjan Wielenga <ge...@apache.org>> wrote:

The key problem is that you need to make a choice: are you using Ant or Maven? Are you creating a modular application or not?

No one can help you if in each and every mail you send you're trying something completely different -- i.e., now you suddenly mention module-info.java, which means you're creating a modular application.

What is it that you want to achieve? No one can help you, if you don't know.

Gj

On Thu, Jun 6, 2019 at 2:13 PM Eef Custers <ec...@orenda-it.nl>> wrote:
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 jose.pereda@gluonhq.com<ma...@gluonhq.com> <jo...@gluonhq.com>>:
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<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenjfx%2Fsamples%2Ftree%2Fmaster%2FIDE%2FNetBeans%2FNon-Modular%2FJava&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=kHaTXX%2FCBBuuimWlue2maCkVa4glJ07g19fSMrSAd9E%3D&reserved=0>

And make sure you have the right libraries and Path.

Jose

On 2019/06/06 11:36:17, Eef Custers <ec...@orenda-it.nl>> 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 jose.pereda@gluonhq.com<ma...@gluonhq.com> <
> jose.pereda@gluonhq.com<ma...@gluonhq.com>>:
>
> > 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<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2Fimages%2Fide%2Fnetbeans%2Fide%2Fnetbeans07.png&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158200385&sdata=Db0dAGyuggl5bYPoysWR%2By7%2F53YF850pwin%2B28t04%2FQ%3D&reserved=0>
> > 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 <ge...@apache.org>> wrote:
> > > Even without javafx.graphics there, it works.
> > >
> > > Gj
> > >
> > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <ge...@apache.org>>
> > > 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 <ge...@apache.org>>
> > > > 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 <ge...@apache.org>
> > >
> > > >> 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 <ec...@orenda-it.nl>>
> > > >>> 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/<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2F&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=QkoM6FysF2Sh3he%2FTZlp1xpVBs1i%2BUVjn0pLBptwNKM%3D&reserved=0> 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: users-unsubscribe@netbeans.apache.org<ma...@netbeans.apache.org>
> > For additional commands, e-mail: users-help@netbeans.apache.org<ma...@netbeans.apache.org>
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158210378&sdata=Z8LrCTBFyXe06Ax%2BPHlSrcfRBKtWXhqDBX97E8K0lH8%3D&reserved=0>
> >
> >
>
> --
> 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: users-unsubscribe@netbeans.apache.org<ma...@netbeans.apache.org>
For additional commands, e-mail: users-help@netbeans.apache.org<ma...@netbeans.apache.org>

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&data=02%7C01%7CChris.Luff%40cerner.com%7C23b641d6e0b94927617708d6ea78dca1%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C0%7C636954202158220368&sdata=Z%2F%2Bl5vK2E%2BAQxBJBGp8BIM3IcXX0qSiV%2FNx6NA1YHy8%3D&reserved=0>



--
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
====================================



CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
The key problem is that you need to make a choice: are you using Ant or
Maven? Are you creating a modular application or not?

No one can help you if in each and every mail you send you're trying
something completely different -- i.e., now you suddenly mention
module-info.java, which means you're creating a modular application.

What is it that you want to achieve? No one can help you, if you don't know.

Gj

On Thu, Jun 6, 2019 at 2:13 PM Eef Custers <ec...@orenda-it.nl> wrote:

> 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 jose.pereda@gluonhq.com <
> jose.pereda@gluonhq.com>:
>
>> 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 <ec...@orenda-it.nl> 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 jose.pereda@gluonhq.com <
>> > jose.pereda@gluonhq.com>:
>> >
>> > > 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 <ge...@apache.org>
>> wrote:
>> > > > Even without javafx.graphics there, it works.
>> > > >
>> > > > Gj
>> > > >
>> > > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <
>> geertjan@apache.org>
>> > > > 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 <
>> geertjan@apache.org>
>> > > > > 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 <
>> geertjan@apache.org
>> > > >
>> > > > >> 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 <
>> ecusters@orenda-it.nl>
>> > > > >>> 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: users-unsubscribe@netbeans.apache.org
>> > > For additional commands, e-mail: users-help@netbeans.apache.org
>> > >
>> > > 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: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> 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
> ====================================
>

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Eef Custers <ec...@orenda-it.nl>.
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 jose.pereda@gluonhq.com <
jose.pereda@gluonhq.com>:

> 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 <ec...@orenda-it.nl> 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 jose.pereda@gluonhq.com <
> > jose.pereda@gluonhq.com>:
> >
> > > 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 <ge...@apache.org> wrote:
> > > > Even without javafx.graphics there, it works.
> > > >
> > > > Gj
> > > >
> > > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <
> geertjan@apache.org>
> > > > 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 <
> geertjan@apache.org>
> > > > > 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 <
> geertjan@apache.org
> > > >
> > > > >> 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 <
> ecusters@orenda-it.nl>
> > > > >>> 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: users-unsubscribe@netbeans.apache.org
> > > For additional commands, e-mail: users-help@netbeans.apache.org
> > >
> > > 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: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> 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
====================================

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by jo...@gluonhq.com, jo...@gluonhq.com.
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 <ec...@orenda-it.nl> 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 jose.pereda@gluonhq.com <
> jose.pereda@gluonhq.com>:
> 
> > 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 <ge...@apache.org> wrote:
> > > Even without javafx.graphics there, it works.
> > >
> > > Gj
> > >
> > > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <ge...@apache.org>
> > > 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 <ge...@apache.org>
> > > > 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 <geertjan@apache.org
> > >
> > > >> 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 <ec...@orenda-it.nl>
> > > >>> 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: users-unsubscribe@netbeans.apache.org
> > For additional commands, e-mail: users-help@netbeans.apache.org
> >
> > 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: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Eef Custers <ec...@orenda-it.nl>.
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 jose.pereda@gluonhq.com <
jose.pereda@gluonhq.com>:

> 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 <ge...@apache.org> wrote:
> > Even without javafx.graphics there, it works.
> >
> > Gj
> >
> > On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <ge...@apache.org>
> > 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 <ge...@apache.org>
> > > 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 <geertjan@apache.org
> >
> > >> 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 <ec...@orenda-it.nl>
> > >>> 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: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> 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
====================================

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by jo...@gluonhq.com, jo...@gluonhq.com.
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 <ge...@apache.org> wrote: 
> Even without javafx.graphics there, it works.
> 
> Gj
> 
> On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <ge...@apache.org>
> 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 <ge...@apache.org>
> > 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 <ge...@apache.org>
> >> 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 <ec...@orenda-it.nl>
> >>> 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: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
Even without javafx.graphics there, it works.

Gj

On Thu, Jun 6, 2019 at 7:07 AM Geertjan Wielenga <ge...@apache.org>
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 <ge...@apache.org>
> 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 <ge...@apache.org>
>> 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 <ec...@orenda-it.nl>
>>> 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
>>>> ====================================
>>>>
>>>

Fwd: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Eef Custers <ec...@orenda-it.nl>.
---------- Forwarded message ---------
Van: Eef Custers <ec...@orenda-it.nl>
Date: do 6 jun. 2019 om 13:29
Subject: Fwd: Error: JavaFX runtime components are missing, and are
required to run this application
To: NetBeans Mailing List <us...@netbeans.apache.org>




---------- Forwarded message ---------
Van: Eef Custers <ec...@orenda-it.nl>
Date: do 6 jun. 2019 om 13:12
Subject: Re: Error: JavaFX runtime components are missing, and are required
to run this application
To: Geertjan Wielenga <ge...@apache.org>


Hi Geertjan,

for me it is still not working. But I discovered something strainge. When I
added javafx.graphics "run" started to complain about not finding graphics.
It looks as if "run" is complaining about the last entry in the list of
add-module. And it also seems that it has nothing to do with not being able
to find the module.
Because, in the example under I repeated the javafx.controls at the end and
now "run" complains that it cannot find javafx.controls:

run-configuration:
--add-modules *javafx.controls*,javafx.fxml,javafx.graphics,
*javafx.controls*

run:
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)

Any thoughts about this?

Regards,
Eef

Op do 6 jun. 2019 om 07:07 schreef Geertjan Wielenga <ge...@apache.org>:

> 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 <ge...@apache.org>
> 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 <ge...@apache.org>
>> 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 <ec...@orenda-it.nl>
>>> 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
>>>> ====================================
>>>>
>>>

-- 
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
====================================


-- 
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
====================================


-- 
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
====================================

Fwd: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Eef Custers <ec...@orenda-it.nl>.
---------- Forwarded message ---------
Van: Eef Custers <ec...@orenda-it.nl>
Date: do 6 jun. 2019 om 13:12
Subject: Re: Error: JavaFX runtime components are missing, and are required
to run this application
To: Geertjan Wielenga <ge...@apache.org>


Hi Geertjan,

for me it is still not working. But I discovered something strainge. When I
added javafx.graphics "run" started to complain about not finding graphics.
It looks as if "run" is complaining about the last entry in the list of
add-module. And it also seems that it has nothing to do with not being able
to find the module.
Because, in the example under I repeated the javafx.controls at the end and
now "run" complains that it cannot find javafx.controls:

run-configuration:
--add-modules *javafx.controls*,javafx.fxml,javafx.graphics,
*javafx.controls*

run:
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)

Any thoughts about this?

Regards,
Eef

Op do 6 jun. 2019 om 07:07 schreef Geertjan Wielenga <ge...@apache.org>:

> 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 <ge...@apache.org>
> 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 <ge...@apache.org>
>> 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 <ec...@orenda-it.nl>
>>> 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
>>>> ====================================
>>>>
>>>

-- 
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
====================================


-- 
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
====================================

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
It's very confusing right now.

I suggest you simply decide to use Maven instead of Ant. And that you then
close NetBeans. Just don't use NetBeans for a while. Instead, use the Maven
approach described here:

https://openjfx.io/openjfx-docs/#maven

Once you have the above working (and if it doesn't work, it's not NetBeans
but something else that's causing the problem since you're not using
NetBeans now anymore), you're then, after that, going to use Maven and
OpenJFX together with NetBeans:

https://openjfx.io/openjfx-docs/#maven

Also, just start a completely new thread once you run into a problem, since
there are too many things going on in this one and it is now impossible for
anyone to work out what you're trying to do.

Thanks,

Gj

On Thu, Jun 6, 2019 at 1:31 PM Eef Custers <ec...@orenda-it.nl> wrote:

> Sorry for the wrong replies. I forwarded the conversations to the
> user-group.
>
> Op do 6 jun. 2019 om 13:27 schreef Geertjan Wielenga <geertjan@apache.org
> >:
>
>> You’re going to stop writing to me directly and start writing to the
>> mailing list. Bye.
>>
>> Gj
>>
>>
>> On Thu, 6 Jun 2019 at 13:13, Eef Custers <ec...@orenda-it.nl> wrote:
>>
>>> Hi Geertjan,
>>>
>>> for me it is still not working. But I discovered something strainge.
>>> When I added javafx.graphics "run" started to complain about not finding
>>> graphics. It looks as if "run" is complaining about the last entry in the
>>> list of add-module. And it also seems that it has nothing to do with not
>>> being able to find the module.
>>> Because, in the example under I repeated the javafx.controls at the end
>>> and now "run" complains that it cannot find javafx.controls:
>>>
>>> run-configuration:
>>> --add-modules *javafx.controls*,javafx.fxml,javafx.graphics,
>>> *javafx.controls*
>>>
>>> run:
>>> 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)
>>>
>>> Any thoughts about this?
>>>
>>> Regards,
>>> Eef
>>>
>>> Op do 6 jun. 2019 om 07:07 schreef Geertjan Wielenga <
>>> geertjan@apache.org>:
>>>
>>>> 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 <ge...@apache.org>
>>>> 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 <ge...@apache.org>
>>>>> 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 <ec...@orenda-it.nl>
>>>>>> 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
>>>>>>> ====================================
>>>>>>>
>>>>>>
>>>
>>> --
>>> 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
>>> ====================================
>>>
>>
>
> --
> 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
> ====================================
>

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Eef Custers <ec...@orenda-it.nl>.
Sorry for the wrong replies. I forwarded the conversations to the
user-group.

Op do 6 jun. 2019 om 13:27 schreef Geertjan Wielenga <ge...@apache.org>:

> You’re going to stop writing to me directly and start writing to the
> mailing list. Bye.
>
> Gj
>
>
> On Thu, 6 Jun 2019 at 13:13, Eef Custers <ec...@orenda-it.nl> wrote:
>
>> Hi Geertjan,
>>
>> for me it is still not working. But I discovered something strainge. When
>> I added javafx.graphics "run" started to complain about not finding
>> graphics. It looks as if "run" is complaining about the last entry in the
>> list of add-module. And it also seems that it has nothing to do with not
>> being able to find the module.
>> Because, in the example under I repeated the javafx.controls at the end
>> and now "run" complains that it cannot find javafx.controls:
>>
>> run-configuration:
>> --add-modules *javafx.controls*,javafx.fxml,javafx.graphics,
>> *javafx.controls*
>>
>> run:
>> 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)
>>
>> Any thoughts about this?
>>
>> Regards,
>> Eef
>>
>> Op do 6 jun. 2019 om 07:07 schreef Geertjan Wielenga <geertjan@apache.org
>> >:
>>
>>> 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 <ge...@apache.org>
>>> 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 <ge...@apache.org>
>>>> 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 <ec...@orenda-it.nl>
>>>>> 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
>>>>>> ====================================
>>>>>>
>>>>>
>>
>> --
>> 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
>> ====================================
>>
>

-- 
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
====================================

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
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 <ge...@apache.org>
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 <ge...@apache.org>
> 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 <ec...@orenda-it.nl>
>> 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
>>> ====================================
>>>
>>

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
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 <ge...@apache.org>
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 <ec...@orenda-it.nl> 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
>> ====================================
>>
>

Fwd: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Eef Custers <ec...@orenda-it.nl>.
---------- Forwarded message ---------
Van: Eef Custers <ec...@orenda-it.nl>
Date: do 6 jun. 2019 om 12:54
Subject: Re: Error: JavaFX runtime components are missing, and are required
to run this application
To: Geertjan Wielenga <ge...@apache.org>


Hi Geertjan,

I am using Maven, but at this moment I am trying all possible ways to get
the java12/javafx12-configuration to work.

Op do 6 jun. 2019 om 06:24 schreef Geertjan Wielenga <ge...@apache.org>:

> 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 <ec...@orenda-it.nl> 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
>> ====================================
>>
>

-- 
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
====================================


-- 
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
====================================

Re: Error: JavaFX runtime components are missing, and are required to run this application

Posted by Geertjan Wielenga <ge...@apache.org>.
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 <ec...@orenda-it.nl> 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
> ====================================
>