mvn compile error.
Answered
[code]
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[/code]
This is the output i get when i try to compile using the command in intellij
[code]
mvn clean package
[/code]
Where is it drawing the directory? I can compile java code no problem.
Please sign in to leave a comment.
@QVava Hi, from my testing, that setting should work on Ubuntu too.
The IDEA would show the command for running in the Run tool window's first line.
Could you please share that executed command?
Can you run that command successfully from the terminal?
Below resolved the issue.
I faced the same issue by changing the JAVA HOME path the intellij is also started work and the command line also started working. I found in my mac to JAVA path is working.
1. Internet Plugin IN
2. Download JDK
I change my default java home path with the new JDK installed path and now both cmd and intellij working.