![]() ![]() This is likely used by the alternatives mechanism to determine which links to create. ![]() You should have some jinfo files you can use to see what the contents should look like. Then a list of the programs in a three field format: entry type (jre/jkd/plugin) program name and path. There is a descriptive header followed by a blank line. jdk1.6.0_23.jinfo file should be a list of the supplied programs and their paths. I would like to also mention that OpenJRE/JDK has come a long way from 2 or 3 years ago when it had many issues that were solved by changing to Sun Java. It will show you the default version you are using at that moment. After installing the Java version you wish to use and setting the version to the default with the update-java-alternatives command, you can check which version you are using by typing the following: java -version So you can install any of them by simply changing the number in the installation line, for example: sudo apt-get install oracle-java8-installer Note that the PPA includes versions 6, 7 and 8. If you want the installation to be automatic type the following: sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selectionsĪfter that simply do the following to set the default environment variables: sudo apt-get install oracle-java7-set-default To change to it simply do the following in case you have other java alternatives: sudo update-java-alternatives -s java-7-oracle That should install the Sun Java version on your system. Sudo apt-get install oracle-java7-installer Open the terminal and type the following: sudo add-apt-repository ppa:webupd8team/java Installing Sun Java on Newer versions of Ubuntu (10.04 an above) For example if I wanted to install the openjre version 7 I would: sudo apt-get install openjdk-7-jre default-jre default-jre-headless If you want to use the java 7 version, simply change the number 6 mentioned above for 7. If you would want to use Sun then you would do this (After installation of the sun packages): sudo update-java-alternatives -s java-6-sun The name of the java alternative is the one in the left so for example openjdk would appear like this: java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdkĪnd you would set the system to openjdk like this: sudo update-java-alternatives -s java-6-openjdk Sudo update-java-alternatives -l - This will show you the list of java engines you can use. If you did not remove it then you have both of them. Just to make sure)Īfter that, if you removed openjdk then you would only have sun java. Sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-plugin sun-java6-fonts Here are the steps in the terminal which apply to versions below 10.04, since starting from 10.04 sun java has been dropped and replaced by openjre: sudo apt-get remove openjdk-6-jre default-jre default-jre-headless There was a weird problem when using openjre and the problem was solved by using the sun jre version. ![]() I had the same problem once about three years ago with Ubuntu 8.04 I think. Installing Sun Java on Older Versions of Ubuntu (9.10 and below) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |