Search code examples
javaintellij-ideagroovyjdi

Java Debugging Interface (com.sun.jdi) package missing in IntelliJ 2017.1-C


I'm currently using IntelliJ IDEA Community Edition 2017.1 to work on a project that involves using a Greenfoot port (GitHub) that's optimized to use Groovy. The code is perfectly fine, but IntelliJ is telling me that com.sun.jdi doesn't exist. I am unsure as to how I might fix this. Any ideas?

Sidenote: I don't know much about how JDI correlates with VM, which I suspect may have something to do with it.


Solution

  • Add tools.jar to the JSDK classpath used for this project:

    tools.jar