DLL Error: could not find Java SE Runtime Environment
As title.
my situation is more complicated, and this is just a problem I had when reconfiguring Java environment variables.
My computer was originally configured with the latest JDK13, and the environment variables were set according to JDK13. Later JDK10 and JDK1.8 were downloaded for course reasons
Writing Java using Intellij Idea all the time has not been a problem. But a few days ago on a whim, I wrote a small program to run on the command line, and something went wrong
1. Javac conflicts with Java commands
It’s an error saying that the.class file I compiled with Javac is different from the version of the Java command that followed me. I checked the following with the -version command. My Javac is JDK13, and Java is a mix of JDK10 and 13.
because currently JDK10 is useless, it is removed, resulting in javac and Java command all die.
considering recent course requirements, we decided to simply reconfigure the JDK1.8 environment variable
2. Javac-version is not working properly
After resetting path and so on in accordance with the same configuration method, Java command reported the error as shown in the question, and JavAC was also not good. I searched for a circle on the Internet and finally had no choice but to restart the computer. The result javAC was actually normal, but Java was still abnormal
3. Java Error: could not find Java Runtime Environment
First we open the environment variable (just search “edit environment variable” by Corna on Win10)
We noticed that the path variable has an extra C:\Program Files(x86)\Common Files\Oracle… When executing Java commands on the command line, the default is to execute this Java first instead of adding our own %Java_Home%\bin, etc., so we need to put this added variable in front of the Oracle variable.
The problem is that I always end up with double quotes in front of the variable path, and the command line test still doesn’t work.
Continue searching and find someone said to change the java.exe in the System32 path, just rename it, but there is no Java.exe in my System32 path
Exe
as shown in the figure, j.xe
command line test successful!
After the
Read More:
- Could not find appears when JDK is configured java.dll Could not find Java se runtime environment problems
- Eclipse can’t open an error: Error:could not find java SE Runtime Environment/Error: could not find java.dll
- The Java command could not find or load the main class
- Java:Error:Open registry key software \ JavaSoft \ Java Runtime Environment Problems
- Eclipse startup error: a Java runtime environment (JRE) or Java Development Kit (JDK) must be available
- CodeBlocks environment error the compiler could not find a solution to the problem
- Error: opening registry key ‘Software\JavaSoft\Java Runtime Environment’
- Can not start, can not find QT pligins “windows” problem after installing QT vs environment 2021-06-13
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- Unable to find VBScript script engine or error 2738, could not access VBScript runtime
- Oserror: [winerror 126] the specified module was not found. Pytoch couldn’t find caffe2_ detectron_ ops.dll
- How to solve “import cv2 failed ImportError: DLL load fail: Cannot find the specified module” in Anaconda environment
- Install Java runtime JRE in Ubuntu 16.04
- Problem in configuring Maven error: Java_ HOME not found in your environment.
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- could not open `C:\Program Files\Java\jre1.8.0_191\lib\amd64\jvm.cfg’
- Glut could not find glut32.dll
- Solution to the problem that OpenGL can’t find glew32.dll in vs2019
- CMD input Java error could not create the Java virtual machine
- Python error: importerror: DLL load failed: unable to find the specified module solution