Ubuntu which java
The painless way for installing Java is to use the version that comes with Ubuntu repositories. To install the JDK , run the following command. After installation, verify the JDK installation by checking the version as shown. Add the following line at the end of the file, make sure to replace the location of your Java installation path. TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web.
Millions of people visit TecMint! Note: If you are running Mac or Windows use this tutorial to check the version of Java. The output should display the version of the Java package installed on your system.
In the example below, OpenJDK version 11 is installed. Note: If the output indicates there is no such package on the system, you can install it with the help of one of our guides — How to install Java on Ubuntu or How to Install Java on CentOS.
Note: This option may not work on CentOS systems. If you have issues finding the path of the Java directory with the command above, use the alternative outlined below. Alternatively, you can use the whereis command and follow the symbolic links to find the Java path.
You can also prompt the system to list installed packages and search for Java, with its version number. Ubuntu and Canonical are registered trademarks of Canonical Ltd. Tutorials Install the Java Runtime Environment. Java Help Center Was this tutorial useful? Where would you like to share this to?
Twitter Reddit Hacker News Facebook. Share link Tutorial share link. Sign Up. DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. Prasyarat Untuk mengikuti tutorial ini, Anda akan membutuhkan: Satu server Ubuntu Untuk menginstal versi ini, perbarui indeks paket terlebih dahulu: sudo apt update Selanjutnya, periksa apakah Java sudah terinstal: java -version Jika Java belum terinstal, Anda akan melihat keluaran berikut ini: Output.
Anda menilai terjemahan ini membantu. Anda menandai terjemahan ini. Bagaimana kualitas terjemahannya? About the authors. Brian Hogan. Still looking for an answer?
0コメント