LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-03-2012, 02:40 AM   #1
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Rep: Reputation: 15
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
 
Old 02-03-2012, 02:48 AM   #2
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
uname -r
2.6.18-238.el5
 
Old 02-03-2012, 03:14 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try to put the file in
Code:
/home/user/.mozilla/pugins/
directory

Kind regards
 
Old 02-03-2012, 03:20 AM   #4
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
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?
 
Old 02-03-2012, 03:41 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Sorry, this was for flash.
Instal java in your
Code:
/home/user/
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
 
Old 02-03-2012, 03:50 AM   #6
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
# export
export: Command not found.

no such export command
 
Old 02-03-2012, 03:53 AM   #7
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
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
 
Old 02-07-2012, 07:38 AM   #8
zekkerj
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
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".
 
Old 02-07-2012, 07:25 PM   #9
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
i do not have this file /etc/alternatives/xulrunner-1.9-javaplugin.so libjavaplugin.so
 
Old 02-07-2012, 07:27 PM   #10
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
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
 
Old 02-07-2012, 07:55 PM   #11
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
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.
 
Old 02-08-2012, 10:08 AM   #12
zekkerj
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
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.
 
Old 02-10-2012, 02:04 AM   #13
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
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
 
Old 02-10-2012, 02:05 AM   #14
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
uname -a
Linux machine_name 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 GNU/Linux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unable to enable/configure java in firefox Bringo Linux - Newbie 3 06-05-2010 10:52 AM
enable a command that requires root access for a normal user marsguy Linux - General 2 10-08-2006 09:43 AM
Firefox Java Plugin only works as root (FC3) jfk Linux - Software 0 02-23-2005 01:50 PM
How to enable java in FireFox zyzyis Linux - Newbie 7 09-29-2004 06:07 PM
How do I enable modules so that non-root users can access them? davecs Linux - Software 9 07-26-2003 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration