You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Ernie Rael <er...@raelity.com> on 2020/01/29 03:34:28 UTC
bringing an old javafx RCP project into the modern era
I have an old javafx project, NetBeans-8.0 RCP based. I abandoned it
when it became obvious that Oracle was reducing support for javafx.
I'm considering another look at javafx. I saw the latest release of
javafx, 13.0.2, in the plugin manager, I loaded it and lots of stuff got
turned on, see below. But how do I use it? Even for a non-rcp program?
Nothing in new projects seems to reference it;
NewProject>JavaWithAnt>FavaFX, seems pinned to jdk1.8. The maven javafx
stuff worked without it. Any examples around?
-ernie
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
org.netbeans.modules.javafx2.platform [1.33
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
org.netbeans.modules.javafx2.project [1.37
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
org.netbeans.modules.javafx2.editor [1.28.0.12.5
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
org.netbeans.modules.javafx2.scenebuilder [1.24
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
org.netbeans.modules.javafx2.samples [1.24
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
org.netbeans.modules.javafx2.kit [1.24
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
org.netbeans.libs.javafx [2.14
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
org.netbeans.libs.javafx.win [13.2
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
org.netbeans.core.browser.webview/1 [1.22.0.1.1 1
11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
---------------------------------------------------------------------
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: bringing an old javafx RCP project into the modern era
Posted by Ernie Rael <er...@raelity.com>.
On 1/30/2020 9:05 AM, Boris Heithecker wrote:
> I've assembled a small project demonstrating how JavaFX can be added
> to a NetBeans RCP application built on jdk11:
>
> https://github.com/borisheithecker/netbeans-javafx
>
> Hope it helps
> Boris
I haven't really worked with NB for years, since NB-8.0. After looking
at Boris' work, and messing around I've got a standalone module for
javafx that can be shared by multiple suites/modules. (It took a while
to remember and find some info in harness/README; but so far it's been
of little use.) When the time comes (not soon for me), hopefully the
technique can be used to provide per os-type. The biggest problem I had
was getting the shared objects (.dll in my case) into the nb module and
available to all.
I haven't cleanly got sources hooked up, I have to manually add them as
needed. Twice it seems, once for editor stuff like goto file and once
for debugging. And I haven't had any luck with javadoc.
There's that "external" directory where sources and javadoc go.
Referenced from project properties. For your usage, does NB understand
them to hook things up with the IDE? Did you manually create the javadoc
to get separate jar files? I had to create separate source jars with
"com" at the top level rather than the module name. I thought about
copying all the source into the same tree and removing the module.info
files to have a single source file.
There a pom.xml and a maven reference. I'm a maven novice. Is this
scheme working with both maven and ant? Any pointers on understanding
this; I guess study and experience, any good reference docs? One thing
in particular; in maven-dependency-plugin, there's an <execution><id> of
copy-dependencies with a goal of copy-dependencies. Then for executions
<id>sources and <id>javadoc they also have a goal of copy-dependencies.
I'm confused. Any hints on learning to work with maven appreciated.
Thanks again for the work from Boris
-ernie
---------------------------------------------------------------------
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: bringing an old javafx RCP project into the modern era
Posted by Ernie Rael <er...@raelity.com>.
Thanks Boris,
Your work here inspired me to play with javafx as a module.
FYI. All the Bundle.properties say "Linux", I'm assuming that's a typo.
$ for i in javafx-*/src/javafx/Bundle.properties ;do echo === $i;
cat $i;done
=== javafx-linux/src/javafx/Bundle.properties
OpenIDE-Module-Name=JavaFX Linux
=== javafx-mac/src/javafx/Bundle.properties
OpenIDE-Module-Name=JavaFX Linux
=== javafx-win/src/javafx/Bundle.properties
OpenIDE-Module-Name=JavaFX Linux
-ernie
On 1/30/2020 9:05 AM, Boris Heithecker wrote:
> I've assembled a small project demonstrating how JavaFX can be added
> to a NetBeans RCP application built on jdk11:
>
> https://github.com/borisheithecker/netbeans-javafx
>
> Hope it helps
> Boris
>
> On Wed, 29 Jan 2020 at 19:34, Scott Palmer <swpalmer@gmail.com
> <ma...@gmail.com>> wrote:
>
>
>> On Jan 29, 2020, at 12:21 PM, Neil C Smith <neilcsmith@apache.org
>> <ma...@apache.org>> wrote:
>>
>>
>>
>> On Wed, 29 Jan 2020, 17:06 Scott Palmer, <swpalmer@gmail.com
>> <ma...@gmail.com>> wrote:
>>
>>
>> Isn’t the “right” way to create a JRE using jimage which
>> includes the JavaFX modules via JavaFX JMOD files and bundle
>> that with your application?
>>
>>
>> Right, maybe. But AFAIK not easily achievable right now. I
>> ideally need to run an RCP app with a whole load of stuff on the
>> module path in the near future, but haven't looked much at it
>> yet. Did talk to Jan briefly at NB UK about it and get the
>> feeling it might be "difficult". :-)
>>
>> Best wishes,
>>
>> Neil
>
> I’ve never done a Netbeans RCP app so I can’t say what is involved
> in that context, but for a plain JavaFX desktop app it isn’t so
> bad. I made a couple tasks in my Gradle script to generate a JRE
> with jimage and then an install package with jpackage (from JDK
> 14-ea). So far so good.
>
> (I had more pain dealing with JAXB post JDK 11 as I had gone
> forward expecting JPMS modules to still be available for it from
> somewhere after it was removed from the JDK. )
>
> Regards,
>
> Scott
>
>
>
> --
> Boris Heithecker
>
>
> Dr. Boris Heithecker
> Lüneburger Str. 30
> 28870 Ottersberg
> Festnetz: +49 4205 315834
> Mobil: +49 170 6137015
---------------------------------------------------------------------
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: bringing an old javafx RCP project into the modern era
Posted by Boris Heithecker <bo...@gmx.net>.
I've assembled a small project demonstrating how JavaFX can be added to a
NetBeans RCP application built on jdk11:
https://github.com/borisheithecker/netbeans-javafx
Hope it helps
Boris
On Wed, 29 Jan 2020 at 19:34, Scott Palmer <sw...@gmail.com> wrote:
>
> On Jan 29, 2020, at 12:21 PM, Neil C Smith <ne...@apache.org> wrote:
>
>
>
> On Wed, 29 Jan 2020, 17:06 Scott Palmer, <sw...@gmail.com> wrote:
>
>>
>> Isn’t the “right” way to create a JRE using jimage which includes the
>> JavaFX modules via JavaFX JMOD files and bundle that with your application?
>>
>
> Right, maybe. But AFAIK not easily achievable right now. I ideally need to
> run an RCP app with a whole load of stuff on the module path in the near
> future, but haven't looked much at it yet. Did talk to Jan briefly at NB UK
> about it and get the feeling it might be "difficult". :-)
>
> Best wishes,
>
> Neil
>
>>
> I’ve never done a Netbeans RCP app so I can’t say what is involved in that
> context, but for a plain JavaFX desktop app it isn’t so bad. I made a
> couple tasks in my Gradle script to generate a JRE with jimage and then an
> install package with jpackage (from JDK 14-ea). So far so good.
>
> (I had more pain dealing with JAXB post JDK 11 as I had gone forward
> expecting JPMS modules to still be available for it from somewhere after it
> was removed from the JDK. )
>
> Regards,
>
> Scott
>
--
Boris Heithecker
Dr. Boris Heithecker
Lüneburger Str. 30
28870 Ottersberg
Festnetz: +49 4205 315834
Mobil: +49 170 6137015
Re: bringing an old javafx RCP project into the modern era
Posted by Scott Palmer <sw...@gmail.com>.
> On Jan 29, 2020, at 12:21 PM, Neil C Smith <ne...@apache.org> wrote:
>
>
>
> On Wed, 29 Jan 2020, 17:06 Scott Palmer, <swpalmer@gmail.com <ma...@gmail.com>> wrote:
>
> Isn’t the “right” way to create a JRE using jimage which includes the JavaFX modules via JavaFX JMOD files and bundle that with your application?
>
> Right, maybe. But AFAIK not easily achievable right now. I ideally need to run an RCP app with a whole load of stuff on the module path in the near future, but haven't looked much at it yet. Did talk to Jan briefly at NB UK about it and get the feeling it might be "difficult". :-)
>
> Best wishes,
>
> Neil
I’ve never done a Netbeans RCP app so I can’t say what is involved in that context, but for a plain JavaFX desktop app it isn’t so bad. I made a couple tasks in my Gradle script to generate a JRE with jimage and then an install package with jpackage (from JDK 14-ea). So far so good.
(I had more pain dealing with JAXB post JDK 11 as I had gone forward expecting JPMS modules to still be available for it from somewhere after it was removed from the JDK. )
Regards,
Scott
Re: bringing an old javafx RCP project into the modern era
Posted by Neil C Smith <ne...@apache.org>.
On Wed, 29 Jan 2020, 17:06 Scott Palmer, <sw...@gmail.com> wrote:
>
> Isn’t the “right” way to create a JRE using jimage which includes the
> JavaFX modules via JavaFX JMOD files and bundle that with your application?
>
Right, maybe. But AFAIK not easily achievable right now. I ideally need to
run an RCP app with a whole load of stuff on the module path in the near
future, but haven't looked much at it yet. Did talk to Jan briefly at NB UK
about it and get the feeling it might be "difficult". :-)
Best wishes,
Neil
>
Re: bringing an old javafx RCP project into the modern era
Posted by Scott Palmer <sw...@gmail.com>.
> On Jan 29, 2020, at 5:00 AM, Neil C Smith <ne...@apache.org> wrote:
>
> On Wed, 29 Jan 2020 at 06:58, Boris Heithecker <bo...@gmx.net> wrote:
>> the problem with including JavaFX in a NetBeans RCP app is deployment, because you need different versions of the extension for different operating systems. All of the having the same class names, so you can't simply package all of them.
>
> Maybe check the JavaFX modules at
> https://github.com/apache/netbeans/tree/master/extra
>
> In particular notice the use of OpenIDE-Module-Needs in the manifest,
> eg. at https://github.com/apache/netbeans/blob/master/extra/libs.javafx.linux/manifest.mf#L8
>
> Doesn't that solve the problem when packaging them all?
>
> Best wishes,
>
> Neil
Isn’t the “right” way to create a JRE using jimage which includes the JavaFX modules via JavaFX JMOD files and bundle that with your application?
Scott
---------------------------------------------------------------------
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: bringing an old javafx RCP project into the modern era
Posted by Neil C Smith <ne...@apache.org>.
On Wed, 29 Jan 2020 at 06:58, Boris Heithecker <bo...@gmx.net> wrote:
> the problem with including JavaFX in a NetBeans RCP app is deployment, because you need different versions of the extension for different operating systems. All of the having the same class names, so you can't simply package all of them.
Maybe check the JavaFX modules at
https://github.com/apache/netbeans/tree/master/extra
In particular notice the use of OpenIDE-Module-Needs in the manifest,
eg. at https://github.com/apache/netbeans/blob/master/extra/libs.javafx.linux/manifest.mf#L8
Doesn't that solve the problem when packaging them all?
Best wishes,
Neil
---------------------------------------------------------------------
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: bringing an old javafx RCP project into the modern era
Posted by Boris Heithecker <bo...@gmx.net>.
Hi,
the problem with including JavaFX in a NetBeans RCP app is deployment,
because you need different versions of the extension for different
operating systems. All of the having the same class names, so you can't
simply package all of them. I'm also in the process of figuring out how to
do it best. You need to modify the build scripts to ship specific bundles
for the related os.
Boris
Ernie Rael <er...@raelity.com> schrieb am Mi., 29. Jan. 2020, 05:46:
> Following the directions at openjfx.io/openjfx-docs worked, make the sdk
> a library.
>
> BUT, they did miss something. Make sure to turn off
> Properties>Build>Compiling>CompileOnSave
>
> -ernie
>
> On 1/28/2020 8:16 PM, Ernie Rael wrote:
> > Another look at openjfx.io/openjfx-docs and I see a NB example
> > downloading the sdk and adding it as a library. Then adding the
> > library to a pojo project (it's using jdk-13). So given that I
> > downloaded the javafx plugin, I can't see how to add a dependency.
> >
> > Oh. Are those modules for running jfx from inside NetBeans. Doh! So
> > they'd be available if I want to run my NB RCP program.....
> >
> >
> > On 1/28/2020 7:34 PM, Ernie Rael wrote:
> >> I have an old javafx project, NetBeans-8.0 RCP based. I abandoned it
> >> when it became obvious that Oracle was reducing support for javafx.
> >>
> >> I'm considering another look at javafx. I saw the latest release of
> >> javafx, 13.0.2, in the plugin manager, I loaded it and lots of stuff
> >> got turned on, see below. But how do I use it? Even for a non-rcp
> >> program? Nothing in new projects seems to reference it;
> >> NewProject>JavaWithAnt>FavaFX, seems pinned to jdk1.8. The maven
> >> javafx stuff worked without it. Any examples around?
> >>
> >> -ernie
> >>
> >> INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
> >> org.netbeans.modules.javafx2.platform [1.33
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >> org.netbeans.modules.javafx2.project [1.37
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >> org.netbeans.modules.javafx2.editor [1.28.0.12.5
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >> org.netbeans.modules.javafx2.scenebuilder [1.24
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >> org.netbeans.modules.javafx2.samples [1.24
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >> org.netbeans.modules.javafx2.kit [1.24
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >> org.netbeans.libs.javafx [2.14
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >> org.netbeans.libs.javafx.win [13.2
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >> org.netbeans.core.browser.webview/1 [1.22.0.1.1 1
> >> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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: bringing an old javafx RCP project into the modern era
Posted by Ernie Rael <er...@raelity.com>.
Following the directions at openjfx.io/openjfx-docs worked, make the sdk
a library.
BUT, they did miss something. Make sure to turn off
Properties>Build>Compiling>CompileOnSave
-ernie
On 1/28/2020 8:16 PM, Ernie Rael wrote:
> Another look at openjfx.io/openjfx-docs and I see a NB example
> downloading the sdk and adding it as a library. Then adding the
> library to a pojo project (it's using jdk-13). So given that I
> downloaded the javafx plugin, I can't see how to add a dependency.
>
> Oh. Are those modules for running jfx from inside NetBeans. Doh! So
> they'd be available if I want to run my NB RCP program.....
>
>
> On 1/28/2020 7:34 PM, Ernie Rael wrote:
>> I have an old javafx project, NetBeans-8.0 RCP based. I abandoned it
>> when it became obvious that Oracle was reducing support for javafx.
>>
>> I'm considering another look at javafx. I saw the latest release of
>> javafx, 13.0.2, in the plugin manager, I loaded it and lots of stuff
>> got turned on, see below. But how do I use it? Even for a non-rcp
>> program? Nothing in new projects seems to reference it;
>> NewProject>JavaWithAnt>FavaFX, seems pinned to jdk1.8. The maven
>> javafx stuff worked without it. Any examples around?
>>
>> -ernie
>>
>> INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
>> org.netbeans.modules.javafx2.platform [1.33
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>> org.netbeans.modules.javafx2.project [1.37
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>> org.netbeans.modules.javafx2.editor [1.28.0.12.5
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>> org.netbeans.modules.javafx2.scenebuilder [1.24
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>> org.netbeans.modules.javafx2.samples [1.24
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>> org.netbeans.modules.javafx2.kit [1.24
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>> org.netbeans.libs.javafx [2.14
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>> org.netbeans.libs.javafx.win [13.2
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>> org.netbeans.core.browser.webview/1 [1.22.0.1.1 1
>> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
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: bringing an old javafx RCP project into the modern era
Posted by Ernie Rael <er...@raelity.com>.
Another look at openjfx.io/openjfx-docs and I see a NB example
downloading the sdk and adding it as a library. Then adding the library
to a pojo project (it's using jdk-13). So given that I downloaded the
javafx plugin, I can't see how to add a dependency.
Oh. Are those modules for running jfx from inside NetBeans. Doh! So
they'd be available if I want to run my NB RCP program.....
On 1/28/2020 7:34 PM, Ernie Rael wrote:
> I have an old javafx project, NetBeans-8.0 RCP based. I abandoned it
> when it became obvious that Oracle was reducing support for javafx.
>
> I'm considering another look at javafx. I saw the latest release of
> javafx, 13.0.2, in the plugin manager, I loaded it and lots of stuff
> got turned on, see below. But how do I use it? Even for a non-rcp
> program? Nothing in new projects seems to reference it;
> NewProject>JavaWithAnt>FavaFX, seems pinned to jdk1.8. The maven
> javafx stuff worked without it. Any examples around?
>
> -ernie
>
> INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
> org.netbeans.modules.javafx2.platform [1.33
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> org.netbeans.modules.javafx2.project [1.37
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> org.netbeans.modules.javafx2.editor [1.28.0.12.5
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> org.netbeans.modules.javafx2.scenebuilder [1.24
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> org.netbeans.modules.javafx2.samples [1.24
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> org.netbeans.modules.javafx2.kit [1.24
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> org.netbeans.libs.javafx [2.14
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> org.netbeans.libs.javafx.win [13.2
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
> org.netbeans.core.browser.webview/1 [1.22.0.1.1 1
> 11.3-beta1-e9111499a7b3d71fce5496a633116574f617067b]
>
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
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