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

Viewed 5190

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?

2 Answers

It happened after I changed my Installed JREs configuration. Eclipse's default bundled JRE 16 was selected, but my project was set to Java 8 everywhere in project configurations. Following fixed my case: Go to Run > Run Configurations then go to JRE tab and update the project JRE according to new configuration. So that JRE version in eclipse matches the project requirements. Go to Run>Run Configurations. Go to JRE tab. And fix the JRE setting

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.

Related