Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to solve the problem of no java virtual machine was found after searching the following locations under Ubuntu16.04

Shulou Source: shulou.com Published: 2022-06-01 23:21:42 11月16日 Update

Editor to share with you how to solve no java virtual machine was found after searching the following locations under Ubuntu16.04: the problem, I believe that most people do not understand, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!

The method of solving "no java virtual machine was found after searching the following locations:" under Ubuntu16.04

Install JDK (Oracle official website) first, and then check whether the installation is successful.

As shown in the figure:

After downloading the mars version of Eclipse, it is found that it cannot be opened properly. The error message is shown below:

A Java Runtime Environment (JRE) or Java Development Kit (JDK)

Must be available in order to run Eclipse. No Java virtual machine

Was found after searching the following locations:

/ home/leblancs/Software/eclipse/jre/bin/java

Java in your current PATH

The analysis error learned that Eclipse did not find jre, so it reported an error.

Solution:

Cd to the installation directory of eclipse, establish a soft connection, and connect to jre

Ln-s / this is the jdk installation directory / jre jre.

As shown in the figure:

Start eclipse successfully

The above is all the contents of the article "how to solve no java virtual machine was found after searching the following locations: problems under Ubuntu16.04". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Articles questions content methods directories errors such as pictures success not so much information most more knowledge industry information information channels channels analysis reference learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MySQL Huawei Redmi OPPO Reno