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 Build a JavaFX Application Design a Better App The Controller

[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?

I edited your code block for you. You were using apostrophes rather than backticks. You want to use three ``` like that.

4 Answers

I'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
PLUS
kabir k
Courses Plus Student 18,036 Points

Like Steve Hunter mentioned, it's not the IDE that's the problem. Looks like your method name should be handleSaySup() not handleSayTsup()

Thank you!

Moderator - please close this question, I resolved the issue by re-creating the project i Eclipse instead of IntelliJ