Jdk 6u45 linux x64 bin

avenda / install_java6u45.sh

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

#! /bin/sh
# install script for ubuntu
echo » Downloading JDK «
wget http://ghaffarian.net/downloads/Java/JDK/jdk-6u45-linux-x64.bin
echo » Change permissions «
chmod +x jdk-6u45-linux-x64.bin
./jdk-6u45-linux-x64.bin
mv jdk1.6.0_45/ java-6-oracle/
sudo mkdir /usr/lib/jvm/
sudo mv java-6-oracle/ /usr/lib/jvm/
echo » Create the appropriate symbolic links for Java. «
sudo update-alternatives —install » /usr/bin/java » » java » » /usr/lib/jvm/java-6-oracle/bin/java » 1
sudo update-alternatives —install » /usr/bin/javac » » javac » » /usr/lib/jvm/java-6-oracle/bin/javac » 1
sudo update-alternatives —install » /usr/bin/javaws » » javaws » » /usr/lib/jvm/java-6-oracle/bin/javaws » 1
sudo update-alternatives —config java
sudo update-alternatives —config javac
sudo update-alternatives —config javaws

Источник

Install Sun/Oracle Java JDK/JRE 6u45 on Fedora 19/18, CentOS/RHEL 6.4/5.9

Please note: This guide still working normally if you want install Sun/Oracle Java 6, but if you want Java 8 version, then check Install Oracle Java JDK/JRE 8 on Fedora, CentOS/RHEL or if you want Java 7 version, then check Howto Install Sun/Oracle Java JDK/JRE 7 on Fedora, CentOS/Red Hat (RHEL).

By default, Fedora 19/18/17/16/15/14/13/12 and CentOS/Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.9 Linux operating systems use the OpenJDK Java, which is a good choice for normal use and it works with almost all the Java programs normally. OpenJDK is also easy to install and maintain with YUM package management, but some cases, Sun/Oracle Java installation is necessary, for example, if some program have to compile with Sun/Oracle Java or a particular program does not work without Sun/Oracle Java.

This is guide, howto install Oracle Java JDK/JRE 6u45 on Fedora 19/18/17/16/15/14/13/12, CentOS/RHEL 6.4/6.3/6.2/6.1/6/5.9.

Install Sun/Oracle Java JDK/JRE 6u45 on Fedora 19/18/17/16/15/14/13/12 CentOS 6.4/6.3/6.2/6.1/6/5.9, Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.9⌗

1. Download Sun/Oracle Java JDK or JRE RPMs⌗

Download Sun/Oracle Java JDK or JRE from here (current version is JDK 6 Update 45) http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR.
Note: Select rpm.bin package (example jdk-6u45-linux-i586-rpm.bin, jre-6u45-linux-i586-rpm.bin, jdk-6u45-linux-x64-rpm.bin or jre-6u45-linux-x64-rpm.bin).

Читайте также:  Linux показать последние 100 строк файла

2. Change to root user.⌗

3a. Run Sun/Oracle Java JDK binary⌗

 chmod +x /path/to/file/jdk-6u45-linux-*-rpm.bin /path/to/binary/jdk-6u45-linux-*-rpm.bin  ## OR ##  sh /path/to/binary/jdk-6u45-linux-*-rpm.bin 

Note: Use full file name (without asterix) if you have both i586 and x64 versions downloaded.

3b. Run Sun/Oracle Java JRE binary⌗

 chmod +x /path/to/file/jre-6u45-linux-*-rpm.bin /path/to/binary/jre-6u45-linux-*-rpm.bin  ## OR ##  sh /path/to/binary/jre-6u45-linux-*-rpm.bin 

Note: Use full file name (without asterix) if you have both i586 and x64 versions downloaded.

4a. Install Sun/Oracle JDK java, javaws, libjavaplugin.so (for Firefox/Mozilla) and javac with alternatives –install command⌗

 ## java ## alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_45/jre/bin/java 20000 ## javaws ## alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_45/jre/bin/javaws 20000  ## Java Browser (Mozilla) Plugin 32-bit ## alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jdk1.6.0_45/jre/lib/i386/libnpjp2.so 20000  ## Java Browser (Mozilla) Plugin 64-bit ## alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.6.0_45/jre/lib/amd64/libnpjp2.so 20000  ## Install javac only if you installed JDK (Java Development Kit) package ## alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_45/bin/javac 20000 alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_45/bin/jar 20000 

4b. Install Sun/Oracle JRE java, javaws and libjavaplugin.so (for Firefox/Mozilla) with alternatives –install command⌗

 ## java ## alternatives --install /usr/bin/java java /usr/java/jre1.6.0_45/bin/java 20000  ## javaws ## alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_45/bin/javaws 20000  ## Java Browser (Mozilla) Plugin 32-bit ## alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jre1.6.0_45/lib/i386/libnpjp2.so 20000  ## Java Browser (Mozilla) Plugin 64-bit ## alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_45/lib/amd64/libnpjp2.so 20000 

5. Check current java, javac, javaws and libjavaplugin.so versions⌗

 java -version java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b04) Java HotSpot(TM) Server VM (build 20.6-b01, mixed mode)  javac -version javac 1.6.0_45  javaws Java(TM) Web Start 1.6.0_45 [. ] 

Java 6 Browser Plugin Running on Fedora 18 Firefox 17

Note: Check libjavaplugin.so with restarting Mozilla Firefox and writing about:plugins on address bar.

Fedora 18 Java 6 Console Output

Java 6 Console output on Fedora 18:

6. Swap between OpenJDK and Sun/Oracle JDK versions⌗

 alternatives --config java # or javac or javaws or libjavaplugin.so There are 4 programs which provide 'java'.   Selection Command -----------------------------------------------  1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java  2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java * 3 /usr/java/jdk1.6.0_18/jre/bin/java  + 4 /usr/java/jdk1.6.0_45/jre/bin/java  Enter to keep the current selection[+], or type selection number: 

Note: java with [+] is currently on use

Post-Installation Setup⌗

Add JAVA_HOME environment variable to /etc/profile file or $HOME/.bash_profile file

 ## export JAVA_HOME JDK ## export JAVA_HOME="/usr/java/jdk1.6.0_45"  ## export JAVA_HOME JRE ## export JAVA_HOME="/usr/java/jre1.6.0_45" 

See Also

  • Install Apache OpenOffice 4.1.2 on Fedora 24/23, CentOS/RHEL 7.2/6.8
  • VirtualBox 7.0.8 on Fedora 38/37/36, CentOS/RHEL 9/8/7
  • Install Eclipse Mars 4.5 on Fedora 24/23, CentOS/RHEL 7.2/6.8/5.11
  • Install MongoDB 2.4.4 on Fedora 18/17, CentOS/Red Hat (RHEL) 6.4/5.9
  • Install Memcached on Fedora 29/28, CentOS/RHEL 7.5/6.10
  • Install NetBeans IDE 6.9.1 on Fedora 14/13, CentOS 5.5, Red Hat (RHEL) 5.5/6
  • Install Adobe AIR 1.5 and 2 on Fedora 13, CentOS 5.5 and Red Hat (RHEL) 5.5
  • Install Google Chrome on Fedora 38/37, CentOS Stream 9/8, Red Hat (RHEL) 9/8, Rocky Linux 8.5
  • YUM Query Available Packages From Specific Repository on Fedora, CentOS, Red Hat
  • YUM History (list, info, summary, repeat, redo, undo, new)
  • VirtualBox Guest Additions on Fedora 38/37, CentOS/RHEL 9/8/7
  • Install Opera 72 on Fedora 33/32, CentOS/Red Hat (RHEL) 8/7
  • YUM Changelog
  • Install Adobe Reader on Fedora 34/33, CentOS/RHEL 8.3
  • Adobe Flash Player 32 on Fedora 32/31, CentOS/RHEL 8.0/7.7
Читайте также:  Посмотреть статические маршруты linux

Источник

Installing Java 6 on Ubuntu

As of August 2011 Java no longer comes part of the default installation. This is due to Oracle retiring the distributor license that allows operating system vendors from providing Java as a package along with their products. This means that Canonical have removed the Java JDK package from it’s partner repositories, thus making it unavailable for installation through this means. The only alternative it seems is to use OpenJDK, but often stability wins over features, and as such I needed a way to install the official Oracle Java JDK opposed to OpenJDK.

The process of install the Oracle Java JDK is quite simple; you only have to download the JDK and JRE from the Oracle website, install them as normal and then inform Ubuntu about the newly installed Java version.

Downloading Java

When Java is released it is posted on the main download page. If however there is a need to download an older release of Java, perhaps for building Android from source, then these can be found on the previous releases page.

When you have found the release of Java that you want then download both the JDK and JRE that are compatible with your system; either Linux x86 or Linux x64.

Installing Java

Typically Java would have been installed within a directory owned by the system. Therefore it only makes sense to do the same thing. Through the terminal create a new directory that Java will be installed in.

The p flag makes sure that each level of the directory hierarchy is present and if not creates it too. Then move the JDK and JRE that have been downloaded in to this directory and then move to this location.

 $ sudo mv "path to jdk" /usr/lib/jvm $ sudo mv "path to jre" /usr/lib/jvm $ cd /usr/lib/jvm

Unix will not let any file be executed unless it has permission to do so. Therefore to change the permissions of the two installer the chmod command needs to be run with the new permission as arguments.

 $ sudo chmod u+x jdk-6u45-linux-x64.bin $ sudo chmod u+x jre-6u45-linux-x64.bin

Extract each of the installers which will essentially install the software, putting relevant files in place.

 $ sudo ./jdk-6u45-linux-x64.bin $ sudo ./jre-6u45-linux-x64.bin

Informing Ubuntu about Java

Ubuntu needs to know about the new installation of Java in order for it to be used. update-alternatives is the command to do this. This command maintains symbolic links determining default commands. As such this will maintain links to the java and javac commands which were previously installed. Using update-alternatives allows for multiple installations of a system or software package to exist and allows for these to be flipped between pretty easily by setting which alternative system to use.

 $ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_45/bin/java" 1 $ sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_45/bin/javac" 1

To tell Ubuntu which Java installation is the default is pretty easy. Since there is currently only one installation on the system then just tell Ubuntu to use that one.

 $ sudo update-alternatives --set java /usr/lib/jvm/jre1.6.0_45/bin/java $ sudo update-alternatives --set javac /usr/lib/jvm/jdk1.6.0_45/bin/javac

Update the System Path

Now to actually find Java when it is typed into the terminal or invoked through another application the system wide path needs to be altered to include the directory in which Java is installed. Open up /etc/profile with a text editor (I prefer to use nano ) and add to the bottom the following:

 JAVA_HOME=/usr/lib/jvm/jdk1.6.0_45 PATH=$PATH:$HOME/bin:$JAVA_HOME/bin export JAVA_HOME export PATH

Save and close the text editor. A reboot is required to accommodate for these changes. After the reboot Java should be available for use. To check for this try find the versions of the Java application.

 $ java -version $ javac -version

These should return the version numbers of the Java packages that were downloaded and installed. If the numbers differ then something went wrong.

Читайте также:  Linux find word in all files
Written by

Tomas Basham

Software and Infrastructure Engineer.

Источник

Atteya

[img]

  • Customer Helpdesk
  • User manual
  • Demo online
  • ApplStream application software for
  • Oracle E-Business Suite 12
  • Oracle E-Business Suite 11
  • SAP
  • BaaN
  • Reporing Web Framework
  • SQL Intelligent

[img]

  • Downloads License to use
  • [img]

[img]

  • Become a Partner
  • Contact information
  • [img]

[img]

  • Sales Resources
  • Licensing and Pricing
  • Sales Kits
  • Marketing Kits
  • Success Stories
  • [img]

Up

Java — JDK

obr-loga

All Rights Reserved | Copyright © 2013 | ATTEYA Group

Источник

Оцените статью
Adblock
detector