Tycho throwing a NoClassDefFoundError [message #1653745] |
Fri, 06 March 2015 06:11  |
Eclipse User |
|
|
|
Hello,
When doing a Tycho build, Tycho stumbles over one my test plugins, throwing a no NoClassDefFoundError over javafx/collections/FXCollections, as follows :
Quote:
Running be.groups.portfolio.service.codelist.CodelistItemsTest
Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.093 sec <<< FAILURE! - in be.groups.portfolio.service.codelist.CodelistItemsTest
testItemsLength(be.groups.portfolio.service.codelist.CodelistItemsTest) Time elapsed: 0.064 sec <<< ERROR!
java.lang.NoClassDefFoundError: javafx/collections/FXCollections
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:389)
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 be.groups.portfolio.service.codelist.CodelistItems.getLabels(CodelistItems.java:69)
at be.groups.portfolio.service.codelist.CodelistItemsTest.testItemsLength(CodelistItemsTest.java:68)
unknownLanguageShouldReturnFrench(be.groups.portfolio.service.codelist.CodelistItemsTest) Time elapsed: 0.001 sec <<< ERROR!
java.lang.NoClassDefFoundError: javafx/collections/FXCollections
at be.groups.portfolio.service.codelist.CodelistItems.getLabels(CodelistItems.java:69)
at be.groups.portfolio.service.codelist.CodelistItemsTest.unknownLanguageShouldReturnFrench(CodelistItemsTest.java:84)
Needless to say, I have neither compiling issues nor problems to launch the tests from inside the IDE.
I have no idea where as to look for this problem, any ideas ... ?
Thomas Elskens
|
|
|
Re: Tycho throwing a NoClassDefFoundError [message #1653937 is a reply to message #1653745] |
Fri, 06 March 2015 08:02   |
Eclipse User |
|
|
|
So what version of java is the build running on? Is it running on the
same computer you develop? e.g. when you run the build on a linux server
make sure you run with OracleJDK and/or an OpenJDK you downloaded
yourself because the stock one from linux distros does not holds JavaFX
Tom
On 06.03.15 12:11, Thomas Elskens wrote:
> Hello,
>
> When doing a Tycho build, Tycho stumbles over one my test plugins,
> throwing a no NoClassDefFoundError over
> javafx/collections/FXCollections, as follows :
>
> Quote:
>> Running be.groups.portfolio.service.codelist.CodelistItemsTest
>> Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.093
>> sec <<< FAILURE! - in
>> be.groups.portfolio.service.codelist.CodelistItemsTest
>> testItemsLength(be.groups.portfolio.service.codelist.CodelistItemsTest)
>> Time elapsed: 0.064 sec <<< ERROR!
>> java.lang.NoClassDefFoundError: javafx/collections/FXCollections
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:389)
>>
>> 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
>> be.groups.portfolio.service.codelist.CodelistItems.getLabels(CodelistItems.java:69)
>>
>> at
>> be.groups.portfolio.service.codelist.CodelistItemsTest.testItemsLength(CodelistItemsTest.java:68)
>>
>>
>> unknownLanguageShouldReturnFrench(be.groups.portfolio.service.codelist.CodelistItemsTest)
>> Time elapsed: 0.001 sec <<< ERROR!
>> java.lang.NoClassDefFoundError: javafx/collections/FXCollections
>> at
>> be.groups.portfolio.service.codelist.CodelistItems.getLabels(CodelistItems.java:69)
>>
>> at
>> be.groups.portfolio.service.codelist.CodelistItemsTest.unknownLanguageShouldReturnFrench(CodelistItemsTest.java:84)
>>
>
>
> Needless to say, I have neither compiling issues nor problems to launch
> the tests from inside the IDE.
>
> I have no idea where as to look for this problem, any ideas ... ?
>
> Thomas Elskens
|
|
|
|
|
|
|
|
|
|
|
|
Re: Tycho throwing a NoClassDefFoundError [message #1688149 is a reply to message #1687064] |
Fri, 20 March 2015 04:28  |
Eclipse User |
|
|
|
Hi,
The other option is that you start kicking out the "org.eclipse.fx.osgi"
by reconfiguring Equinox to consult the ext-classpath.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=462634
Tom
On 19.03.15 14:31, Thomas Elskens wrote:
> Hello,
>
> Just in case some-one would have the same issue : following the
> instruction mvn install:install-file -DgroupId=org.eclipse.fx.runtime
> -DartifactId=org.eclipse.fx.osgi -Dversion=0.0.0 -Dpackaging=jar
> -Dfile=/path/to/file works very nicely.
>
> I also tried bypassing the local Nexus server and fetch directly from
> Maven central, no success either.
> Thomas Elskens
|
|
|
Powered by
FUDForum. Page generated in 0.04039 seconds