com.intellij.execution.configurations has these two methods
both return a ProjectJDK. I guess that one returns the module JDK and the other returns the JDK , but as a practical matter, I don't really know what that means. When and why would they differ? If I am writing a plugin under what circumstances would I want one and not the other?
My goal is to locate the JDK that, I guess, is running the instance of intellij in which my plugin is being invoked by the user? Is there any reason normally to want another ? I do not know the driving use cases behind this API.
Oh and also there exists com.intellij.openapi.projectRoots.getInternalJDK ... just a little confused. At any rate, I am not able to find an object that wants to give me a ProjectJDK. This fails :
JavaParameters javaParameters = new JavaParameters();
or at least the ProjectJDK it returns is null. I looked for returned by in the OpenAPI... a number of abstract classes return it. ...
Also, I need to call out (literally, express as a String in the normal running of my plugin) a name of a .class file which will be located in my plug-in directory. Is there a shortcut utility method that gives me the name of that directory from whatever current directory I happen to find myself in when the user executes my plugin?
Message was edited by: