Difference between revisions of "Install Java"

From FreekiWiki
Jump to navigation Jump to search
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
There are several methods for installing Java on a [[FreekBox]]. It is not installed by default because the user needs to accept an enduser agreement and we will not do that for them. 
+
Note that most machines will already have Java installed.  If you would like to manually install it, please follow the instructions [[Multimedia_and_DVDs_in_Ubuntu]].
  
Java is available from different companies, i.e. Sun, IBM and Blackdown
+
==Installing Java by Force (not THE Force)==
  
===Blackdown Java===
+
On most machines, Java should be installed already. If it's not, you can just open up Ubuntu Sofware Center and search for Java.
Blackdown Java can be installed very simply.  Add the following line to /etc/apt/sources.list
 
<nowiki>deb ftp://ftp.tux.org/java/debian/ sarge non-free</nowiki>
 
 
 
<table align=center border=1 width=80%><tr><td bgcolor=lightgray>
 
To do this, you need to open the file with a text editor:
 
#nano /etc/apt/sources.list
 
#add the line
 
#ctrl+o, then enter (to save)
 
#ctrl+x (to exit)
 
</tr></td></table>
 
 
 
Then use the following commands to install it.
 
apt-get update
 
apt-get install j2re1.4
 
 
 
===Java-package===
 
These, slightly more complicated, instructions are from [http://wiki.linuxquestions.org/wiki/Java-Debian http://wiki.linuxquestions.org/wiki/Java-Debian]. The example is for Sun Java, but it will work with the following:
 
* Sun Microsystems(TM) 1.4 and 1.5 Standard Edition
 
* IBM(TM) 1.3 and 1.4 Standard Edition
 
* Blackdown Java-Linux 1.3 and 1.4 Standard Edition
 
 
 
 
 
Make sure the contrib entry is in your main deb line in sources.list.  For example:
 
 
 
<nowiki>deb http://mirrors.kernel.org/debian/ stable main contrib non-free</nowiki>
 
 
 
Follow these instructions to install jre for Debian sarge.
 
 
 
apt-get install java-package
 
 
 
download the sun jdk from java.sun.com
 
 
 
make-jpkg jdk-1_5_0-linux-i586.bin
 
dpkg -i sun-j2sdk1.5_1.5.0_i386.deb
 
apt-get install sun-j2sdk1.5debian
 
 
 
==self-extracting file==
 
 
 
The apt-get methods are not available for Debian Woody.  Adopters with the [[FreekBox|Freek Box 2]] should use the following instructions.
 
 
 
The instructions at http://www.togaware.com/linux/survivor/Install_Sun.shtml worked to
 
install Java.
 
 
 
download sun's self-extracting file j2sdk-1_4_2_05-linux-i586.bin
 
(requires agreement to license)
 
 
 
move or copy it to /usr/local
 
be root
 
run the following command to install
 
./j2sdk-1_4_2_05-linux-i586.bin
 
(this requires that you agree to the license again)
 
and then the following command to make it findable by the system
 
ln -s /usr/local/j2sdk1.4.2_05/bin/* /usr/local/bin
 
(link the bin files into /usr/local/bin)
 
 
 
This does not put the plugin into mozilla, that must be done manually.
 
 
 
In mozilla, go to '''file://usr/local/j2sdk1.4.2_05'''
 
open the '''README.html''' file
 
go to '''System Requiremnts & Installation'''
 
click on the installation instructions link
 
click on the '''J2SDK for Linux''' link
 
go to '''Java Plug-In Browser Registration Instructions'''
 
Click on '''Manual Registration Instructions'''
 
 
 
Or click on the following link: http://java.sun.com/j2se/1.4.2/manual_install_linux.html
 
 
 
follow the instructions
 
(requires creating a symbolic link from the correct file in the plugins
 
directory into the mozilla plugins directory)
 
 
 
cd /usr/lib/mozilla/plugins
 
ln /usr/local/j2sdk1.4.2_05/jre/plugin/i386/ns610/libjavaplugin_oji.so .
 
  
 +
For the Java browser plugin, see [[Ubuntu_restricted_extras]]
  
 
[[Category:Tech support]]
 
[[Category:Tech support]]

Latest revision as of 11:41, 24 January 2012

Note that most machines will already have Java installed. If you would like to manually install it, please follow the instructions Multimedia_and_DVDs_in_Ubuntu.

Installing Java by Force (not THE Force)

On most machines, Java should be installed already. If it's not, you can just open up Ubuntu Sofware Center and search for Java.

For the Java browser plugin, see Ubuntu_restricted_extras