Tutoriale Online

Tutoriale Online Invata Online cum se face si cum este corect. Learn Online How Must To Do !

Tutoriale Online Fedora How to install Java with Plug-in for Mozilla Firefox

Posted by ascultradio on September 20, 2009

• Download Linux self-extracting file (jre-1_5_0_10-linux-i586.bin) from
Java’s Site and save it to your home folder
mv jre-1_5_0_10-linux-i586.bin /opt
cd /opt
chmod +x jre-1_5_0_10-linux-i586.bin
./jre-1_5_0_10-linux-i586.bin
ln -s /opt/jre1.5.0_10/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
The Java plugin is now installed Confirm with the command below that the sym links are green
ls /usr/lib/mozilla/plugins

To run Java enabled applications like limewire continue below
gedit /etc/profile.d/java.sh
• Insert the following lines to the new file
#!/bin/sh
JAVA_HOME=/opt/jre1.5.0_10
export JAVA_HOME
JAVA_BIN=$JAVA_HOME/bin
CLASSPATH=$CLASSPATH:$JAVA_HOME:$JAVA_HOME/lib
PATH=$JAVA_BIN:$PATH
export JAVA_BIN CLASSPATH PATH
• Save edited file
source /etc/profile.d/java.sh
/usr/sbin/alternatives –install /usr/bin/java java /opt/jre1.5.0_10/bin/java 2
/usr/sbin/alternatives –config java
• You will see the following screen
There are 2 programs which provide ‘java’.

Selection Command
———————————————–

*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /opt/jre1.5.0_10/bin/java

Enter to keep the current selection[+], or type selection number:
• Enter 2
• Test your Java

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: