Discussion:
Netbeans X & Java 11?
Michael Dever
2018-11-18 21:01:41 UTC
Permalink
Oracle seems to have Destroyed the combination of:
Netbeans, JavaFX, and SceneBuilder, building JavaFX from an IDE.

Is there any other IDE that supports and builds: JavaFX FXML Applications,
out of the box that just works, and that you can design the GUI application from SceneBuilder?


Thanks,
Mike Dever
Ty Young
2018-11-19 00:03:04 UTC
Permalink
Post by Michael Dever
Netbeans, JavaFX, and SceneBuilder, building JavaFX from an IDE.
Is there any other IDE that supports and builds: JavaFX FXML Applications,
out of the box that just works, and that you can design the GUI application from SceneBuilder?
Thanks,
Mike Dever
Hi Mike,


I'm assuming you're getting a missing JavaFX deployment error which is
the only error I could get with Java 11/JavaFX11 JDK in Netbeans with
FXML and non modular application in Linux. As result of Oracle's
careless deprecation and removal rampage, none of the non modular JavaFX
applications in Netbeans(even 9!) work regardless of whether your JavaFX
application is FXML or Java(which is all of templates/samples, by the
by). I've brought this up before on this mailing list before in a bit of
a rant and no one seemed to care to acknowledge that it was even an
issue. There is some effort to make a replacement however it's being
spearheaded by a company other than Oracle(abd IIRC is fit for primarily
their needs. I couldn't get it to work for my jLink app) and who know
when or if at all it will be integrated into JavaFX and Netbeans.


You can work around this by moving to a modular application. Sadly,
Netbeans 9 does not provide any easy way to convert projects to the
modular structure. Fortunately the process for converting it by hand is
fairly easy for simple small projects:

1. Create a new modular application in Netbeans.

2. Copy <Project>/src/<name> to the modular applications
<Project>/src/classes/

3. Fix module name in module-info and add exports.


This will break Git(or at least it did for me). Yes, it really sucks but
this is what happens when companies abort useful tools/secondary
features out of the blue like an unwanted child without warning, proper
& complete replacement, or time for IDE developers to add features to
help migrate users of these features gracefully. This corporate middle
fingering "It's our way or the highway" attitude is only going to hurt
Java as a whole as no one can depend on anything for any long period of
time and what tools/secondary features are being supported for the time
being don't have all the features or functionality that deprecated
features do. To add icing to the cake, Netbeans was formerly developed
by Oracle themselves. Ouch.


But now I'm just repeating myself and going off topic. Yeah, if it's a
small project the above should work fine. You might even be able to
automate it if you really need to.


Hope this helps.
Selim Dincer
2018-11-19 07:11:57 UTC
Permalink
Hi,

IntelliJ works quite OK with 11. Make sure to rightclick the fxml files ->
open in scenebuilder instead of the integrated one because that's an older
version. Also if you want to run your app without maven / gradle then you
need to download the javafx sdk and set JAVA_HOME otherwise you will get
some weird error. Also make sure to configure your run configuration
exactly like the recommended maven / gradle run configurations.
Apart from that the guide on the openjfx site (the gradle variant) kind of
worked for me.

This is why I suggested something like spring initializr or vert.x starter
before.
Post by Michael Dever
Netbeans, JavaFX, and SceneBuilder, building JavaFX from an IDE.
Is there any other IDE that supports and builds: JavaFX FXML Applications,
out of the box that just works, and that you can design the GUI
application from SceneBuilder?
Thanks,
Mike Dever
José Pereda
2018-11-19 08:27:56 UTC
Permalink
Hi, Mike.

Did you check the docs? https://openjfx.io/openjfx-docs/

There is a whole section for IDEs, including NetBeans (
https://openjfx.io/openjfx-docs/#IDE-NetBeans), that explains how to work
with both modular and non-modular projects.

While you may have noticed that the usual JavaFX project template doesn't
work, you can use a regular Java project, instead (the ant tasks have not
been updated yet, but they are working on it).

There is a sample (a simple HelloFX that uses FXML) for each possible case
(modular/non-modular, each one with IDE tools, Maven or Gradle), that can
be found here: https://github.com/openjfx/samples/tree/master/IDE/NetBeans.

And those FXML files work of course with Scene Builder (10, but 11 will be
released very soon).

Hope this helps you. Otherwise please feel free to file an issue:
https://github.com/openjfx/openjfx-docs/issues
Post by Selim Dincer
Hi,
IntelliJ works quite OK with 11. Make sure to rightclick the fxml files ->
open in scenebuilder instead of the integrated one because that's an older
version. Also if you want to run your app without maven / gradle then you
need to download the javafx sdk and set JAVA_HOME otherwise you will get
some weird error. Also make sure to configure your run configuration
exactly like the recommended maven / gradle run configurations.
Apart from that the guide on the openjfx site (the gradle variant) kind of
worked for me.
This is why I suggested something like spring initializr or vert.x starter
before.
Post by Michael Dever
Netbeans, JavaFX, and SceneBuilder, building JavaFX from an IDE.
Is there any other IDE that supports and builds: JavaFX FXML
Applications,
Post by Michael Dever
out of the box that just works, and that you can design the GUI
application from SceneBuilder?
Thanks,
Mike Dever
--
Julian Jupiter
2018-11-19 12:14:21 UTC
Permalink
Hi Mike,

Check this YT video:


Thank you.
Post by José Pereda
Hi, Mike.
Did you check the docs? https://openjfx.io/openjfx-docs/
There is a whole section for IDEs, including NetBeans (
https://openjfx.io/openjfx-docs/#IDE-NetBeans), that explains how to work
with both modular and non-modular projects.
While you may have noticed that the usual JavaFX project template doesn't
work, you can use a regular Java project, instead (the ant tasks have not
been updated yet, but they are working on it).
There is a sample (a simple HelloFX that uses FXML) for each possible case
(modular/non-modular, each one with IDE tools, Maven or Gradle), that can
be found here: https://github.com/openjfx/samples/tree/master/IDE/NetBeans
.
And those FXML files work of course with Scene Builder (10, but 11 will be
released very soon).
https://github.com/openjfx/openjfx-docs/issues
Post by Selim Dincer
Hi,
IntelliJ works quite OK with 11. Make sure to rightclick the fxml files
->
Post by Selim Dincer
open in scenebuilder instead of the integrated one because that's an
older
Post by Selim Dincer
version. Also if you want to run your app without maven / gradle then you
need to download the javafx sdk and set JAVA_HOME otherwise you will get
some weird error. Also make sure to configure your run configuration
exactly like the recommended maven / gradle run configurations.
Apart from that the guide on the openjfx site (the gradle variant) kind
of
Post by Selim Dincer
worked for me.
This is why I suggested something like spring initializr or vert.x
starter
Post by Selim Dincer
before.
Post by Michael Dever
Netbeans, JavaFX, and SceneBuilder, building JavaFX from an IDE.
Is there any other IDE that supports and builds: JavaFX FXML
Applications,
Post by Michael Dever
out of the box that just works, and that you can design the GUI
application from SceneBuilder?
Thanks,
Mike Dever
--
dalibor topic
2018-11-19 13:07:24 UTC
Permalink
Post by Michael Dever
Netbeans, JavaFX, and SceneBuilder, building JavaFX from an IDE.
Hi,
It sounds as if you would like to discuss issues or improvements in
Apache NetBeans. In order for your insights to have the best effect, you
should be doing so on an Apache NetBeans mailing list.

Please see https://netbeans.apache.org/ for the many different ways of
participating in Apache NetBeans.

cheers,
dalibor topic
--
<http://www.oracle.com> Dalibor Topic | Principal Product Manager
Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961
<tel:+491737185961>

ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher

<http://www.oracle.com/commitment> Oracle is committed to developing
practices and products that help protect the environment
Loading...