[RESOLVED] No compiler is provided in this environment - DevDummy


Views | Thoughts | Concepts | Techniques

Thursday, May 04, 2023

[RESOLVED] No compiler is provided in this environment

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

This error message typically appears when you try to compile Java code without having a Java Development Kit (JDK) installed on your system.

The Java Runtime Environment (JRE) only provides the Java Virtual Machine (JVM) which is used to run Java applications, but it does not include the necessary tools for compiling Java code.

To fix this error, you need to install a JDK on your system. You can download the JDK from the official Java website and follow the installation instructions for your operating system.

After installing the JDK, make sure to set the JAVA_HOME environment variable to the JDK installation directory, and add the JDK's bin directory to your system's PATH variable. This will allow you to use the Java compiler (javac) from the command line.


  1. https://www.oracle.com/cis/java/technologies/downloads/

No comments:

Post a Comment