Languages

IntelliJ - Groovy compilation error

7 points
Asked by:
Root-ssh
178180

When I try build my Groovy project in IntelliJ IDEA Community Edition I get following error:

Detailed error:

Screenshot:

How to solve it ?

1 answer
3 points
Answered by:
Creg
9600

I had the same problem on my Ubuntu 20.04.

It was caused by an incorrect Java version. So, try to change to Java 13.

Now, I have set JAVA_HOME env variable to local installation directory:

Note: JDK azul-13.0.4 was installed automatically by IntelliJ IDEA, so check your installation path.

You can set JAVA_HOME in ~/.profile file. Just put at file beginning:

Note: do not forget to logout and login or restart your operating system.

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join