Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » DIApplication doesn't start on Mac
DIApplication doesn't start on Mac [message #1706207] Mon, 24 August 2015 21:28 Go to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hi

I was setting up a development environment on a Mac this weekend (for the first time) and imported a DIApplication project I had already created on Windows. The project was created using the JavaFX/OSGI/OSGi Application Project wizard with the option of using Eclipse DI.

On windows the application starts up fine showing the initial stage. On Mac I can see Equinox starting up logging debug info. If I enable the console I can use it, i.e. "ss" lists the bundles. The Stage is never shown. It seems to me as if @PostConstruct on MainApplication is never called.

The plugin.xml looks like it should:

<plugin>
<extension id="application" point="org.eclipse.core.runtime.applications">
	<application thread="any" cardinality="*" visible="true" >
		<run class="org.eclipse.fx.ui.di.DIApplication" >
			<parameter name="mainClass" value="de.kware.app.loginDisplay.MainApplication" />
		</run>
	</application>
</extension>
<extension id="product" point="org.eclipse.core.runtime.products">
	<product application="de.kware.app.loginDisplay.application" name="LoginDisplay" >
		<property name="appName" value="LoginDisplay" />
	</product>
</extension>
</plugin>


And the product is configured to start this application. The launching vom arguments are on the Mac (on Windows only the first argument is used).

-Dorg.osgi.framework.bundle.parent=ext
-XstartOnFirstThread 
-Dorg.eclipse.swt.internal.carbon.smallFonts


Could this be an issue with javax.annotation? I do not import javax.annotation in the MANIFEST.MF. The product has javax.annotation.jre as a dependency.

Or is this a configuration issue?

Thanks for your help!
Christoph
Re: DIApplication doesn't start on Mac [message #1706208 is a reply to message #1706207] Mon, 24 August 2015 21:55 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 24.08.15 23:28, Christoph Keimel wrote:
> Hi
>
> I was setting up a development environment on a Mac this weekend (for
> the first time) and imported a DIApplication project I had already
> created on Windows. The project was created using the JavaFX/OSGI/OSGi
> Application Project wizard with the option of using Eclipse DI.
>
> On windows the application starts up fine showing the initial stage. On
> Mac I can see Equinox starting up logging debug info. If I enable the
> console I can use it, i.e. "ss" lists the bundles. The Stage is never
> shown. It seems to me as if @PostConstruct on MainApplication is never
> called.
>
> The plugin.xml looks like it should:
>
>
> <plugin>
> <extension id="application" point="org.eclipse.core.runtime.applications">
> <application thread="any" cardinality="*" visible="true" >
> <run class="org.eclipse.fx.ui.di.DIApplication" >
> <parameter name="mainClass"
> value="de.kware.app.loginDisplay.MainApplication" />
> </run>
> </application>
> </extension>
> <extension id="product" point="org.eclipse.core.runtime.products">
> <product application="de.kware.app.loginDisplay.application"
> name="LoginDisplay" >
> <property name="appName" value="LoginDisplay" />
> </product>
> </extension>
> </plugin>
>
> And the product is configured to start this application. The launching
> vom arguments are on the Mac (on Windows only the first argument is used).
>
>
> -Dorg.osgi.framework.bundle.parent=ext
> -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
>

You need to remove "-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts" - they'll block the event
queue.

Tom
Re: DIApplication doesn't start on Mac [message #1706239 is a reply to message #1706208] Tue, 25 August 2015 08:31 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Thanks!
Re: DIApplication doesn't start on Mac [message #1706241 is a reply to message #1706239] Tue, 25 August 2015 08:43 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I thought we generate a .launch which is already holding the correct
values? If we don't we definately should fix this in 2.2.0

Tom

On 25.08.15 10:31, Christoph Keimel wrote:
> Thanks!
Re: DIApplication doesn't start on Mac [message #1706243 is a reply to message #1706241] Tue, 25 August 2015 09:02 Go to previous message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
I just checked it and the product is created without these arguments.
The project I was using was created some time ago.

[Updated on: Tue, 25 August 2015 09:03]

Report message to a moderator

Previous Topic:EMF Databinding adapter leak with javafx
Next Topic:Is there a WindowBuilder in the works for e(fx)clipse?
Goto Forum:
  


Current Time: Fri Apr 26 13:32:43 GMT 2024

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

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

Back to the top