Launching Runtime Eclipse Instance With bndtools?

46 views
Skip to first unread message

Jon Passki

unread,
Oct 29, 2017, 4:26:07 PM10/29/17
to bndtool...@googlegroups.com
In a previous thread [1], Gregory Amerson and Tim Ward pointed to bndtools.runtime.eclipse.applaunch-0.1.0.jar [2] as a way to launch Eclipse via bndtools. Going up a directory displays the following [3]:

> This directory contains JAR file dependencies that are intended ONLY FOR BUILT-TIME usage.
> None are intended to be deployed as bundles into a running OSGi Framework, and indeed they may cause
> unexpected errors if they are used at runtime.

Given the above, are there any supported ways to launch an Eclipse runtime application via a bndtools launcher? Or, when it comes to Eclipse, is the only recommended way to launch an Eclipse application is via an Eclipse product (i.e. created via PDE editor, built via Tycho)?

[1]: https://groups.google.com/forum/#!topic/bndtools-users/9UTqizZ6z2M
[2]: https://github.com/bndtools/bndtools/tree/master/cnf/buildrepo/bndtools.runtime.eclipse.applaunch
[3]: https://github.com/bndtools/bndtools/tree/master/cnf/buildrepo

Peter Kirschner

unread,
Oct 29, 2017, 7:00:23 PM10/29/17
to bndtools-users
Hi Jon,

You can find examples of an Eclipse Launches inside this GitHub repo 
An example bnd launch config looks like this one ... app.ui_win32.win32.x86-64.bndrun

You can launch an Eclipse product also as an exported fat jar from bnd, but it depends on your use case.
You require the Eclipse Product only when branding and/or native launcher executables.
There are slides from my talk at the EclipseCon Europe - Eclipse RCP with bndtools - available describing the RCP / bndtools workflow.

The example uses a ant/PDE build instead of your requested Tacho, but it works ;-)
Feel free to get directly in touch with me if you have more detailed questions. But I must admit that I cannot explain the Tycho way to build Eclipse products.

regards,

Peter
Reply all
Reply to author
Forward
0 new messages