Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Dmitrijs Leonovs
Dmitrijs Leonovs
4,649 Points

Can't Run with Gradle This application?

When I use bootRun from gradle I got an exception : *

What went wrong: Execution failed for task ':findMainClass'.

org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;

When I try to Run just from class AppConfig

What went wrong: Execution failed for task ':AppConfig.main()'.

Process 'command 'C:/Program Files/Java/jdk1.8.0_221/bin/java.exe'' finished with non-zero exit value 1

1 Answer

Hello Dmitrijs, Were you ever able to get things to work with Gradle? I have not been able to get anything working with gradle and was hoping that you might have found a solution. I have just been skipping any task that uses gradle. It has really hampered my learning. I am very disappointed in gradle., and the decision by tree-house to make it part of the java track I am on.