Tuesday, January 7, 2014

Arch Linux Oracle (Sun) Java installation

1. Remove the open source Java
http://allencch.wordpress.com/2012/06/29/replacing-openjdk-with-jre-6-in-arch-linux/

[~]$ sudo pacman -Rndd jdk7-openjdk jre7-openjdk jre7-openjdk-headless icedtea-web-java7 java-rhino
error: target not found: java-rhino
[~]$ sudo pacman -Rndd jdk7-openjdk jre7-openjdk jre7-openjdk-headless icedtea-web-java7

Packages (4): icedtea-web-java7-1.4-2  jdk7-openjdk-7.u40_2.4.1-3  jre7-openjdk-7.u40_2.4.1-3  jre7-openjdk-headless-7.u40_2.4.1-3

Total Removed Size:   97.73 MiB

:: Do you want to remove these packages? [Y/n]
(1/4) removing icedtea-web-java7                                                                            [################################################################] 100%
(2/4) removing jdk7-openjdk                                                                                 [################################################################] 100%
(3/4) removing jre7-openjdk                                                                                 [################################################################] 100%
(4/4) removing jre7-openjdk-headless                                                                        [################################################################] 100%
[~]$


2. Install Sun Java
http://tutorialforlinux.com/2012/11/15/howtoinstall-oraclejdk7x64-archlinux2012gnome64bit/

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html