How to Install Java on Linux Lite - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Tutorials (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=21) +--- Thread: How to Install Java on Linux Lite (/showthread.php?tid=2510) |
How to Install Java on Linux Lite - Valtam - 12-25-2015 Install Java on Linux Lite - this tutorial will show you how to install Oracle's Java on Linux Lite. You must uninstall the openjdk java on Linux Lite first to have your system recognize and use Oracle's Java. Go into Synaptic package manager and remove packages labeled as 'openjdk' there will be only 2. An example of why people may want to use Oracle's Java over OpenJdk's Java is that they find Minecraft will only run under Oracle's or runs better under Oracle's Java. NB: Best practice is to use only one type of Java on your system at a time. Yes, you can use symlinks, but this OS is for new folk to linux so we're keeping this very simple. 1. Download Java: 32bit or 64bit depending on your system - https://www.java.com/en/download/linux_manual.jsp 2. Open a terminal where the download is and enter: Code: sudo su Code: mkdir /usr/lib/jvm/oracle_jdk8 Code: tar -zxvf jre-* -C /usr/lib/jvm/oracle_jdk8 --strip-components=1 Code: touch /etc/profile.d/oraclejdk.sh Code: leafpad /etc/profile.d/oraclejdk.sh copy and paste the following into the file, then save and close it: Code: export J2SDKDIR=/usr/lib/jvm/oracle_jdk8 In the same terminal type, exit. Now enter: Code: source /etc/profile.d/oraclejdk.sh Do: Code: java -version in a terminal to confirm you have Oracle's Java installed. Code: jerry@jerry-VirtualBox:~$ java -version Re: How to Install Java on Linux Lite - LinuxNoob - 01-28-2016 I would like to add this webpage that I found that could make it a bit easier to install the Java JRE https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get I appreciate it when installers exist to make my LL experience more FUNNER! Code: sudo add-apt-repository ppa:webupd8team/java It starts an installer. The page also has other versions Re: How to Install Java on Linux Lite - liamjake05 - 02-29-2016 how do I uninstall java Re: How to Install Java on Linux Lite - liamjake05 - 03-24-2016 How can I uninstall Java as I do not need it anymore? Re: How to Install Java on Linux Lite - avj - 03-25-2016 If you know which packages were installed, they can be removed from: Install/Remove Software. Make sure to only remove what you installed as some java packages may have been installed by default, and removing them may cause system problems. Re: How to Install Java on Linux Lite - liamjake05 - 03-30-2016 Not OpenJDK but Oracle's Re: How to Install Java on Linux Lite - Wirezfree - 03-30-2016 Does this help..?? Via the FAQ's on the download page: How do I uninstall Java for Linux ? https://www.java.com/en/download/help/linux_uninstall.xml Re: How to Install Java on Linux Lite - liamjake05 - 03-30-2016 Well I used this guide and it seemed confusing. Sent from my K00L using Tapatalk Re: How to Install Java on Linux Lite - Valtam - 03-30-2016 We need to know how you installed it in the first place. Re: How to Install Java on Linux Lite - liamjake05 - 03-31-2016 Go up to the first post exactly like it. Same commands and everything. Sent from my K00L using Tapatalk |