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 trialJohn Miller
4,007 Points[SOLVED] After defining 'public void handleSayTsup(ActinEvent actionEvent) in Controller.java I get groovy error
After defining the following code in Controller.java:
package sample;
import javafx.event.ActionEvent;
public class Controller {
public void handleSayTsup(ActionEvent actionEvent) {
System.out.println("Tsup!");
}
}
I get this error when I try to run it:
Error: Cannot compile Groovy files: no Groovy library is defined for module 'Tsup'
PS: Why doesn't my markup work correctly?
4 Answers
Steve Hunter
57,712 PointsI'm not sure changing IDE counts as a solution! There was something wrong with your setup as the project was looking for Groovy things which I don't think it needed. I'm glad you got on your way ... I'll mark this as solved.
Steve.
kabir k
Courses Plus Student 18,036 PointsLike Steve Hunter mentioned, it's not the IDE that's the problem. Looks like your method name should be handleSaySup()
not handleSayTsup()
John Miller
4,007 PointsThank you!
John Miller
4,007 PointsModerator - please close this question, I resolved the issue by re-creating the project i Eclipse instead of IntelliJ
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsI edited your code block for you. You were using apostrophes rather than backticks. You want to use three ``` like that.