Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaFXPackager multiple applications

2668050Jul 12 2014 — edited Jul 15 2014

Is it possible to use the JavaFXPackager to create a bundle that has multiple apps?

I have two applications, each which has it's own primary jar file, but both use the same set of dependent 3rd party libraries / jars. I want to package them in the same bundle so that they use the same JRE, but one application actually launches and uses the second application.

However, from looking at how the JavaPackager ant stuff is structured, there seems to be no way to bundle this together. For example, fx:preferences is a top level element under fx:deploy. IMO, it should be under fx:application so you can set each specific application preferences as to whether it should create a menu, desktop icon etc. In the same way, you can't specify global filesets as well as individual application level filesets.

I can't see any way to solve this problem without generating 2 completely different installer packages each including it's own JVM... which poses a problem since I won't be able to know / control where the second app is installed (I want them together in the same location and using the same JRE).

It doesn't look like the packager was designed to support multiple apps in the same bundle.. which is a big oversight IMO.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2014
Added on Jul 12 2014
3 comments
1,321 views