Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflow when running jfxJar and jfxRun #126

Closed
JFCote opened this issue Jun 19, 2018 · 1 comment
Closed

StackOverflow when running jfxJar and jfxRun #126

JFCote opened this issue Jun 19, 2018 · 1 comment

Comments

@JFCote
Copy link

JFCote commented Jun 19, 2018

I think my problem looks a lot like this one: #71

When I try to run gradlew jfxJar or gradlew jfxRun, it always fail and return a StackOverflowError.

Here is my build.gradle

buildscript {
    dependencies {
        classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '8.8.2'
    }
    repositories {
        maven { //noinspection GroovyAssignabilityCheck
            url 'http://artifactory:8081/artifactory/libs-release' }
    }
}
apply plugin: 'java'

repositories {
    maven { //noinspection GroovyAssignabilityCheck
        url 'http://artifactory:8081/artifactory/libs-release' }
    maven { //noinspection GroovyAssignabilityCheck
        url 'http://artifactory:8081/artifactory/libs-release-local' }
}

dependencies {
    compile group: 'com.atlassian.jira', name: 'jira-rest-java-client-core', version: '4.0.0'

    compile group: 'com.atlassian.fugue', name: 'fugue', version: '2.6.1'
    compile group: 'joda-time', name: 'joda-time', version: '2.9.9'
    compile group: 'com.google.inject', name: 'guice', version: '4.0'
    compile group: 'org.jetbrains', name: 'annotations', version: '13.0'
    compile group: 'com.sun.jna', name: 'jna', version: '3.0.9'
    compile group: 'org.antlr', name: 'stringtemplate', version: '4.0.2'
    compile group: 'javax.mail', name: 'mail', version: '1.4.7'

    testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.0.2'
    testCompile group: 'org.mockito',  name: 'mockito-all', version: '1.10.19'
}

apply plugin: 'javafx-gradle-plugin'

jfx {
    // minimal requirement for jfxJar-task
    mainClass = 'com.xxx.yyyy.MainApp'

    // minimal requirement for jfxNative-task
    vendor = 'My super app'
}

As you can see, this is a very basic setup.

I get this in the ouput:

C:\dev\CSBuildMaster>gradlew jfxJar
> Task :jfxJar FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jfxJar'.
> java.lang.StackOverflowError (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
4 actionable tasks: 1 executed, 3 up-to-date

C:\dev\CSBuildMaster>

I'm able to run my program without any problem in IntelliJ using the "App Configuration" but when I try to run these command in the command line, it doesn't work :/

Any idea what is going wrong?

@FibreFoX
Copy link
Owner

Same problem as #71 ... don't know whats wrong :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants