2

I am trying to do atlas-run (following a simple tutorial about building confluence themes) I am getting the following error:

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

However: I have gone to my eclipse settings (window - > preferences - > java) and checked that the jdk is both ticked as default and is also selected as the execution environment (to be safe, I removed the JRE). I also went to my system settings and made sure that PATH and JAVA_HOME were both pointing to the JDK not the JRE.

Kara
  • 6,115
  • 16
  • 50
  • 57

3 Answers3

2

I had the same problem.

Go to Control Panel --> System --> Advanced System Settings

Click Environment Variables
My JAVA_HOME was set to c:\program files (x86)\java\jre1.8.0_111
I changed it to:
C:\Program Files\Java\jdk1.8.0_111
and it ran successfully.

webdev5
  • 467
  • 1
  • 8
  • 22
0

Solution: Go to project run configuration and select Execution enviourment : CDC-1.0/Foundation-1.0 (jdk1.8), And Click Run now.

0

I had the same problem with maven-compiler-plugin Adding maven bin folder to PATH variable solved my problem

Adey
  • 1,846
  • 1
  • 10
  • 18