Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to build Eclipse package? (start-up problem)

Hi Alex,

 

This is a very good answer to a Tycho FAQ – we should post it in a way so that it can be found more easily.

 

To do this, I’ve re-posted the question on stackoverflow: http://stackoverflow.com/questions/23295890/unable-to-acquire-application-service-error-when-starting-an-eclipse-applicati

 

I’ve seen that you are also active there – could you also to post your answer there?

 

Best regards

Tobias

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Alex Blewitt
Sent: Freitag, 25. April 2014 11:39
To: Tycho user list
Subject: Re: [tycho-user] How to build Eclipse package? (start-up problem)

 

Here’s the product from my E4 beginner’s guide book* (which Jeff kindly reviewed :)

 

 

    <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="4"/>
    <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2"/>
    <plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2"/>
    <plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1"/>
 

Those are the ones that you will need to get running for the product in most cases.

 

The simpleconfigurator is the bundle responsible for reading the bundles.info and bringing everything up - essentially pre-filling the bundles and restoring the started/running state.

 

The ds bundle starts declarative services (which more bundles are using)

 

The equinox.common provides the IAdapterManager service and registers the platform: URL handler (so bundles can refer to content like platform:/org.eclipse.equinox.common/about.html)

 

The core.runtime provides the preference service and the preference store.

 

Hope that helps!

 

Alex

 

* [SHAMELESS PLUG] The book is at http://alblue.bandlem.com/2013/07/eclipse-book-published.html if you’re interested, and you can clone the sample repository from https://github.com/alblue/com.packtpub.e4. There’s a branch per chapter along with the annotated steps so you can see before/after changes.

 

On 25 Apr 2014, at 09:07, Sievers, Jan <jan.sievers@xxxxxxx> wrote:



some of the start levels and auto-start for typical eclipse RCPs are kind of "magic" to me.

you may want to check the RCP demo project

 

 

IIRC we made this work by monkey-see, monkey-do.

 

Regards,

Jan

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Michael Vorburger
Sent: Freitag, 25. April 2014 03:41
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] How to build Eclipse package? (start-up problem)

 

Hello,

 

I'm trying to learn how to build a complete Eclipse packages (like what one downloads from http://www.eclipse.org/downloads/) from scratch myself using Tycho. May I ask for help here?

 

cd com.temenos.ds.op.git

mvn -f mirror-pom.xml prepare-package

mvn -o package

base/releng/com.temenos.ds.op.base.sdk.repository/target/products/com.temenos.ds.op.sdk.ide.product/linux/gtk/x86_64/eclipse

 

fails to start-up. configuration/*.log says  "java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini)."  I vaguely understand that I must have somehow somewhere not told it how / what to bootstrap? Where can one learn more about this?

 

 

I CAN run the EPP builds locally and get working package, of course, but am having trouble to understand what I'm missing from there to get my example to work? Educate me!

 

Thank you very much,

Michael 

 

PS: Is the org.eclipse.epp:org.eclipse.epp-parent artifact available on a public Maven repo. @eclipse.org so that one could use it as <parent> in something like what I'm trying to do?

_______________________
Michael Vorburger
http://www.vorburger.ch

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

 


Back to the top