'Netbeans 8.2 installing native library error

On my Windows 10 (x64) Laptop, I installed JDK8.151 (x64) and added the jre bin and jdk bin paths to the system variables under PATH in enviroment variables. However when I installed the Netbeans 8.2 (x64) (JavaSE) version from Netbeans' website and ran it, an error appeared: Cannot load native library from path:native/jnilib/windows/windows-x64.dll



Solution 1:[1]

You can run [no need to be as admin] cmd.

C:\Users\pc>echo %JAVA_HOME%

if you don't get such a clause:

C:\Program Files\Java\jdk1.8.0_151\bin

Go to your environment variables and for both user and system variables

set JAVA_HOME -> C:\Program Files\Java\jdk1.8.0_151\bin

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1