Problem with run Eclipse Editor with JavaFX and GEF5 [message #1770045] |
Mon, 07 August 2017 13:55  |
Eclipse User |
|
|
|
I want do create Eclipse editor with using GEF5 and JavaFX, but then i run application i have warning WARNING: You are binding against the deprecated org.eclipse.fx.javafx - please remove all javafx imports and error Caused by: java.lang.ClassNotFoundException: javafx.embed.swt.FXCanvas cannot be found by
0) I install e(fx)clipse in my IDE
1) I create target platform
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="slicer" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.fx.runtime.min.feature.feature.group" version="2.4.0.201605100504"/>
<unit id="org.eclipse.fx.target.feature.feature.group" version="2.4.0.201605121035"/>
<repository location="http://download.eclipse.org/efxclipse/runtime-released/2.4.0/site/"/>
</location>
2) I add Require-Bundle in my bundle org.eclipse.fx.javafx;bundle-version="2.2.0"
3) I add in my product file feature dependency <feature id="org.eclipse.fx.runtime.min.feature" version="2.4.0.201605100504"/>
4) i'm add in launcherArgs / vmArgs -Dosgi.framework.extensions=org.eclipse.fx.osgi
5) and i'm add -Dorg.osgi.framework.bundle.parent=ext
All classes compiles but after run i have error. What i do wrong?
|
|
|
|
|
|
|
|
|
Re: Problem with run Eclipse Editor with JavaFX and GEF5 [message #1770079 is a reply to message #1770074] |
Tue, 08 August 2017 04:17   |
Eclipse User |
|
|
|
I found two plugin in one of my feature.xml included in product file <plugin
id="org.eclipse.fx.javafx"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>
<plugin
id="org.eclipse.fx.osgi"
download-size="0"
install-size="0"
version="0.0.0"
fragment="true"
unpack="false"/>
Also i found in *Import-Package:* of my bundle javafx.animation,
javafx.application,
javafx.beans,
javafx.beans.binding,
javafx.beans.property,
javafx.beans.property.adapter,
javafx.beans.value,
javafx.collections,
javafx.collections.transformation,
javafx.concurrent,
javafx.css,
javafx.embed.swing,
javafx.embed.swt,
javafx.event,
javafx.fxml,
javafx.geometry,
javafx.print,
javafx.scene,
javafx.scene.canvas,
javafx.scene.chart,
javafx.scene.control,
javafx.scene.control.cell,
javafx.scene.effect,
javafx.scene.image,
javafx.scene.input,
javafx.scene.layout,
javafx.scene.media,
javafx.scene.paint,
javafx.scene.shape,
javafx.scene.text,
javafx.scene.transform,
javafx.scene.web,
javafx.stage,
javafx.util,
javafx.util.converter,
I delete this and my Error (Caused by: java.lang.ClassNotFoundException: javafx.embed.swt.FXCanvas cannot be found by) and Warning (WARNING: You are binding against the deprecated org.eclipse.fx.javafx - please remove all javafx imports) is gone from IDE
After this Java start crash, but i already have --launcher.GTK_version 2 in vm args. Now i'am add environment variable SWT_GTK3 = 0 and all working from IDE normal.
Is it glitch of IDE or my bug?
Now i'm try to build standalone applicatiion with tycho, it is build but after run i have same warning "WARNING: You are binding against the deprecated org.eclipse.fx.javafx - please remove all javafx imports".
Don't understand is it critical or not.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04072 seconds