LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-21-2007, 03:51 AM   #1
matsyuf
Member
 
Registered: Mar 2007
Posts: 97

Rep: Reputation: 15
installin java for browser


Hi

I installed firefox on my debian, now i want to install java and enable it for firefox, how can i do that?
 
Old 03-21-2007, 04:35 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You can get the installer/runnable file from SUN's java site. The very same you use for Windows, except that you download the Linux-version. Once it's downloaded, run it -- that means, open a terminal, cd to the directory where the file is, then make sure it's executable (change filename.run to the actual filename of the "installer"):
Code:
chmod +x filename.run
and after that simply run it:
Code:
./filename.run
if you're using Mozilla browser and have started the browser at least once after you installed it (so that the directories are created), you should be fine with this -- it asks you some questions like the plugin directory which should be the default one. After you agree to the licence and complete the setup, restart your browser and you should be fine.

Another more simple method is to unpack the package you download from SUN, and instead of running the setup just copy the file libjavaplugin_oji.so to your browser's plugin directory (for example, to ~/.firefox/plugins or something), restart browser and be happy. I don't think the installer does actually anything more; copying that file is enough. If you copy it to the plugins directory under your home directory (by the way, directories like .firefox that start with a dot are usually not shown by your file browser unless you ask it to) only you can use the plugin, or if you copy it to the system-wide plugins directory, it's available for all users.

EDIT: sorry -- now that I think of it, actually you can probably just obtain a Debian binary file (.deb) and install that with something like dpkg -i. Or even easier, with apt-get install if you know the package name; it could be something as easy as this:
Code:
apt-get install jre
depending on what the package is called; jre, jre1.5, java or something. It should be easy to find out; you should probably do it this way, so it's more easily updated in case you need to. The "manual" method described above works for sure, but because you're using Debian you can just do it the nice way using apt-get.

Last edited by b0uncer; 03-21-2007 at 04:38 AM.
 
Old 03-21-2007, 05:10 AM   #3
matsyuf
Member
 
Registered: Mar 2007
Posts: 97

Original Poster
Rep: Reputation: 15
Thanx Bouncer

Thanx b0uncer,

I have just realised i hve a file in /opt-jdk-1_5_0_06-linux-i586.bin, can this work, maybe i execute it with sh. but am wondering if it will work on my firefox
 
  


Reply

Tags
yusuf



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
JAVA JRE installation to view java applet through browser dipenchaudhary Linux - Software 1 01-23-2006 09:20 AM
java script support for browser The Oate Programming 3 10-20-2005 10:54 PM
Simple Browser in Java LinuxTiro Programming 14 08-02-2004 03:16 PM
jse java script for browser andox Linux - Newbie 0 07-04-2003 06:17 AM

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

All times are GMT -5. The time now is 08:46 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
Open Source Consulting | Domain Registration