简体   繁体   中英

Issue with "org.eclipse.jdt.launching.IVMInstall.getLibraryLocations()"

When I try to run my Java program in Eclipse I get the following error:

"An internal error occurred during: "Launching ConvertExcelToJSON". Cannot invoke "org.eclipse.jdt.launching.IVMInstall.getLibraryLocations()" because "install" is null"

I have never seen the error before, the program has run with no problem before. Yesterday I got updates to my work machine and maybe that caused something to give me this error.

Anyone seen this before and perhaps have a solution to it?

In my case, there was a difference in project's execution environment and installed JDK.

I changed it from Right Click on Project -> Build Path -> Configure Build Path -> Libraries -> JRE System Libraries -> Select same version as installed JDK and it worked.

It happened after I changed my Installed JREs configuration. Go to Run > Run Configurations then go to JRE tab and update the JRE according to new configuration. 转到运行>运行配置。转到 JRE 选项卡。并修复 JRE 设置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM