From 76aed6ef732de38d82245b3d674f70bab30221e5 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Fri, 3 Jul 2015 22:31:49 -0400 Subject: Fuck it, serve the files directly. --- .html/java/install/_list.html | 96 +++++++++++++++++++++++++ .html/java/install/centos.html | 136 +++++++++++++++++++++++++++++++++++ .html/java/install/index.html | 102 ++++++++++++++++++++++++++ .html/java/install/ubuntu.html | 158 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 492 insertions(+) create mode 100644 .html/java/install/_list.html create mode 100644 .html/java/install/centos.html create mode 100644 .html/java/install/index.html create mode 100644 .html/java/install/ubuntu.html (limited to '.html/java/install') diff --git a/.html/java/install/_list.html b/.html/java/install/_list.html new file mode 100644 index 0000000..4af64c6 --- /dev/null +++ b/.html/java/install/_list.html @@ -0,0 +1,96 @@ + + + + + The Codex » + ls /java/install + + + + + + + + +
+ + + + + +
+

ls /java/install

+ + + + + + + + +
+ + + + + + + + +
+ + \ No newline at end of file diff --git a/.html/java/install/centos.html b/.html/java/install/centos.html new file mode 100644 index 0000000..9bbf3f4 --- /dev/null +++ b/.html/java/install/centos.html @@ -0,0 +1,136 @@ + + + + + The Codex » + Installing Java on CentOS + + + + + + + + +
+ + + + + +
+

Installing Java on CentOS

+

Verified as of CentOS 5.8, Java 6. CentOS 6 users: fucking switch to Debian +already. Is something wrong with you? Do you like being abused by your +vendors?

+

From Package Management (Yum)

+

OpenJDK is available via EPEL, from +the Fedora project. Install EPEL before proceeding.

+

You didn't install EPEL. Go install EPEL. The directions are in the EPEL +FAQ.

+

Now install the JDK:

+
sudo yum install java-1.6.0-openjdk-devel
+
+

Or just the runtime:

+
sudo yum install java-1.6.0-openjdk
+
+

The RPMs place the appropriate binaries in /usr/bin.

+

Applications that can't autodetect the JDK may need JAVA_HOME set to +/usr/lib/jvm/java-openjdk.

+

By Hand

+

The Java SE Development Kit +7 +tarballs can be installed by hand. Download the “Linux x64” .tar.gz version, +then unpack it in /opt:

+
cd /opt
+tar xzf ~/jdk-7u45-linux-x64.tar.gz
+
+

This will create a directory named /opt/jdk1.7.0_45 (actual version number +may vary) containing a ready-to-use Java dev kit.

+

You will need to add the JDK's bin directory to PATH if you want commands +like javac and java to work without fully-qualifying the directory:

+
cat > /etc/profile.d/oracle_jdk <<'ORACLE_JDK'
+PATH="${PATH}:/opt/jdk1.7.0_45/bin"
+export PATH
+ORACLE_JDK
+
+

(This will not affect non-interactive use; setting PATH for non-interactive +programs like build servers is beyond the scope of this document. Learn to use +your OS.)

+

Installation this way does not interact with the alternatives system (but +you can set that up by hand if you need to).

+

For tools that cannot autodetect the JDK via PATH, you may need to set +JAVA_HOME to /opt/jdk1.7.0_45.

+
+ + + +
+
+ + +comments powered by Disqus +
+ + + + + +
+ + \ No newline at end of file diff --git a/.html/java/install/index.html b/.html/java/install/index.html new file mode 100644 index 0000000..d167e58 --- /dev/null +++ b/.html/java/install/index.html @@ -0,0 +1,102 @@ + + + + + The Codex » + Installing Java … + + + + + + + + +
+ + + + + +
+

Installing Java …

+

This document provided as a community service to +##java. Provided as-is; pull requests +welcome.

+
    +
  1. +

    … on Ubuntu (may also be applicable to Debian; needs verification + from a Debian user)

    +
  2. +
  3. +

    … on CentOS (probably also applicable to RHEL; needs verification + from a RHEL user)

    +
  4. +
+
+ + + +
+
+ + +comments powered by Disqus +
+ + + + + +
+ + \ No newline at end of file diff --git a/.html/java/install/ubuntu.html b/.html/java/install/ubuntu.html new file mode 100644 index 0000000..0d81292 --- /dev/null +++ b/.html/java/install/ubuntu.html @@ -0,0 +1,158 @@ + + + + + The Codex » + Installing Java on Ubuntu + + + + + + + + +
+ + + + + +
+

Installing Java on Ubuntu

+

Accurate as of: Java 7, Ubuntu 12.04. The instructions below assume an amd64 +(64-bit) installation. If you're still using a 32-bit OS, work out the +differences yourself.

+

Via Package Management (Apt)

+

OpenJDK 7 is available via apt by default.

+

To install the JDK:

+
sudo aptitude update
+sudo aptitude install openjdk-7-jdk
+
+

To install the JRE only (without the JDK):

+
sudo aptitude update
+sudo aptitude install openjdk-7-jre
+
+

To install the JRE without GUI support (appropriate for headless servers):

+
sudo aptitude update
+sudo aptitude install openjdk-7-jre-headless
+
+

(You can also use apt-get instead of aptitude.)

+

These packages interact with the alternatives +system, +and have a dedicated alternatives manager +script. +The alternatives system affects /usr/bin/java, /usr/bin/javac, and +browser plugins for applets and Java Web Start applications for browsers +installed via package management. It also affects the symlinks under +/etc/alternatives related to Java.

+

To list Java versions available, with at least one Java version installed via +Apt:

+
update-java-alternatives --list
+
+

To switch to java-1.7.0-openjdk-amd64 for all Java invocations:

+
update-java-alternatives --set java-1.7.0-openjdk-amd64
+
+

The value should be taken from the first column of the --list output.

+

Tool support

+

Most modern Java tools will pick up the installed JDK via $PATH and do not +need the JAVA_HOME environment variable set explicitly. For applications old +enough not to be able to detect the JDK, you can set JAVA_HOME to +/usr/lib/jvm/java-1.7.0-openjdk-amd64.

+

By Hand

+

The Java SE Development Kit +7 +tarballs can be installed by hand. Download the “Linux x64” .tar.gz version, +then unpack it in /opt:

+
cd /opt
+tar xzf ~/jdk-7u45-linux-x64.tar.gz
+
+

This will create a directory named /opt/jdk1.7.0_45 (actual version number +may vary) containing a ready-to-use Java dev kit.

+

You will need to add the JDK's bin directory to PATH if you want commands +like javac and java to work without fully-qualifying the directory:

+
cat > /etc/profile.d/oracle_jdk <<'ORACLE_JDK'
+PATH="${PATH}:/opt/jdk1.7.0_45/bin"
+export PATH
+ORACLE_JDK
+
+

(This will not affect non-interactive use; setting PATH for non-interactive +programs like build servers is beyond the scope of this document. Learn to use +your OS.)

+

Installation this way does not interact with the alternatives system (but +you can set that up by hand if you need to).

+

For tools that cannot autodetect the JDK via PATH, you may need to set +JAVA_HOME to /opt/jdk1.7.0_45.

+
+ + + +
+
+ + +comments powered by Disqus +
+ + + + + +
+ + \ No newline at end of file -- cgit v1.2.3