Exploring Gradle and tried to use it with JavaFX8. JavaFX is becoming the NEXT UI to use with Java.
Compiled a demo and built and compiled it normally. Runs fine.
Built directory structure, ran gradle:
C:\Code\DirectDrawDemo>gradle run
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:run
Error: Could not find or load main class org.gradle.DirectDrawDemo.Main
:run FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:run’.
Process ‘command ‘C:\Java\jdk1.8.0_40\bin\java.exe’’ finished with non-zero exit value 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.367 secs
Okay so I know that JavaFX doesn’t have a main, it uses Application, so I changed build.gradle to look for Application and ran it again.
C:\Code\DirectDrawDemo>gradle run
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:run
Error: Could not find or load main class org.gradle.DirectDrawDemo.Application
:run FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:run’.
Process ‘command ‘C:\Java\jdk1.8.0_40\bin\java.exe’’ finished with non-zero exit value 1
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.148 secs
Both failed. Currently reading up on JavaFX and the Application class. Any insights would be welcome. Any thoughts on a way to attack this would be welcome.