Home >Java >Javagetting Started >javaw.exe path error causes eclipse to fail to start
Error as shown:
Cause:
javaw.exe or path was not found in the specified path mistake.
Because Eclipse needs javaw.exe to start when it starts. After first searching for each directory in the path, if it is not found, it will check and search in the installation directory of eclipse. That is: first check to see if it is installed outside; if not, check to see if you have brought it yourself. If none are found, the above error will be reported.
Recommended related videos: java learning video
Solution:
1. We can set path to let Eclipse pass the path in the path variable Just find javaw.exe.
For example, the path of my javaw.exe is D:\jdk1.8.0_25\bin, then you only need to configure the path in the environment variable to D:\jdk1.8.0_25\bin.
2. The second solution can be solved by modifying the eclipse.ini file.
Open the eclipse.ini file under the Eclipse installation file, find the -vm line (some eclipse.ini files do not have it, if not, add it directly), and change the next line of -vm to javaw. The path where the exe is located can be used. If the path configuration is wrong, modify it again as shown in the figure:
If you want to learn more related articles, you can visit: Introduction to Java Programming
The above is the detailed content of javaw.exe path error causes eclipse to fail to start. For more information, please follow other related articles on the PHP Chinese website!