Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Bundle jre with Eclipse 4.7's .app-bundle on macos

On 2018-08-24 21:57, Andreas Pakulat wrote:

I'm building an RCP application and recently updated from Eclipse 4.4 as base to 4.7, along with it comes shipment as a plain app bundle on macOS. I'm also integrating a JRE installation into the RCP application such that users don't need to have Java installed. This is done
through root-files and worked fine with Eclipse 4.4.

With Eclipse 4.7 it appears I'm hitting an incompatibility between tycho's idea where the 'root' of an rcp app is and Eclipse' own idea. The launcher shipped with Eclipse 4.7-based applications looks for a shipped Java runtime in the folder '../../jre/Contents/Home/bin' (based on,
where this path is relative to the 'launcher'. It appears 'launcher' here means the actual binary inside, which makes sense. In turn that means the 'jre' folder needs to be placed directly inside, next to the Contents folder there. So the app
bundle would look like this:
 +- Contents/
 |  +- Eclipse/
 |  +- MacOS/
 |    + myrcp
 +- jre/
   +- Contents

Unfortunately tycho, when being told to place a 'jre' folder into the 'root' using this:


puts the jre folder into Thus Eclipse won't find the JRE and won't start on systems that have no java runtime installed.

I'm mostly wondering if I'm missing something here that I need to tell tycho now that I've switched the Eclipse version or bundling jre's
should be done differently now?

I saw where it appears that using a relative path pointing outside the 'normal' root that tycho uses may work, but I'm not quite sure how to apply this to my example above - in particular the link and permissions line.

Oh well, just as I wrote and sent that I can't make out how to leverage this I finally found the right incarnation:


Works now, the jre is placed two levels up from the Contents/Eclipse/ folder and the permissions of the various executable files are correct too.


Andreas Pakulat squish@xxxxxxxxxxxxx
froglogic GmbH - Automated UI and Web Testing

Back to the top