Avatar ·

Error "Failed to load the JNI shared Library (JDK)" when launching Eclipse

Hello everyone! I'm new to Java, installed the latest JDK version, downloaded Eclipse IDE for Java Developers. When I try to launch Eclipse, I get this error: "Failed to load the JNI shared Library (C:\\Program Files\\Java\\jdk-11.0.2\\bin\\client\\jvm.dll)". \n\nI have Windows 10, 64-bit system. JDK is also 64-bit, I checked via java -version. Eclipse downloaded from the official website, version 2020-06. \n\nHere's what I tried:\n1. Reinstalled JDK and Eclipse several times.\n2. Set JAVA_HOME variable = C:\\Program Files\\Java\\jdk-11.0.2.\n3. Added %JAVA_HOME%\\bin to the system Path variable.\n4. Tried running Eclipse as administrator.\n\nStill the same error. Online sources say the problem is architecture mismatch (x86 vs x64), but everything is 64-bit. What am I doing wrong?