![]() Sudo update-alternatives -install "/usr/bin/javac" "javac" "/usr/lib/jvm/folder_name/bin/javac" 1 Sudo update-alternatives -install "/usr/bin/java" "java" "/usr/lib/jvm/folder_name/bin/java" 1 Sudo mv path_to_jdk_folder /usr/lib/jvm/folder_name Don't forget replace path_to_jdk_folder and folder_name: sudo mkdir /usr/lib/jvm ![]() If it is saying update-alternatives: error: no alternatives for java run this set of commands. Run sudo update-alternatives -list java to check if you have configured java already. ![]() Path_to_jdk_folder - /home/c0rp/Downloads/jdk1.7.0 I'm assuming that path to this new extracted folder is path_to_jdk_folder and folder name is folder_name, you should manually change it before executing commands below. Check carefully this folder name, because we will use it the next step. The JDK package is extracted into jdk.xxx directory. I took out the instruction and changed it a little bit. Here is great manual about installing java. ![]() Oracle may ask you to sign up before download Choose tar.gz depending on your architecture, I highlighted two of them that fits Ubuntu: And you see something like screenshot below. If you unsure what to choose, choose Development Kit - it will cover all your needs Click DownloadĬhoose Java SE 7 on the next page and you will see web-page where you can choose specific Java version. Go to official java download page, scroll down to the bottom of the page until you see Previous Releases.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |