![]() It fails as we don't copy all bits from JRE bin folder of installed java to "C:\ProgramData\Oracle\Java\javapath" folder. Logic of GetJREPath() tries to find sibling java.dll. "C:\ProgramData\Oracle\Java\javapath\java.exe". ![]() GetApplicationHome() calls GetModuleFileName() WIN API. Launcher calls GetJREPath() function from jdk/src/java.base/windows/native/libjli/java_md.c to get path to java.dll which is the JVM itself. So when user types "java.exe -version", the symlink from C:\ProgramData\Oracle\Java\javapath folder is executed. ![]() This folder is added to system wide PATH variable. Installer creates symlinks for java.exe and some other Java binaries in C:\ProgramData\Oracle\Java\javapath folder. Here is the summary of the proposed / implemented fix in OpenJDK: Refer below links from Oracle for details: Please make sure that there is no ambigous environment variable in the path. If above steps fail to resolve the issues then this is most like an issue with environment variable path setup pointing to the correct version. For clean install please refer Java Installation on Windows You should be able to use Java 8 and Java 9 on the same client system without any issues. Please use the latest version of OpenJDK Java 9. If you are using OpenJDK, this issue is a bug in OpenJDK 9 and is fixed in the latest releases. Steps to fix Could not find Java.dll error if you are using OpenJDK To verify whether your installation was done successfully. C:\tools\jdk7)Īnd add JAVA_HOME variable to your PATH system variable Reinstall JDK and set system variable JAVA_HOME on your JDK. ![]() If you are using Oracle JDK, Please follow the below steps: Steps to fix Could not find Java.dll error if you are using Oracle JDK. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |