Issue #4 resolved

java.lang.ClassNotFoundException: com.sun.javafx.tools.packager.Creat eBSSParams

Anonymous created an issue

Hello,

First thanks for making this plugin!

I'm trying to use it, version 0.2.0-SNAPSHOT on windows 7, and 0.1.0-SNAPSHOT on macosx 10.8, with java version "1.7.0_10" on both.

I have the same behavior on the 2 platforms when i do 'gradle assemble' :

java.lang.ClassNotFoundException: com.sun.javafx.tools.packager.Creat eBSSParams

Here is my gradle build (may be it is not correct) :

apply plugin: 'javafx' buildscript { repositories { mavenLocal() } dependencies { classpath 'com.bitbucket.shemnon.javafxplugin:plugin:0.2.0-SNAPSHOT' } } repositories { // mavenLocal() mavenCentral() } dependencies { ... } javafx { def javafxMainClass = '...' }

Thanks, Thierry

Comments (2)

  1. shemnon repo owner

    The 0.1.0 and 0.2.0 builds have a buildscript dependency on the ant-javafx jar and the jfxrt jar. The scripts on the repository have that info. Here is what your dependencies inside the buildscript should look like:

        dependencies {
            classpath 'com.bitbucket.shemnon.javafxplugin:plugin:0.2.0-SNAPSHOT'
            classpath project.files("${System.properties['java.home']}/../lib/ant-javafx.jar")
            classpath project.files("${System.properties['java.home']}/lib/jfxrt.jar")
        }
    
  2. Log in to comment