|
Re: JavaFX in PlugIn project. [message #1608707 is a reply to message #1608580] |
Mon, 09 February 2015 18:02 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Do you have the necessary Import-Package directives in your MANIFEST.MF?
It should hold something like
> Import-Package: javafx.animation;version="2.2.0",
> javafx.application;version="2.2.0",
> javafx.beans;version="2.2.0",
> javafx.beans.binding;version="2.2.0",
> javafx.beans.property;version="2.2.0",
> javafx.beans.property.adapter;version="2.2.0",
> javafx.beans.value;version="2.2.0",
> javafx.collections;version="2.2.0",
> javafx.collections.transformation;version="8.0.0",
> javafx.concurrent;version="2.2.0",
> javafx.css;version="8.0.0",
> javafx.embed.swing;version="2.2.0",
> javafx.embed.swt;version="2.2.0",
> javafx.event;version="2.2.0",
> javafx.fxml;version="2.2.0",
> javafx.geometry;version="2.2.0",
> javafx.print;version="8.0.0",
> javafx.scene;version="2.2.0",
> javafx.scene.canvas;version="2.2.0",
> javafx.scene.chart;version="2.2.0",
> javafx.scene.control;version="2.2.0",
> javafx.scene.control.cell;version="2.2.0",
> javafx.scene.effect;version="2.2.0",
> javafx.scene.image;version="2.2.0",
> javafx.scene.input;version="2.2.0",
> javafx.scene.layout;version="2.2.0",
> javafx.scene.media;version="2.2.0",
> javafx.scene.paint;version="2.2.0",
> javafx.scene.shape;version="2.2.0",
> javafx.scene.text;version="2.2.0",
> javafx.scene.transform;version="2.2.0",
> javafx.scene.web;version="2.2.0",
> javafx.stage;version="2.2.0",
> javafx.util;version="2.2.0",
> javafx.util.converter;version="2.2.0",
Tom
On 09.02.15 18:07, Piotr Iksowski wrote:
> Hello All,
>
> Last time, I've been strugling with running any plug-in project which is
> using JavaFX and I stucked... I'm getting below exceptions:
>
>
> !ENTRY org.eclipse.fx.ide.java6 4 0 2015-02-09 16:41:14.001
> !MESSAGE FrameworkEvent ERROR
> !STACK 0
> org.osgi.framework.BundleException: Could not resolve module:
> org.eclipse.fx.ide.java6 [219]
> Unresolved requirement: Require-Capability: osgi.ee;
> filter:="(&(osgi.ee=JavaSE)(version>=1.3)(!(version>=1.8)))"
>
> at org.eclipse.osgi.container.Module.start(Module.java:434)
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
>
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
>
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
>
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
>
> at
> org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
>
>
>
>
> org.eclipse.core.runtime.CoreException: Plug-in "MyPlug" was unable to
> instantiate class "myplug.views.SampleView".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
>
> at
> org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:63)
>
> at
> org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:108)
> at
> org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPart(CompatibilityPart.java:264)
>
> at
> org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:302)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
>
> Caused by: java.lang.NoClassDefFoundError: javafx/scene/Parent
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2658)
> at java.lang.Class.getConstructor0(Class.java:2964)
> at java.lang.Class.newInstance(Class.java:403)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
>
> ... 122 more
> Caused by: java.lang.ClassNotFoundException: javafx.scene.Parent cannot
> be found by MyPlug_1.0.0.qualifier
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:423)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:336)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:328)
>
>
> ....................
> ....................
> ....................
>
>
> I've tried Eclipse, Eclipse EE, Eclipse RCP (all Luna version) and
> behaviour was exactly the same.
> Simple applications with JavaFX are working without any problem, plugin
> projects are also working well, but mixing this two things is causing
> above exception .
> Any idea why it is happening ? I will be really grateful for any help.
>
> Thank You.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03484 seconds