Skip to main content



      Home
Home » Eclipse Projects » e(fx)clipse » JavaFX application deployment
JavaFX application deployment [message #1623151] Wed, 18 February 2015 19:21 Go to next message
Eclipse UserFriend
Hello,

as tas explained in the post below, the new packaging option for JavaFX applications is very good things, but I noticed that the generated package, embarks entire JRE in the runtime folder, it may be a good thing, because it makes our application standalone to the JRE Installed on the target system.

https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_for_javafx

But nowadays there is no single machine where the JRE is not installed, and if we have two or three applications installed on one machine, it goes against optimization.

there is a way in e(fx)eclipse plugins for not embedding the runtime ?

thanks

Re: JavaFX application deployment [message #1624429 is a reply to message #1623151] Thu, 19 February 2015 14:53 Go to previous message
Eclipse UserFriend
On 19.02.15 01:21, AIT YAHIA Idir wrote:
> Hello,
>
> as tas explained in the post below, the new packaging option for JavaFX
> applications is very good things, but I noticed that the generated
> package, embarks entire JRE in the runtime folder, it may be a good
> thing, because it makes our application standalone to the JRE Installed
> on the target system.
>
> https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_for_javafx
>
>
> But nowadays there is no single machine where the JRE is not installed,
> and if we have two or three applications installed on one machine, it
> goes against optimization.

Really I expect them to get more and more! Why would one install a
system java? You'll only do that if you want your Browser to run
java-applets or webstart stuff and in event of some installing a new JRE
see you application be broken because something has changed in JavaFX.

e(fx)clipse and other stuff has to access none public API of JavaFX
simply because they did not yet provide an API to implement key features
like DnD for Tabs, ... . So I'd strongly advice to always package a
private JRE with you!

If we look into Java9 you'll only deploy a fraction of the JRE something
you can do already today on Linux with profiles. IIRC you could run on
profile2 (because you need an XML-Parser for EMF & FXML).

>
> there is a way in e(fx)eclipse plugins for not embedding the runtime ?
>

If you are targeting Linux & Windows just check the include native
launcher artifacts, fix the p2-repos in your tycho build to include
those natives, fix the platform-section and run tycho.

For OS-X this won't work because the native launcher blocks the
event-dispatcher so you'd have roll your own launcher. We already
thought about doing a custom launcher because this would allow us to fix
the missing splash problem but without proper funding we are unable to
make that happen.

If your app is broken one day by a Java update don't blame us I have
warned you to not do that!

Tom
Previous Topic:How to create an editor with syntax highlighting for Java (tutorial)
Next Topic:Mac OSx Image and DMG Build Error
Goto Forum:
  


Current Time: Sat Jun 14 23:48:58 EDT 2025

Powered by FUDForum. Page generated in 0.04924 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top