Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » noclassdeffound for javafx.scene.layout.BorderPane(Sorting the OSGI classpath for JavaFX components)
noclassdeffound for javafx.scene.layout.BorderPane [message #1574922] Tue, 20 January 2015 14:18 Go to next message
Robert Onslow is currently offline Robert OnslowFriend
Messages: 19
Registered: July 2009
Junior Member
I'm getting the dreaded NoClassDefFound for a javafx.scene.layout.BorderPane in an OSGI application.

I have:

(i) used the EFX Eclipse download

(ii) added -Defxclipse.osgi.hook.debug=true and
-Dosgi.framework.extensions=reference\:file\:org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar,reference\:file\:org.eclipse.fx.osgi_1.1.0.201411050602.jar

to the vmargs in eclipse.ini

(iii) imported package javafx.scene.layout in the manifest for the plugin which refers to the javafx.scene.layout.BorderPane

(iv) ensured the org.eclipse.fx.osgi fragment is enabled in the Run Configuration

Where should I go from here?

Thanks

Robert
Re: noclassdeffound for javafx.scene.layout.BorderPane [message #1574943 is a reply to message #1574922] Tue, 20 January 2015 14:32 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Your 2nd line -Dosgi.framework.extensions=... is wrong. You are not
pointing there towards jars but it should be a simple name.

So for the FX-Hooks you'd only pass
-Dosgi.framework.extensions=org.eclipse.fx.osgi

Tom

On 20.01.15 15:18, Robert Onslow wrote:
> I'm getting the dreaded NoClassDefFound for a
> javafx.scene.layout.BorderPane in an OSGI application.
>
> I have:
>
> (i) used the EFX Eclipse download
>
> (ii) added -Defxclipse.osgi.hook.debug=true and
> -Dosgi.framework.extensions=reference\:file\:org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar,reference\:file\:org.eclipse.fx.osgi_1.1.0.201411050602.jar
>
>
> to the vmargs in eclipse.ini
>
> (iii) imported package javafx.scene.layout in the manifest for the
> plugin which refers to the javafx.scene.layout.BorderPane
>
> (iv) ensured the org.eclipse.fx.osgi fragment is enabled in the Run
> Configuration
>
> Where should I go from here?
>
> Thanks
>
> Robert
Re: noclassdeffound for javafx.scene.layout.BorderPane [message #1574962 is a reply to message #1574943] Tue, 20 January 2015 14:47 Go to previous messageGo to next message
Robert Onslow is currently offline Robert OnslowFriend
Messages: 19
Registered: July 2009
Junior Member
Thanks Tom
I made that change, but the noclassdeffound is still there.

What would the next step be?

Robert
Re: noclassdeffound for javafx.scene.layout.BorderPane [message #1574969 is a reply to message #1574962] Tue, 20 January 2015 14:53 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Rereading your message. I question myself which eclipse.ini did you
change? The one from your application? Do you use a fixed config.ini?

We have wizards to bootstrap a OSGi+JavaFX application did you try to
use those? Take a look what they are producing.

Tom

On 20.01.15 15:47, Robert Onslow wrote:
> Thanks Tom
> I made that change, but the noclassdeffound is still there.
>
> What would the next step be?
>
> Robert
Re: noclassdeffound for javafx.scene.layout.BorderPane [message #1575269 is a reply to message #1574969] Tue, 20 January 2015 18:32 Go to previous message
Robert Onslow is currently offline Robert OnslowFriend
Messages: 19
Registered: July 2009
Junior Member
Tom
Your question gave me the answer. I was amending the eclipse.ini for the Eclipse application itself. I needed to add the VM arg to the Run Configuration which is running the application within Eclipse.

Thanks

Robert
Previous Topic:e(fx)clipse 1.2.0 on January 31th
Next Topic:FXSceneHolder doesn't open Main scene. Not on FX application thread; currentThread = main
Goto Forum:
  


Current Time: Sat Jan 25 02:53:10 GMT 2025

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

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

Back to the top