The following information may have errors; It is not permissible to be read by anyone who has ever met a lawyer. Use should also be confined to Engineers with more than 370 course hours of electronic engineering and should only be used for theoretical studies. All content entered becomes and is (C)2007 Transtronics, Inc. the property of Transtronics, Inc. Rest assured that your contributions won't be sold and will be publicly available.

Java install

From Transwiki

Jump to: navigation, search

Contents

[edit] Java on Debian

  • On any of these methods you may have to quit all Mozilla apps and then delete the ~/.mozilla/pluginreg.dat file.
  • You may also need to run
# update-alternatives --all

[edit] Automatic method

Sun made java available so the install is now quite easy if you are not running AMD64. (looks much the same for java6)

You need to add non-free repository to your /etc/apt/sources.list file - something like:

deb http://ftp.debian.org/debian/ etch main non-free contrib

If you want to install Java plugin for the browser:

wajig install sun-java5-plugin

If you want to install JRE:

#wajig install sun-java5-jre

If you want to install JDK:

wajig install sun-java5-jdk 

If you want to install Java documentation, install this package and follow the instructions:

wajig install sun-java5-doc

If you wan to install some fonts:

wajig install sun-java5-fonts

If you want to install some demos for the JDK:

wajig install sun-java5-demo

After you have installed everything you want, you need to make sure that Sun java is the default Java runtime environment:

update-java-alternatives –set java-1.5.0-sun

More on wajig


[edit] AMD64 java

[edit] AMD64 java via icedtea

### java icedTea
deb  http://people.ubuntu.com/~doko/ubuntu/ gutsy/ 

and go here to test

http://www.java.com/en/download/help/testvm.xml

I get Java installed (1.7.0).

I sent in a wnpp bug for 'request to package' on Debian, but don't see it listed?



[edit] AMD64 sun-java news

According to a post on April/9/2008 at

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4802695

We have not only commit this RFE to JRE 7, but also JRE 6 update release.
The date for JRE 6 update release which has this 64bit JRE support will be early 2009.
Posted Date : 2008-04-09 16:57:04.0 


[edit] Manual method

The following information is for reference only - probabaly not the way you should do it with todays systems. These instructions last updated 5/2007 for iceweasel (Debian version of firefox)
First, download java from
[https://sdlc3e.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo Navigating Sun's site is about the worst part. You want to get the J2SE(TM) Runtime Environment 5.0 Update 10 (6 won't work at this writing 5/2007)


Down-Load the install package to your home directory.


Do the following

su -
wajig install java-common
chmod u+x jre*
cd /usr/local/lib                                                                                    
/root/jre-1_5_0-linux-i586.bin
cd /usr/lib/iceweasel/plugins/


ln -s /usr/local/lib/jre1.5.0_10/plugin/i386/ns7/libjavaplugin_oji.so .

You may have to quit all Mozilla apps and then delete the ~/.mozilla/pluginreg.dat file.

Personal tools