Skip to content
Advertisement

./gradlew run BUILD FAILED

I have my build.gradle file set up and my project is working good so far. The problem now is when i run ./gradlew run, it fails with the error :

What went wrong: Execution failed for task ‘:run’. Process ‘command ‘/usr/lib/jvm/java-7-openjdk-amd64/bin/java” finished with non-zero exit value 1

./gradlew build BUILD SUCCESSFULLY, Any clue as to why, Have also tried to check previous thread but all to no avail.Below is my gradle.build file:

JavaScript

ERROR:

JavaScript

Advertisement

Answer

Replace mainClassName = 'src.main.java.Functional.TestRun' in your build.gradle by mainClassName = Functional.TestRun'. You should also fix your manifest entry.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement