![]() ![]() etc/profileĬheck the Version of java version using command # java -version Run the Command to update the java to run #. # sudo update-alternatives -set "java" "/usr/lib/jvm/jdk1.7.0_51/bin/java"Įdit the profile file and Enter the java location # sudo vi /etc/profileĪdd the following entries to the bottom of your /etc/profile file: # JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51 PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME export PATH # sudo update-alternatives -set "javac" "/usr/lib/jvm/jdk1.7.0_51/bin/javac" # sudo update-alternatives -install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_51/bin/java" 3 ![]() Set path for java # sudo update-alternatives -install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_51/bin/javac" 3 ![]() Navigate to the location # cd /usr/lib/jvmĮxtract the Java om the location # sudo tar zxvf jdk-7u51-linux-圆4.tar.gzĭelete the tar file if we need are keep it for backup # sudo rm jdk-7u51-linux-圆4.tar.gz Move the download Java to the location # sudo mv jdk-7u51-linux-圆4.tar.gz /usr/lib/jvm In Ubuntu Default Repository Every packages are too old than what we need, better we can download it from official sites and install it, me too faced several issue for installing openjdk for setting up video management server's while that time i got some points from Google after a long search i got this good solution and i have documented, you can go to oracle javaĭownload the 32bit or 64bit Linux " compressed binary file" - it has a ".tar.gz" file extension and uncompress itĬreate a Directory JVM if not available in the location # sudo mkdir -p /usr/lib/jvm I got this : 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded Which is the repository to install openjdk 7. Here's the content of sources.list file : deb saucy restricted universe multiverseĭeb saucy-updates restricted universe multiverseĭeb saucy-security restricted universe multiverseĭeb saucy-proposed restricted universe multiverseĭeb saucy-backports restricted universe multiverse I got a message telling me that the package could not be found in database. When I try sudo apt-get install openjdk-7-jdk ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |