Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Unable to launch tycho generated application
Unable to launch tycho generated application [message #1436013] Thu, 02 October 2014 09:01 Go to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Hi,
I have created a simple efxclipse application using project wizard -"JavaFx/OSGI/e4 Application projects". I am unable to launch tycho generated product.
When I launch "Eclipse.app" only wait cursor appears infinitely, no log.
The generated config.ini is as attached.
In the config.ini file there is default start level (@4) appended to each bundle.
I tried various start levels but did not work.
Please help.
Environment - Eclipse 4.4 (Luna), macosx/cocoa/x86_64


  • Attachment: config.ini
    (Size: 5.29KB, Downloaded 252 times)
  • Attachment: test-app.zip
    (Size: 20.74KB, Downloaded 236 times)
Re: Unable to launch tycho generated application [message #1436886 is a reply to message #1436013] Fri, 03 October 2014 15:06 Go to previous messageGo to next message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Hi, I tried your application and it working with me after adding the following dependencies to the feature.xml file :

org.eclipse.fx.core.di
org.eclipse.fx.core.di.context

I had a similar problem some days ago...

Thomas Elskens
Re: Unable to launch tycho generated application [message #1438621 is a reply to message #1436013] Mon, 06 October 2014 09:31 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

So that I can try to reproduce it. Are you on the released 1.0.0 version
or nightly runtime?

Tom

On 02.10.14 14:24, Mandar Machekar wrote:
> Hi,
> I have created a simple efxclipse application using project wizard -"JavaFx/OSGI/e4 Application projects". I am unable to launch tycho generated product.
> When I launch "Eclipse.app" only wait cursor appears infinitely, no log.
> The generated config.ini is as attached.
> In the config.ini file there is default start level (@4) appended to each bundle.
> I tried various start levels but did not work.
> Please help.
> Environment - Eclipse 4.4 (Luna), macosx/cocoa/x86_64
>
>
>
Re: Unable to launch tycho generated application [message #1438633 is a reply to message #1438621] Mon, 06 October 2014 09:49 Go to previous messageGo to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Hi,
It is reproducible with both nightly an released versions.

Mandar
Re: Unable to launch tycho generated application [message #1438645 is a reply to message #1436886] Mon, 06 October 2014 10:03 Go to previous messageGo to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Hi Thomas,
It is still not working for me after adding dependencies org.eclipse.fx.core.di
and org.eclipse.fx.core.di.context in feature.xml

Mandar

Re: Unable to launch tycho generated application [message #1438658 is a reply to message #1438645] Mon, 06 October 2014 10:28 Go to previous messageGo to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Hi,
It is working on windows os but not on mac osx.
I am using java - 1.8.0.20
Re: Unable to launch tycho generated application [message #1438659 is a reply to message #1438633] Mon, 06 October 2014 10:27 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Ok - See your problem.

You modified the .product file to generate a native launcher, while this
works on win32&linux - that's why Thomas is not seeing the problem on -
it breaks exactly the way you see on osx - hence the .product generate
has this option turned off (and the pom only points to the efxclipse-repos)!

The problem on OS-X is that the splash from the native launcher occupies
the event loop so javafx is able not get a hand to it and blocks.

The solution we currently advise is to use is the JavaFX-Packager:
a) remove "The product includes native launcher artifacts"
b) Set back the modifications you made to the releng/pom.xml (most
important are the changes to <configuration>)
c) Rebuild with tycho
d) As the last step after the build launch the build.xml file found in
the releng dir (using JDK8 or later) which will use the
java-packaging toolsuite to build a dmg and pkg package including a
native launcher

Maybe the safest way is that you simply let the wizard regenerate the
app for you ;-)

Tom

On 06.10.14 11:50, Mandar Machekar wrote:
> Hi,
> It is reproducible with both nightly an released versions.
>
> Mandar
Re: Unable to launch tycho generated application [message #1438721 is a reply to message #1438658] Mon, 06 October 2014 12:01 Go to previous messageGo to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Hi Thomas,

Thanks a lot, it worked as above!!
It generated bundle for mac but how to do for window and linux?

Mandar
Re: Unable to launch tycho generated application [message #1438738 is a reply to message #1438721] Mon, 06 October 2014 12:29 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Run it on windows and it will generate the msi/setup.exe, run it on OS-X
to generate a deb/rpm - you need to have extra tools installed!

As you note ;-) that's the current draw back of the java-packager (it
got renamed a few months ago). There's been a BoF at JavaOne and they
know about this problem.

Danno (the key developer of the java packager) is very open minded so if
there a patches to overcome those problems I guess he'll merge them in.

IMHO the biggest draw back today is that there's no splash support and
we also discussed this at the JavaOne BoF - they have ideas how to
implement it but most likely not for u40.

There's nothing I could do against all that because the eclipse native
launcher with its splash as well as the java-packager are out of my
control and we don't the opensource cycles to invest into any of them.

If there's enough commericial need we are open to investigate and
provide a solution if e4+JavaFX until the java-packager supports it.

The long term solution is really to integrate this into java-packager
because it will give us in future a frontend for App-Store integration
which involves things like siging, ... which is not as trivial as it
sounds (at least when talking about Apples AppStore).

Tom

On 06.10.14 14:01, Mandar Machekar wrote:
> Hi Thomas,
>
> Thanks a lot, it worked as above!!
> It generated bundle for mac but how to do for window and linux?
>
> Mandar
Re: Unable to launch tycho generated application [message #1438756 is a reply to message #1438738] Mon, 06 October 2014 12:53 Go to previous messageGo to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Hi Thomas,

There is another issue I am facing.
When I launch generated .app file, it only shows a window with title "Test Application". It is not picking up Application.e4xmi.
Is anything missing?

Mandar
Re: Unable to launch tycho generated application [message #1438775 is a reply to message #1438756] Mon, 06 October 2014 13:23 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
hi,

If you already launched once, the framework already generated a
workbench.e4xmi inside your home-dir - search for a folder "workbench"
and delete this guy.

So you are starting from the persisted state.

Tom

On 06.10.14 14:53, Mandar Machekar wrote:
> Hi Thomas,
>
> There is another issue I am facing. When I launch generated .app file,
> it only shows a window with title "Test Application". It is not picking
> up Application.e4xmi.
> Is anything missing?
>
> Mandar
Re: Unable to launch tycho generated application [message #1439361 is a reply to message #1438775] Tue, 07 October 2014 04:59 Go to previous messageGo to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Hi,
Thanks, it worked.
But I have specified 'clearPersistedState' argument and it is in the generated eclipse.ini file too.

Mandar
Re: Unable to launch tycho generated application [message #1439449 is a reply to message #1439361] Tue, 07 October 2014 07:10 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Don't you miss the "-" in -clearPersistedState?

Tom

On 07.10.14 06:59, Mandar Machekar wrote:
> Hi,
> Thanks, it worked.
> But I have specified 'clearPersistedState' argument and it is in the
> generated eclipse.ini file too.
>
> Mandar
Re: Unable to launch tycho generated application [message #1439461 is a reply to message #1439449] Tue, 07 October 2014 07:21 Go to previous messageGo to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
No, it is -clearPersistedState
Re: Unable to launch tycho generated application [message #1439462 is a reply to message #1439461] Tue, 07 October 2014 07:25 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Ok - i guess it works in the IDE? Please file a bugzilla so that we can
track what's going on there.

Tom

On 07.10.14 09:21, Mandar Machekar wrote:
> No, it is -clearPersistedState
Re: Unable to launch tycho generated application [message #1439562 is a reply to message #1439462] Tue, 07 October 2014 09:27 Go to previous messageGo to next message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Yes, -clearPersistedState works in IDE and was expecting to work in the generated app.

Mandar
Re: Unable to launch tycho generated application [message #1441249 is a reply to message #1439562] Thu, 09 October 2014 12:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Ok so I just wanted this to work in a demo app I've just developed for a
customer and the problem you are seeing is that the
eclipse.ini-Properties are not read at all when launching with the
javafx-created launcher!

To pass informations the only working solution i found was to use
VM-Properties (-D...) which is done inside your build.xml using

<fx:deploy
....>
...
<fx:platform>
<fx:property name="clearPersistedState" value="true"/>
</fx:platform>
....

If you don't like the default location you can e.g. force the location
using

<fx:property name="osgi.instance.area" value="@user.home/.mye4app"/>

Tom

On 07.10.14 11:27, Mandar Machekar wrote:
> Yes, -clearPersistedState works in IDE and was expecting to work in the
> generated app.
>
> Mandar
Re: Unable to launch tycho generated application [message #1441869 is a reply to message #1441249] Fri, 10 October 2014 09:42 Go to previous message
Mandar Machekar is currently offline Mandar MachekarFriend
Messages: 16
Registered: October 2014
Junior Member
Hi Thomas,

Thanks!!

Mandar
Previous Topic:Wrong maven-tycho setup provided by project creation wizard
Next Topic:JavaFX 8u20 support in e(fx)clipse
Goto Forum:
  


Current Time: Sun Jan 19 08:11:04 GMT 2025

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

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

Back to the top