How to add java plugin for Firefox on Linux? [closed] - java

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to add java plugin for FireFox (v10.0.12) on Linux(Centos 5.6 64bit).
I have JDK 1.7.0_12 installed, and add a symbolic link to plugin folder under /usr/lib/mozilla to the file libnpjp2.so under (JRE)/lib/amd64/
Followd this
http://www.oracle.com/technetwork/java/javase/manual-plugin-install-linux-136395.html
But I still couldn't find java plugin on my Firefox Add-ons Manager.
What might be the problem ?

Do you want the JDK or the JRE? Anyways, I had this problem too, a few weeks ago. I followed the instructions here and it worked:
http://www.backtrack-linux.org/wiki/index.php/Java_Install
NOTE: Before installing Java make sure you kill Firefox.
root#bt:~# killall -9 /opt/firefox/firefox-bin
You can download java from the official website. (Download tar.gz version)
We first create the directory and place java there:
root#bt:~# mkdir /opt/java
root#bt:~# mv -f jre1.7.0_05/ /opt/java/
Final changes.
root#bt:~# update-alternatives --install /usr/bin/java java /opt/java/jre1.7.0_05/bin/java 1
root#bt:~# update-alternatives --set java /opt/java/jre1.7.0_05/bin/java
root#bt:~# export JAVA_HOME="/opt/java/jre1.7.0_05"
Adding the plugin to Firefox.
For Java 7 (32 bit)
root#bt:~# ln -sf $JAVA_HOME/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
For Java 8 (64 bit)
root#bt:~# ln -sf $JAVA_HOME/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/
Testing the plugin.
root#bt:~# firefox http://java.com/en/download/testjava.jsp

you should add plug in to your local setting of firefox in your user home
vladimir#shinsengumi ~/.mozilla/plugins $ pwd
/home/vladimir/.mozilla/plugins
vladimir#shinsengumi ~/.mozilla/plugins $ ls -ltr
lrwxrwxrwx 1 vladimir vladimir 60 Jan 1 23:06 libnpjp2.so -> /home/vladimir/Install/jdk1.6.0_32/jre/lib/amd64/libnpjp2.so

Related

Ubuntu 14.04 - Oracle JDK 8 - Where is the JAVA_HOME environment variable defined? [duplicate]

This question already has answers here:
Ubuntu: change the path from OpenJDK 6 to Oracle JDK 7
(5 answers)
Closed 6 years ago.
I am trying to uninstall Oracle jdk 8 on my Ubuntu 14.04 server, in order to replace it with open jdk 8 because open source ftw. I have run apt-get purge, apt-get autoclean, logged out, logged back in, and when I run the env command, I see the following:
JAVA_HOME=/usr/lib/jvm/java-8-oracle
I do not want to overwrite this value in my .bashrc file, I do not want to take shortcuts or apply band aids, I want to fix the problem at the source by finding where it is set and removing it. Please help
I found the solution. I ran the following command to find files with the old jdk path:
sudo find / -type f -exec grep -Flm 1 '/usr/lib/jvm/java-8-oracle' {} +
The culprits were in the following directory:
/etc/profile.d

install JDK8 in ubuntu 14.04 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to start programming in java and i am using ubuntu 14.04, i downlaoaed
jdk-8u20-linux-x64.tar.gz
and in oracle website there is a command to install it, it is the command
% tar zxvf jdk-8uversion-linux-x64.tar.gz
in terminal i got this
bash: fg: %: no such job
anyone help me to intall the JDK.
Add the webupd8 ppa, and install from that -
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Then
java -version
should show you using Oracle Java 8. If not, or if you want to use a different version - run update-java-alternatives with something like,
sudo update-java-alternatives -s java-8-oracle
or
sudo update-java-alternatives -s java-7-oracle
As appropriate.
Debian way (whereas Ubuntu is Debian-baseD) of doing it is through packages.
So it is highly preferred to make a deb package.
Here is how:
sudo apt-get install java-package
make-jpkg jdk-8u20-linux-x64.tar.gz
sudo dpkg -i oracle-java8-jdk_8u20_amd64.deb
Maybe there is already some PPA already doing it for you, but better trust no-one and do it for yourself ;-)

JRE/java command not found [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm trying to install JRE on Ubuntu 13.10. I followed this guide. When I run "java -version" it says "command not found"...
This is the result of "sudo find / -name java"
/var/lib/dpkg/alternatives/java
/usr/lib/jvm/java-7-oracle/bin/java
/usr/lib/jvm/java-7-oracle/jre/bin/java
/usr/lib/ure/share/java
/usr/local/java
/usr/local/java/jre1.7.0_51/bin/java
/usr/bin/java
/usr/java
Basically command not found happens when you didn't set up the PATH of installed java.
This guide here covers more about how to install java on a ubuntu machine completely, but here I'm just going to present how to setup your java runnable:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jre1.7.0_51/bin/java" 1
sudo chmod a+x /usr/bin/java
and then
sudo update-alternatives --config java
Choose the one that has /usr/local/java/jre1.7.0_51/bin/java in the options.
You need to set your Java bin full path /jre1.7.0_51/bin to the PATH variable in your Shell window.
Like this
export PATH:$PATH:/jre1.7.0_51/bin
You can check the existing PATH by typing echo $PATH in your Shell window.

Install Oracle JRE 1.6 on JDK 1.5 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have Oracle JDK and JRE 1.5 installed ubuntu LTS. I want to keep JDK 1.5 and install Oracle JRE as 1.6. please let me know the steps or any clear source where I can get this done
A nice way to do this is by using the webupd8 PPA
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
To switch which version is used when you type java (or javac etc..) use sudo update-alternatives --config java (or javac of course)

can't set JAVA_HOME because can't find where Java JDK 1.7 installed [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I've just downloaded latest Java JDK for Mac OSX (jdk-7u17-macosx-x64.dmg) from here.
I have it installed, but I can't find where it has been installed so that I could setup JAVA_HOME.
notebook:work askar$ ls -al /System/Library/Frameworks/JavaVM.framework/Versions/Current
lrwxr-xr-x 1 root wheel 1 Jul 29 2012 /System/Library/Frameworks/JavaVM.framework/Versions/Current -> A
Today is March 11, 2013. Here it shows Jul 29, 2012...
Use the /usr/libexec/java_home utility which returns the path to the preferred JVM version.
With /usr/libexec/java_home -V you can retrieve a list of all installed JVMs.
The easiest way to set up $JAVA_HOME is:
export JAVA_HOME=$(/usr/libexec/java_home)
This will always set the path to the latest JVM, so you don't have to update it after upgrading java.
echo `/usr/libexec/java_home`
You can use this command to find the java home in mac os.

Categories