IDEA 2017.1 keeps JDK files open on Windows

Answered

Hello,

On Windows it appears that the IDE keeps the JDK directories open. Here is the scenario.

I use the IDE to work on jdk9/langtools repository, I make a change to the source base, test it locally, now it is time to throw other tests, so I do a full JDK/OpenJDK build, but the build will fail because the IDE is keeping the jdk image and its resources open, thus will cause the the make/build to fail as follows:

<redacted>

Creating jdk jimage
/usr/bin/rm: cannot remove `/cygdrive/c/XXX/jdk9/build/windows-x64/images/jdk/lib/jrt-fs.jar': Device or resource busy
/usr/bin/rm: cannot remove `/cygdrive/c/XXXjdk9/build/windows-x64/images/jdk/release': Device or resource busy
Images.gmk:135: recipe for target '/cygdrive/c/XXX/jdk9/build/windows-x64/images/jdk/bin/java.exe' failed

make[3]: *** [/cygdrive/c/XXX/jdk9/build/windows-x64/images/jdk/bin/java.exe] Error 1

0
1 comment

That is by design when this JDK is used to build and run your project.

0

Please sign in to leave a comment.