Install JAVA on Ubuntu 18.04 LTS manually
How to install JAVA on Ubuntu 18.04 LTS manually. Prerequisites:- Make sure the non root user is under sudo group. Install the tar.gz file of java 8 or any version you want (I did it with java1.8.0_221) Steps to Perform: Step1: unzip the java….tar.gz file accordingly to any folder Step2: Check if /usr/lib/ has a java or jvm or any other repository of jdk home if not present then create one. $ sudo mkdir /usr/lib/java (java is home of jdk dir) Step3: move the unzip jdk to the following newly created ‘java’ directory. $ sudo mv /sourcefile /usr/lib/java Change sourcefile with the unzip jdk path and paste it to /usr/lib/java Step4: check if java or javac executable file is created under /usr/bin/ If not present then run the following commad if present then something is wrong either is not completely installed earlier For JAVA: $ sudo update-alternatives --install "/usr/bin/java" "java" ...