Hannes Niederhausen
2018-10-24 08:06:02 UTC
Hi,
I am using Tycho to build an Eclipse RCP using GEF5, which means I need to include JavaFX as well.
The product is building fine, however now I have a eclipse-plugin-test which runs an GUI test and this is not working.
Using the following surefire configuration, as suggested by the GEF adopters guide:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<argLine>
-Dosgi.framework.extensions=org.eclipse.fx.osgi
</argLine>
<appArgLine>-nosplash -consoleLog -debug</appArgLine>
</configuration>
</plugin>
I added the extra requirements to the target definiton configuration:
<extraRequirements>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.fx.osgi</id>
<versionRange>3.0.0</versionRange>
</requirement>
</extraRequirements>
However when running the test, compilation is fine, but execution throws a NoClassDefFoundException for javafx.events.Event.
IO also tried to use: -Dorg.osgi.framework.bundle.parent=ext
With this the jvafx classes are found however javafx.embed.swt.FXCanvas isn't.
I try to solve the problem for 2 days now and really don't know what to do.
Has anybody an idea, how to fix the problem?
thanks in advance and kind regards
Hannes
I am using Tycho to build an Eclipse RCP using GEF5, which means I need to include JavaFX as well.
The product is building fine, however now I have a eclipse-plugin-test which runs an GUI test and this is not working.
Using the following surefire configuration, as suggested by the GEF adopters guide:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<argLine>
-Dosgi.framework.extensions=org.eclipse.fx.osgi
</argLine>
<appArgLine>-nosplash -consoleLog -debug</appArgLine>
</configuration>
</plugin>
I added the extra requirements to the target definiton configuration:
<extraRequirements>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.fx.osgi</id>
<versionRange>3.0.0</versionRange>
</requirement>
</extraRequirements>
However when running the test, compilation is fine, but execution throws a NoClassDefFoundException for javafx.events.Event.
IO also tried to use: -Dorg.osgi.framework.bundle.parent=ext
With this the jvafx classes are found however javafx.embed.swt.FXCanvas isn't.
I try to solve the problem for 2 days now and really don't know what to do.
Has anybody an idea, how to fix the problem?
thanks in advance and kind regards
Hannes