Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Upgrading to Eclipse 2019-06 and it cannot find the FXCanvas class
Upgrading to Eclipse 2019-06 and it cannot find the FXCanvas class [message #1814105] Tue, 03 September 2019 18:59 Go to next message
Ken Keefe is currently offline Ken KeefeFriend
Messages: 41
Registered: April 2012
Member
I am upgrading my eclipse ide to Eclipse 2019-06. My project is a large RCP project with about 50 plugins and 20 features. Three of my plugins use GEF and FX. These plugins no longer seem to be building correctly.

I get the same errors in all three of the plugins:

The type javafx.embed.swt.FXCanvas cannot be resolved. It is indirectly referenced from required .class files	ADVISEGEFModule.java	/edu.illinois.mobius.atomic.advise/src/edu/illinois/mobius/atomic/advise/ui/gef	line 1	Java Problem

The project was not built since its build path is incomplete. Cannot find the class file for javafx.embed.swt.FXCanvas. Fix the build path then try building this project	edu.illinois.mobius.atomic.advise		Unknown	Java Problem


This is the target file that I'm using:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="mobius" sequenceNumber="22">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.sdk.feature.group" version="2.13.0.v20170609-0928"/>
<unit id="org.eclipse.sdk.feature.group" version="4.7.3.v20180330-0919"/>
<unit id="org.eclipse.xtext.sdk.feature.group" version="2.12.0.v20170519-1412"/>
<repository location="http://download.eclipse.org/releases/oxygen"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.gef.cloudio.sdk.feature.group" version="5.0.2.201906180202"/>
<unit id="org.eclipse.gef.common.sdk.feature.group" version="5.0.0.201906180202"/>
<unit id="org.eclipse.gef.dot.sdk.feature.group" version="5.0.400.201906180202"/>
<unit id="org.eclipse.gef.fx.sdk.feature.group" version="5.0.2.201906180202"/>
<unit id="org.eclipse.gef.geometry.sdk.feature.group" version="5.0.2.201906180202"/>
<unit id="org.eclipse.gef.graph.sdk.feature.group" version="5.1.0.201906180202"/>
<unit id="org.eclipse.gef.layout.sdk.feature.group" version="5.0.0.201906180202"/>
<unit id="org.eclipse.gef.mvc.examples.source.feature.group" version="5.1.0.201906180202"/>
<unit id="org.eclipse.gef.mvc.sdk.feature.group" version="5.1.0.201906180202"/>
<unit id="org.eclipse.gef.zest.examples.source.feature.group" version="5.1.0.201906180202"/>
<unit id="org.eclipse.gef.zest.sdk.feature.group" version="5.1.0.201906180202"/>
<repository location="http://download.eclipse.org/tools/gef/updates/releases"/>
	<unit id="org.eclipse.gef.fx.compatibility.equinox.feature.group" version="5.0.2.201906180202"/>
	<unit id="org.eclipse.gef.mvc.fx.compatibility.equinox.feature.group" version="5.0.2.201906180202"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.junit" version="4.12.0.v201504281640"/>
<unit id="org.junit.jupiter.api" version="5.0.0.v20170910-2246"/>
<unit id="org.junit.jupiter.api.source" version="5.0.0.v20170910-2246"/>
<unit id="org.junit.jupiter.engine" version="5.0.0.v20170910-2246"/>
<unit id="org.junit.jupiter.engine.source" version="5.0.0.v20170910-2246"/>
<unit id="org.junit.jupiter.migrationsupport" version="5.0.0.v20170910-2246"/>
<unit id="org.junit.jupiter.migrationsupport.source" version="5.0.0.v20170910-2246"/>
<unit id="org.junit.jupiter.params" version="5.0.0.v20170910-2246"/>
<unit id="org.junit.jupiter.params.source" version="5.0.0.v20170910-2246"/>
<unit id="org.junit.platform.commons" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.commons.source" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.engine" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.engine.source" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.launcher" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.launcher.source" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.runner" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.runner.source" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.suite.api" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.platform.suite.api.source" version="1.0.0.v20170910-2246"/>
<unit id="org.junit.source" version="4.12.0.v201504281640"/>
<unit id="org.junit.vintage.engine" version="4.12.0.v20170910-2246"/>
<unit id="org.junit.vintage.engine.source" version="4.12.0.v20170910-2246"/>
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20180330011457/repository"/>
</location>
</locations>
</target>
Re: Upgrading to Eclipse 2019-06 and it cannot find the FXCanvas class [message #1816633 is a reply to message #1814105] Fri, 01 November 2019 22:51 Go to previous messageGo to next message
Ken Keefe is currently offline Ken KeefeFriend
Messages: 41
Registered: April 2012
Member
I was finally able to resolve this problem by following the instructions here to manually add jfxswt.jar to my JRE Eclipse configuration...

https://bugs.eclipse.org/bugs/attachment.cgi?id=247744
Re: Upgrading to Eclipse 2019-06 and it cannot find the FXCanvas class [message #1816807 is a reply to message #1816633] Thu, 07 November 2019 12:25 Go to previous message
govind Ra is currently offline govind RaFriend
Messages: 95
Registered: July 2009
Member
Hi ken,

Are you using java 11 and Open JFX ?

Thanks and Regards,
Govind R
Previous Topic:Problem using "Zulu" JDK 11-bundled OpenJFX with SWT
Next Topic:"the import of javafx cannot be resolved"
Goto Forum:
  


Current Time: Tue Oct 15 04:17:21 GMT 2024

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

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

Back to the top