Code Monkey home page Code Monkey logo

Comments (3)

cxcorp avatar cxcorp commented on July 20, 2024

Reason why mvn test-compile fails:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building 01.PortScanner 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 01.PortScanner ---
[INFO] Deleting C:\Users\Joona\Documents\IdeaProjects\TMCProjects\mooc-2016-securing-software\Set1-01.PortScanner\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 01.PortScanner ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Joona\Documents\IdeaProjects\TMCProjects\mooc-2016-securing-software\Set1-01.PortScanner\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ 01.PortScanner ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\Joona\Documents\IdeaProjects\TMCProjects\mooc-2016-securing-software\Set1-01.PortScanner\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.968 s
[INFO] Finished at: 2016-12-15T17:02:53+02:00
[INFO] Final Memory: 8M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project 01.PortScanner: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

$JAVA_HOME is set to point at a JRE instead of a JDK.

from tmc-intellij.

cxcorp avatar cxcorp commented on July 20, 2024

I believe I found the issue. fi.helsinki.cs.tmc.intellij.services.TestRunningService::prepareThreadForRunningTests does not check the RunResult's status enum for compilation errors - it only catches exceptions.

The ErrorMessageService class is quite difficult to use right now so I'll have to look into that first.

from tmc-intellij.

cxcorp avatar cxcorp commented on July 20, 2024

Issue also manifests itself when javac is missing from the PATH.

from tmc-intellij.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.