Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Major changes in 2.0.0 nightly builds
Major changes in 2.0.0 nightly builds [message #1688516] Fri, 20 March 2015 22:32 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6363
Registered: July 2009
Senior Member
Hi,

If you have a e4 + JavaFX applications and are running with the target
platform set to the nightly repo you'll have to make some adjustments to
your launch configs.

a) org.eclipse.fx.osgi & org.eclipse.fx.javafx are not part of the
default target feature if you want them you need to add
org.eclipse.fx.runtime.min.feature in your target platform

b) We advice you to *not* use the bundles from a) but change your
project like this:
- remove ALL javafx.*, com.sun.javafx, ... imports (you should see
errors for packages who can not be imported)
- update your launchconfigs & .product
- remove -Dosgi.framework.extensions=org.eclipse.fx.osgi
- add -Dorg.osgi.framework.bundle.parent=ext

c) javax.annotation is not shipped anymore with the target-platform but
we ship javax.annotation.jre which effectively is empty and only
there to allow interopt with the e4 core platform who does
javax.annotation imports, we are working with e4 to make those
import package directives at least being marked optional
=> adjust your features to use javax.annotation.jre
=> adjust launch configs who are based on plugins to use
javax.annotation.jre

d) we suggest that you check ALL your MANIFEST.MF and
a) remove javax.annotation imports
b) if a) is not possible you make the import *optional*

We fully understand that those are somehow disruptive changes but in the
long run we are sure they help the adoption of e4 on JavaFX.

