Thursday, 18 August 2016

"Eclipse Failed To Load The JNI Shared Library" Error

Hello everybody,

My beloved Eclipse has been giving me this error since yesterday after I installed a software. While installing the new software, I must have changed some setting without noticing. So today I was determined to solve this problem because I want to keep working on my new project. After some searches on Google, I found the solution.


First I check the version of Java on my computer like I did here. It gave me a wrong version!! So I suspected that it might be a problem with the environment variables. To see the environment variables, follow this path:"Start-> Control Panel-> System->Advanced system settings". Checking my environment variables, I saw that they were even not there anymore! So I had to add JAVA_HOME and JRE_HOME variables again. Then alter "path" variable which is located under system variables. You can see how I did it in below photos.

JAVA_HOME and JRE_HOME
"Path" Variable
Finishing configurations I started Eclipse again and it worked. But if it didn't work I was planning to download the latest versions of JRE and JDK again. So if you haven't solved yours with my first option, you can try this.

Hope to see you in another blog post!

Selen

No comments:

Post a Comment