<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Jdk on Evan Hoffman</title><link>https://evan.wtf/tags/jdk/</link><description>Recent content in Jdk on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Wed, 16 Nov 2011 11:52:55 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/jdk/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing Sun (Oracle) JDK 1.5 on an EC2 instance</title><link>https://evan.wtf/2011/11/16/installing-sun-oracle-jdk-1-5-on-an-ec2-instance/</link><pubDate>Wed, 16 Nov 2011 11:52:55 +0000</pubDate><guid>https://evan.wtf/2011/11/16/installing-sun-oracle-jdk-1-5-on-an-ec2-instance/</guid><description>&lt;p&gt;I&amp;rsquo;m currently working on moving a Tomcat-based application into EC2. The code was written for Java 5.0. While Java 6 would probably work, I&amp;rsquo;d like to keep everything as &amp;ldquo;same&amp;rdquo; as possible, since EC2 presents its own challenges. I spun up a couple of t1.micro instances and copied everything over, including the Java 5 JDK, &lt;a href="http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html#jdk-1.5.0_22-oth-JPR"&gt;jdk-1_5_0_22-linux-amd64.rpm&lt;/a&gt;. Installing from RPM was easy, but the EC2 instance defaults to using OpenJDK 1.6:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;[root@ec2 ~]# java -version&#10;java version &amp;#34;1.6.0_20&amp;#34;&#10;OpenJDK Runtime Environment (IcedTea6 1.9.10) (amazon-52.1.9.10.40.amzn1-x86_64)&#10;OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;There were a couple of things I had to do to get the system to accept the Sun JDK as its &amp;ldquo;real&amp;rdquo; java.&lt;/p&gt;</description></item><item><title>How to install the 64-bit Sun Java plugin on 64-bit firefox on 64-bit Fedora Core 11 Linux (which happens to use 64 bits)</title><link>https://evan.wtf/2009/10/21/how-to-install-the-64-bit-sun-java-plugin-on-64-bit-firefox-on-64-bit-fedora-which-happens-to-use-64-bits/</link><pubDate>Wed, 21 Oct 2009 17:45:09 +0000</pubDate><guid>https://evan.wtf/2009/10/21/how-to-install-the-64-bit-sun-java-plugin-on-64-bit-firefox-on-64-bit-fedora-which-happens-to-use-64-bits/</guid><description>&lt;p&gt;I&amp;rsquo;m giddy! I found &lt;a href="http://plugindoc.mozdev.org/linux-amd64.html"&gt;this post&lt;/a&gt; on mozdev.org which was magical.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;[evan@ehoffman ~]$ java -version&#10;java version &amp;#34;1.6.0_17&amp;#34;&#10;Java(TM) SE Runtime Environment (build 1.6.0_17-b04)&#10;Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)&#10;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&#10;&lt;blockquote&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;[root@ehoffman plugins]# uname -a&#10;Linux ehoffman 2.6.30.8-64.fc11.x86_64 #1 SMP Fri Sep 25 04:43:32 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux&#10;[root@ehoffman plugins]# pwd&#10;/usr/lib64/mozilla/plugins&#10;[root@ehoffman plugins]# ln -s /usr/java/jdk1.6.0_16/jre/lib/amd64/libnpjp2.so&#10;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;&#10;&lt;p&gt;The main thing I was missing was that the plugin isn&amp;rsquo;t libpluginjava_oji.so, or whatever I thought it was, but libnpjp2.so. Once I created the symlink into /usr/lib64/mozilla/plugins it worked (as verified on &lt;a href="http://www.java.com/en/download/help/testvm.xml"&gt;http://www.java.com/en/download/help/testvm.xml&lt;/a&gt; and &lt;a href="http://www.java.com/en/download/installed.jsp"&gt;http://www.java.com/en/download/installed.jsp&lt;/a&gt;).&lt;/p&gt;</description></item></channel></rss>