Tom
Re: Major changes in 2.0.0 nightly builds [message #1689354 is a reply to message #1688516] Mon, 23 March 2015 11:40 Go to previous messageGo to next message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Hello,

I tried to implement these changes this morning, but the runtime now doesn't find my parts any longer :

Quote:

!ENTRY org.eclipse.e4.ui.workbench 4 0 2015-03-23 12:22:07.995
!MESSAGE Unable to load class 'parts.Master' from bundle '261'
!STACK 0
java.lang.ClassNotFoundException: parts.Master cannot be found by be.groups.portfolio.app_0.0.1.qualifier
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:573)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
at org.eclipse.fx.ui.workbench.renderers.base.BasePartRenderer.doProcessContent(BasePartRenderer.java:196)
at org.eclipse.fx.ui.workbench.renderers.base.BasePartRenderer.doProcessContent(BasePartRenderer.java:1)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:592)
at org.eclipse.fx.ui.workbench.renderers.base.BaseSashRenderer.doProcessContent(BaseSashRenderer.java:117)
at org.eclipse.fx.ui.workbench.renderers.base.BaseSashRenderer.doProcessContent(BaseSashRenderer.java:1)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:592)
at org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:339)
at org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:1)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.run(PartRenderingEngine.java:412)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.fx.ui.workbench.fx.E4Application$1.lambda$0(E4Application.java:157)
at org.eclipse.fx.ui.workbench.fx.E4Application$1$$Lambda$201/108637683.run(Unknown Source)
at org.eclipse.fx.ui.workbench.fx.internal.UISynchronizeImpl.syncExec(UISynchronizeImpl.java:73)
at org.eclipse.fx.ui.workbench.fx.E4Application$1.run(E4Application.java:151)
at org.eclipse.fx.ui.workbench.fx.E4Application.jfxStart(E4Application.java:169)
at org.eclipse.fx.ui.workbench.fx.DefaultJFXApp.start(DefaultJFXApp.java:57)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$58/1890632595.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$53/1619299635.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$170(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$56/133637767.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$55/937426907.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$145(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$45/1042801664.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

!ENTRY org.eclipse.e4.ui.workbench 4 0 2015-03-23 12:22:08.027
!MESSAGE Unable to load class 'parts.Details' from bundle '261'
!STACK 0
java.lang.ClassNotFoundException: parts.Details cannot be found by be.groups.portfolio.app_0.0.1.qualifier
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:573)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
at org.eclipse.fx.ui.workbench.renderers.base.BasePartRenderer.doProcessContent(BasePartRenderer.java:196)
at org.eclipse.fx.ui.workbench.renderers.base.BasePartRenderer.doProcessContent(BasePartRenderer.java:1)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:592)
at org.eclipse.fx.ui.workbench.renderers.base.BaseSashRenderer.doProcessContent(BaseSashRenderer.java:117)
at org.eclipse.fx.ui.workbench.renderers.base.BaseSashRenderer.doProcessContent(BaseSashRenderer.java:1)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:592)
at org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:339)
at org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:1)
at org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
at org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.run(PartRenderingEngine.java:412)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.fx.ui.workbench.fx.E4Application$1.lambda$0(E4Application.java:157)
at org.eclipse.fx.ui.workbench.fx.E4Application$1$$Lambda$201/108637683.run(Unknown Source)
at org.eclipse.fx.ui.workbench.fx.internal.UISynchronizeImpl.syncExec(UISynchronizeImpl.java:73)
at org.eclipse.fx.ui.workbench.fx.E4Application$1.run(E4Application.java:151)
at org.eclipse.fx.ui.workbench.fx.E4Application.jfxStart(E4Application.java:169)
at org.eclipse.fx.ui.workbench.fx.DefaultJFXApp.start(DefaultJFXApp.java:57)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$58/1890632595.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$53/1619299635.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$170(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$56/133637767.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$55/937426907.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$145(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$45/1042801664.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


I do have "<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dorg.osgi.framework.bundle.parent=ext"/>" in my launch configuration, removed javafx.imports, removed the bundles org.eclipse.fx.osgi & org.eclipse.fx.javafx.

Something I could have forgotten ... ? I'm running on the Target Platform Feature 2.0.0.201503230602.

Thomas Elskens
Re: Major changes in 2.0.0 nightly builds [message #1689381 is a reply to message #1689354] Mon, 23 March 2015 12:54 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6363
Registered: July 2009
Senior Member
Hi,

Are you sure the bundles are still resolved? My wild guess is that you
have java.annotation require bundles in your MANIFEST.MF.

So do you see any resolution errors? What does "ss" give you when run on
the console?

Tom

On 23.03.15 12:40, Thomas Elskens wrote:
> Hello,
>
> I tried to implement these changes this morning, but the runtime now
> doesn't find my parts any longer :
>
> Quote:
>> !ENTRY org.eclipse.e4.ui.workbench 4 0 2015-03-23 12:22:07.995
>> !MESSAGE Unable to load class 'parts.Master' from bundle '261'
>> !STACK 0
>> java.lang.ClassNotFoundException: parts.Master cannot be found by
>> be.groups.portfolio.app_0.0.1.qualifier
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
>>
>> at
>> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
>>
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:573)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BasePartRenderer.doProcessContent(BasePartRenderer.java:196)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BasePartRenderer.doProcessContent(BasePartRenderer.java:1)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:592)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseSashRenderer.doProcessContent(BaseSashRenderer.java:117)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseSashRenderer.doProcessContent(BaseSashRenderer.java:1)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:592)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:339)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:1)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.run(PartRenderingEngine.java:412)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.E4Application$1.lambda$0(E4Application.java:157)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.E4Application$1$$Lambda$201/108637683.run(Unknown
>> Source)
>> at
>> org.eclipse.fx.ui.workbench.fx.internal.UISynchronizeImpl.syncExec(UISynchronizeImpl.java:73)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.E4Application$1.run(E4Application.java:151)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.E4Application.jfxStart(E4Application.java:169)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.DefaultJFXApp.start(DefaultJFXApp.java:57)
>> at
>> com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(Unknown
>> Source)
>> at
>> com.sun.javafx.application.LauncherImpl$$Lambda$58/1890632595.run(Unknown
>> Source)
>> at
>> com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(Unknown
>> Source)
>> at
>> com.sun.javafx.application.PlatformImpl$$Lambda$53/1619299635.run(Unknown
>> Source)
>> at com.sun.javafx.application.PlatformImpl.lambda$null$170(Unknown
>> Source)
>> at
>> com.sun.javafx.application.PlatformImpl$$Lambda$56/133637767.run(Unknown
>> Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> com.sun.javafx.application.PlatformImpl.lambda$runLater$171(Unknown
>> Source)
>> at
>> com.sun.javafx.application.PlatformImpl$$Lambda$55/937426907.run(Unknown
>> Source)
>> at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
>> at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
>> at com.sun.glass.ui.win.WinApplication.lambda$null$145(Unknown
>> Source)
>> at
>> com.sun.glass.ui.win.WinApplication$$Lambda$45/1042801664.run(Unknown
>> Source)
>> at java.lang.Thread.run(Unknown Source)
>>
>> !ENTRY org.eclipse.e4.ui.workbench 4 0 2015-03-23 12:22:08.027
>> !MESSAGE Unable to load class 'parts.Details' from bundle '261'
>> !STACK 0
>> java.lang.ClassNotFoundException: parts.Details cannot be found by
>> be.groups.portfolio.app_0.0.1.qualifier
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344)
>>
>> at
>> org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
>>
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at
>> org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:573)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BasePartRenderer.doProcessContent(BasePartRenderer.java:196)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BasePartRenderer.doProcessContent(BasePartRenderer.java:1)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:592)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseSashRenderer.doProcessContent(BaseSashRenderer.java:117)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseSashRenderer.doProcessContent(BaseSashRenderer.java:1)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.engineCreateWidget(BaseRenderer.java:592)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:339)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseWindowRenderer.doProcessContent(BaseWindowRenderer.java:1)
>>
>> at
>> org.eclipse.fx.ui.workbench.renderers.base.BaseRenderer.processContent(BaseRenderer.java:672)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:191)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.createGui(PartRenderingEngine.java:288)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.PartRenderingEngine.run(PartRenderingEngine.java:412)
>>
>> at
>> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.E4Application$1.lambda$0(E4Application.java:157)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.E4Application$1$$Lambda$201/108637683.run(Unknown
>> Source)
>> at
>> org.eclipse.fx.ui.workbench.fx.internal.UISynchronizeImpl.syncExec(UISynchronizeImpl.java:73)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.E4Application$1.run(E4Application.java:151)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.E4Application.jfxStart(E4Application.java:169)
>>
>> at
>> org.eclipse.fx.ui.workbench.fx.DefaultJFXApp.start(DefaultJFXApp.java:57)
>> at
>> com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(Unknown
>> Source)
>> at
>> com.sun.javafx.application.LauncherImpl$$Lambda$58/1890632595.run(Unknown
>> Source)
>> at
>> com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(Unknown
>> Source)
>> at
>> com.sun.javafx.application.PlatformImpl$$Lambda$53/1619299635.run(Unknown
>> Source)
>> at com.sun.javafx.application.PlatformImpl.lambda$null$170(Unknown
>> Source)
>> at
>> com.sun.javafx.application.PlatformImpl$$Lambda$56/133637767.run(Unknown
>> Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> com.sun.javafx.application.PlatformImpl.lambda$runLater$171(Unknown
>> Source)
>> at
>> com.sun.javafx.application.PlatformImpl$$Lambda$55/937426907.run(Unknown
>> Source)
>> at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
>> at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
>> at com.sun.glass.ui.win.WinApplication.lambda$null$145(Unknown
>> Source)
>> at
>> com.sun.glass.ui.win.WinApplication$$Lambda$45/1042801664.run(Unknown
>> Source)
>> at java.lang.Thread.run(Unknown Source)
>
>
> I do have "<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS"
> value="-Dorg.osgi.framework.bundle.parent=ext"/>" in my launch
> configuration, removed javafx.imports, removed the bundles
> org.eclipse.fx.osgi & org.eclipse.fx.javafx.
> Something I could have forgotten ... ? I'm running on the Target
> Platform Feature 2.0.0.201503230602.
> Thomas Elskens
Re: Major changes in 2.0.0 nightly builds [message #1689386 is a reply to message #1689381] Mon, 23 March 2015 13:12 Go to previous messageGo to next message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Sorry sorry problem solved, I was doing two things at once : I was trying out p2 update mechanism and therefore turned off the clearPersistedState (while the UI had been changed...).

Everything back to normal (and I can leave out the frameworkextension in the pom of my testplugins, which is very nice).

Thanks a lot !

Thomas
Re: Major changes in 2.0.0 nightly builds [message #1690684 is a reply to message #1688516] Mon, 30 March 2015 15:27 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6363
Registered: July 2009
Senior Member
Hi,

Minor update for those useing the javafx-packager you should update your
build.xml to include and make it look like this:

> <fx:platform basedir="${java.home}">
> <fx:property name="org.osgi.framework.bundle.parent" value="ext"/>
> </fx:platform>

Tom

On 20.03.15 23:32, Tom Schindl wrote:
> Hi,
>
> If you have a e4 + JavaFX applications and are running with the target
> platform set to the nightly repo you'll have to make some adjustments to
> your launch configs.
>
> a) org.eclipse.fx.osgi & org.eclipse.fx.javafx are not part of the
> default target feature if you want them you need to add
> org.eclipse.fx.runtime.min.feature in your target platform
>
> b) We advice you to *not* use the bundles from a) but change your
> project like this:
> - remove ALL javafx.*, com.sun.javafx, ... imports (you should see
> errors for packages who can not be imported)
> - update your launchconfigs & .product
> - remove -Dosgi.framework.extensions=org.eclipse.fx.osgi
> - add -Dorg.osgi.framework.bundle.parent=ext
>
> c) javax.annotation is not shipped anymore with the target-platform but
> we ship javax.annotation.jre which effectively is empty and only
> there to allow interopt with the e4 core platform who does
> javax.annotation imports, we are working with e4 to make those
> import package directives at least being marked optional
> => adjust your features to use javax.annotation.jre
> => adjust launch configs who are based on plugins to use
> javax.annotation.jre
>
> d) we suggest that you check ALL your MANIFEST.MF and
> a) remove javax.annotation imports
> b) if a) is not possible you make the import *optional*
>
> We fully understand that those are somehow disruptive changes but in the
> long run we are sure they help the adoption of e4 on JavaFX.
>
> Tom
>
Previous Topic:Getting rid of javax.annotation imports
Next Topic:JavaFX ViewPart under MS Windows?
Goto Forum:
  


Current Time: Sun Oct 22 23:12:13 GMT 2017

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

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