r/java • u/[deleted] • May 28 '19
A boost for Java on the Client
https://gluonhq.com/a-boost-for-java-on-the-client/4
u/hacklinux May 28 '19 edited May 28 '19
... GluonVM, we said we would aim to bring Java on mobile at the same level as Java on desktop.
When they say 'mobile' does that include Android?
Edit : What I want to know is what do they exactly mean by that?
5
u/sigzero May 28 '19
If it's based off their Gluon Mobile product or incorporates it, and it seems to:
Gluon Mobile provides:
Tooling to build and deploy your Java app to desktop, Android and iOS platforms
Glisten, the UI component that offers JavaFX Controls that have a cross platform behavior, but a platform specific look and feel. They make your application look like a native application.
Connect, the API for communicating to Gluon CloudLink or other 3rd party webservices.
Down, which makes device APIs available in a device-independent fashion, like the storage systems, accelerometers, screen details, GPS devices, and more.
3
18
u/RandomName8 May 28 '19
Of all the platforms for an initial beta, you did not choose the one 9 out of ten people have, you did not choose the one that is FOSS and literally everyone can easily obtain, no, you chose the one very few have and sits behind a multiple thousand dollar paywall ಠ_ಠ
11
u/tristan97122 May 28 '19 edited May 28 '19
To be fair to them I assume the reason is as follows:
Windows packaging requires a bunch of 3rd party stuff like InnoSetup etc (you can make portable apps but the goal is proper integration)
Linux is still fairly segregated when it comes to distros and packaging with limited cross distro support (and flatpak is still far from great unfortunately)
macOS has out of the box executable bundling
Making it an easier first step. Others are coming soon anyway.
3
u/tinustate May 28 '19
Setup on windows is a complex thing, using a matured third party product like innosetup is a good thing.
I always am a bit easy on the other platforms, just offer a zip and most users can unzip and call "java -jar" (or double click a file) on their own.
I can of course imagine that this isn't going to work on big businesses, but that is not a very big target audience. And they can easily pay for the professional setup packages that are multi platform and everything you ever dreamed of ;-)
2
u/tristan97122 May 28 '19
Oh they will most certainly go the InnoSetup route in the future, but I imagine they wanted to check that the foundations are solid without complex packaging around first, and then move on to the more meaty bits.
Also since Gluon and JavaFX are mostly about desktop applications, the
java -jarroute really is not ideal in this case, especially as AoT compilation and custom linking they provide work best when embedding the target JDK subset directly, meaning thatjava -jarapproach is even more brittle.But yeah, it's not fully NEEDED, but really appreciable and a huge push up for the JavaFX ecosystem :-)
-1
u/jepatrick May 28 '19
you did not choose the one 9 out of ten people have
I'm sorry.. Are you suggesting that 9/10 people use Linux, or Windows. Both are totally wrong, especially among developers, but one of those is way more wrong.
4
0
May 28 '19
[deleted]
3
u/cyanocobalamin May 28 '19
What platform would that be? I tried finding it on their site, but did not.
0
3
2
u/duheee May 28 '19
That's a cool one if it works. Of course, until is available on at least the 3 major platforms (plus a 4th one, freebsd) it'll be quite useless. But hey, is a step in the right direction and hopefully it won't take too long to port it once the proof of concept is done.
4
May 28 '19
still no java11 build for freebsd (that I know of at least) - I think it's asking a lot for anyone else to support it.
2
2
u/argv_minus_one May 28 '19
the projects … have a large group of contributors
What? Not by any relevant metric, they don't. Not JavaFX, anyway, and the rest (Java, GraalVM, etc) is meant for use on servers.
I'd certainly like to use JavaFX for my next desktop/mobile app, as the API looks far more sane than DOM, but unless by some miracle it becomes as relevant as Electron, I can't afford to risk it. I need my apps to still work on contemporary devices in 10 years, and I see little reason to believe JavaFX will still be maintained by then, especially with Apple breaking legacy apps on a yearly basis.
1
u/cyanocobalamin May 28 '19
Today, we are very excited to announce that we are working on an additional approach to create native applications using Java and JavaFX. With our new Gluon Client plugin, your Java Client application and all required dependencies are compiled into native code, which can directly be executed on the target platform. One of the advantages is a much faster startup time, as we don’t need the JVM to start anymore.
Sounds close to what helped fuck over applets in the 90s. Instead of write once run anywhere, now you will have write once, makes sure you have the right plugin, then run.
6
u/wildjokers May 28 '19
Their plugin sounds like a build-time thing (although I am not sure what the plugin plugs into...gradle/maven?)
6
u/tinustate May 28 '19
What is the license on this one? Just wondering.
I must admit i never had much trouble with java on the client, just package the entire thing and generate a installer with maven for inno setup.