Cannot find the system Java compiler Linux

At the time of making a modification, the hot deployment is failing. I use OpenSUSE Tumbleweed. The exact error is


IllegalStateException: Cannot find the system Java compiler. Check that your class path includes tools.jar

The Studio configuration is as it’s in the image. I am using Oracle Java JDK 1.8.0_121

Any suggestions for solving the error?

Selección_010

Hot deploy compilation is done by the application itself, so please make sure your Tomcat use JDK, not JRE. In particular, check if you have JAVA_HOME or JRE_HOME environment variables pointing to a JRE - then it is used by Tomcat.

I am having this same error. I have CUBA pointing to JDK 1.8.0.131, however, I do not see the setting to adjust the Tomcat server. Where would that be?

Tomcat uses JAVA_HOME or JRE_HOME environment variables, make sure JAVA_HOME points to the JDK.