The most popular JAVA IDEs are NetBeans, Eclipse, Android Studio and IntelliJ IDEA. Researching over internet, I was quite impressed with the features provided by RedGate’s IntelliJ IDEA – hence I downloaded it and wanted to quickly spin up a Hello World application. However while building the project, I bumped into an unexpected error -Įrror:Cannot run program “/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/bin/java” (in directory “/Users/samir/Library/Caches/IntelliJIdea2017.3/compile-server”): error=2, No such file or directoryīeing new to the IDE, it took me some time to figure out the root cause of this error. ProcessNotCreatedException: Cannot run program “/Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home/bin/java” (in directory “/Users/samir/Library/Caches/IntelliJIdea2017.3/compile-server”): error=2, No such file or directory While working in IntelliJ, you can access the IDE log files to view additional details on the error - Help Menu -> Show Log in Finder Even though the fix was simple, I wanted to document this so that others bumping into the same error can quickly proceed, without getting stuck. Looking at my Project Settings, I figured out that I need to specify the SDK I want to use in my project. Next I checked the SDK version installed in my new laptop and figured out there was not any! I went ahead and installed the JDK 9 on my Mac from here -Īfter I installed the SDK, I navigated to the Project Settings and selected the new JDK configuration from the installation location in my local.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |