For Java-based programs such as Maven, Jenkins, Gradle or Tomcat to run, they need to know that Java's JDK is installed. That's the purpose of the JAVA_HOME environment variable. It tells programs ...
Can you post the code? Or e-mail it to me at [email protected]? It sounds to me like your Project1.java file either doesn't have a "main" class in it. You have to define a "main" class to act as ...