Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-03-2012, 02:40 AM
|
#1
|
Member
Registered: Jan 2010
Posts: 189
Rep:
|
how to enable java in firefox 10 without root access
hi
I have installed firefox 10 (the latest one) into my local /home/firefox/
I am able to launch firefox from /home/firefox/firefox
however the firefox browser did not come with java enable.
I have installed java into /home/jre1.6.0_30/
BUT the browser still cannot get the java
How could I enable java in the browser
NOTE: i do not have root access
thx
|
|
|
02-03-2012, 02:48 AM
|
#2
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
uname -r
2.6.18-238.el5
|
|
|
02-03-2012, 03:14 AM
|
#3
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Try to put the file in
Code:
/home/user/.mozilla/pugins/
directory
Kind regards
|
|
|
02-03-2012, 03:20 AM
|
#4
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
It has only two folder in the /home/user/.mozilla/
they are extensions & firefox
may i know put which file into /home/user/.mozilla/plugins/ ?
shall i create a folder call plugins?
|
|
|
02-03-2012, 03:41 AM
|
#5
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Sorry, this was for flash.
Instal java in your
directory
Then do:
Code:
export JAVA_HOME=/home/user/jre1.6.0_30/
export PATH=/home/user/jre1.6.0_30/bin:$PATH
java -version
Logout, and log back in, and see if it works
Kind regards
|
|
|
02-03-2012, 03:50 AM
|
#6
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
# export
export: Command not found.
no such export command
|
|
|
02-03-2012, 03:53 AM
|
#7
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
i have create plugins folder in /home/user/.mozilla/plugins
cd to the folder, then make a soft links:
ln -s /home/user/misc/java/jre1.6.0_30/lib/amd64/libnpjp2.so libnpjp2.so
restart the firefox, still cannot get java
|
|
|
02-07-2012, 07:38 AM
|
#8
|
LQ Newbie
Registered: Feb 2009
Posts: 3
Rep:
|
Try the following command:
cd ~/firefox/plugins && ln -s /etc/alternatives/xulrunner-1.9-javaplugin.so libjavaplugin.so
Restart firefox and open "about:plugins" and "http://java.com/en/download/testjava.jsp".
|
|
|
02-07-2012, 07:25 PM
|
#9
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
i do not have this file /etc/alternatives/xulrunner-1.9-javaplugin.so libjavaplugin.so
|
|
|
02-07-2012, 07:27 PM
|
#10
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
i tried out this in /home/user/.mozilla/plugins/ but still not working
libjavaplugin_jni.so -> /home/user/misc/java/jre1.6.0_30/lib/amd64/libjavaplugin_jni.so
|
|
|
02-07-2012, 07:55 PM
|
#11
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
Code:
LoadPlugin: failed to initialize shared library /home/user/misc/java/jre1.6.0_30/lib/amd64/libjavaplugin_jni.so [/home/user/misc/java/jre1.6.0_30/lib/amd64/libjavaplugin_jni.so: wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /home/user/misc/java/jre1.6.0_30/lib/amd64/libnpjp2.so [/home/user/misc/java/jre1.6.0_30/lib/amd64/libnpjp2.so : wrong ELF class: ELFCLASS64]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.6.0-sun-1.6.0.22.x86_64/jre/lib/amd64/libjavaplugin_jni.so [/usr/lib/jvm/java-1.6.0-sun-1.6.0.22.x86_64/jre/lib/amd64/libjavaplugin_jni.so: wrong ELF class: ELFCLASS64]
Last edited by casualzone; 02-07-2012 at 07:56 PM.
|
|
|
02-08-2012, 10:08 AM
|
#12
|
LQ Newbie
Registered: Feb 2009
Posts: 3
Rep:
|
Don't try to work with ".mozilla" directory, this is your profile, and you need to set up this in the installation directory (/home/user/firefox, as you said).
EDIT: From the last message, seems that you've installed a 32 bit version of Firefox. If this is the case, you'll need the 32 bit version of java also, not the 64bit version shipped with your machine.
Last edited by zekkerj; 02-08-2012 at 10:10 AM.
|
|
|
02-10-2012, 02:04 AM
|
#13
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
when i type about: in the firefox
it shows as below:
Build identifier: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0) Gecko/20100101 Firefox/10.0
so i think my firefox 10 is in x86_64
|
|
|
02-10-2012, 02:05 AM
|
#14
|
Member
Registered: Jan 2010
Posts: 189
Original Poster
Rep:
|
uname -a
Linux machine_name 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 GNU/Linux
|
|
|
All times are GMT -5. The time now is 07:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|