Toolkits JavaFX
Platforms
  • linux
  • macosx
  • windows
  • solaris
Framework
License Apache Software License 2.0
Documentation No documentation link provided
 Tags
Downloads 1318
Rating
(0)

Authored by:

Andres Almiray
aalmiray@yahoo.com

 twpster [permalink]

 Sep 24, 2012 17:09 PM
 

I created a Griffon Javafx app using the Javafx Archetype. But when I run the app I get the following: 2012-09-24 14:00:10,429 [main] INFO griffon.javafx.JavaFXApplication - Initializing all startup groups: [sample] 2012-09-24 14:00:11,585 [main] ERROR griffon.util.GriffonExceptionHandler - Uncaught Exception java.lang.ExceptionInInitializerError at org.codehaus.griffon.runtime.builder.CompositeBuilderHelper.(CompositeBuilderHelper.groovy:39) at org.codehaus.griffon.runtime.core.DefaultMVCGroupManager.buildMVCGroup(DefaultMVCGroupManager.java:106) at org.codehaus.griffon.runtime.core.AbstractMVCGroupManager.createMVCGroup(AbstractMVCGroupManager.java:238) at org.codehaus.griffon.runtime.core.AbstractMVCGroupManager.createMVCGroup(AbstractMVCGroupManager.java:186) at org.codehaus.griffon.runtime.core.AbstractGriffonApplication.createMVCGroup(AbstractGriffonApplication.java:474) at org.codehaus.griffon.runtime.core.AbstractGriffonApplication.startup(AbstractGriffonApplication.java:313) at griffon.javafx.JavaFXApplication.realize(JavaFXApplication.java:107) at griffon.javafx.JavaFXApplication.main(JavaFXApplication.java:153) Caused by: java.lang.RuntimeException: Could not init groovyx.javafx.SceneGraphBuilder because of an exception in groovyx.javafx.SceneGraphBuilder.registerCanvas at groovyx.javafx.SceneGraphBuilder.(SceneGraphBuilder.groovy:86) at groovyx.javafx.SceneGraphBuilder.(SceneGraphBuilder.groovy) at org.codehaus.griffon.runtime.javafx.JavaFXCompositeBuilderCustomizer.(JavaFXCompositeBuilderCustomizer.java:33) ... 8 more Caused by: java.lang.reflect.InvocationTargetException ... 11 more Caused by: java.lang.NoClassDefFoundError: javafx.scene.canvas.Canvas at groovyx.javafx.factory.CanvasFactory.class$(CanvasFactory.groovy) at groovyx.javafx.factory.CanvasFactory.$get$$class$javafx$scene$canvas$Canvas(CanvasFactory.groovy) at groovyx.javafx.factory.CanvasFactory.(CanvasFactory.groovy:19) at groovyx.javafx.SceneGraphBuilder.registerCanvas(SceneGraphBuilder.groovy:382) ... 11 more

Any help would be appreciated!

 

 aalmiray [permalink]

 Sep 25, 2012 05:09 AM
 

It looks like the exception is caused by java.lang.NoClassDefFoundError: javafx.scene.canvas.Canvas. This class is available in JavaFX 2.2 and newer. If you're running an older version of JavaFx please upgrade if possible.

 

 twpster [permalink]

 Sep 25, 2012 11:09 AM
 

Thanks for the quick response Andres! You called it -- once I installed Javafx 2.2.1 it worked like a charm! It was rather tricky updating from Javafx 2.1 -- they say it is included in the Java JDK but when I installed java SE 7 update 7 it did not install javafx. I had to go to the Javafx 2.2 for Java SE 6 Standalone Download for the SDK. That only worked after I deleted the javafx 2.1 sdk directory. Anyway, thanks again!

 

 hakim [permalink]

 Nov 29, 2012 16:11 PM
 

silly question from a niewbie is it possible to install the plugin without internet connection?

 

 aalmiray [permalink]

 Nov 29, 2012 17:11 PM
 

I'm afraid the first download requires a network connection as you have to download the plugin zip from this portal. Once installed you can switch to offline mode by specifying a command line flag

griffon -Dgriffon.offline.mode=true compile

This flag can also be set in griffon-app/conf/BuildConfig.groovy; by doing so you don't need to specify it every time you invoke a command.

 

Post a comment