View Full Version : HOWTO: Installing Java J2SDK | J2RE with firefox plugins
Gandalf
April 2nd, 2005, 11:26 PM
Hello,
i don't know if this solution has been discussed before, because it differ than the one available in http://ubuntuguide.org/#jre if yes i apologise for this
the purpose of this HOWTO: is how to install J2SDK or J2RE (i will consider you will install J2SDK in this HOWTO) with mozilla-firefox java plugin as debian packages, not directly from sources..
first you need to download J2SDK or J2RE from http://www.blackdown.org/java-linux/java-linux-d2.html
go to the folder where you downloaded the .bin file (j2sdk-1.4.2-01-linux-i586.bin in my case)
$ sudo apt-get install java-package fakeroot
$ fakeroot make-jpkg j2sdk-1.4.2-01-linux-i586.bin
you don't have to fill your mail and other info asked just press enter, when this finished you will find blackdown-j2sdk1.4_1.4.2+01_i386.deb in the same folder
$ sudo dpkg -i blackdown-j2sdk1.4_1.4.2+01_i386.deb
verify that java has been installed correctly as a java envirement and mozilla-firefox plugin,
java -version
to verify the envirement
in mozilla-firefox
about:plugins
you should see Java(TM) Plug-in Blackdown-1.4.2-01
Enjoy!!! :D
bored2k
April 2nd, 2005, 11:52 PM
If that does not work, visit http://www.ubuntulinux.org/wiki/Java .
I have yet to test Blackdown; is it faster than Sun's own ?
Gandalf
April 3rd, 2005, 01:27 AM
If that does not work, visit http://www.ubuntulinux.org/wiki/Java .
I have yet to test Blackdown; is it faster than Sun's own ?
well i'm quite happy with it, i run it on ubuntu on my laptop and on my debian sarge server working great
kelean
April 3rd, 2005, 08:57 PM
Here is the guide for warty but installing java with this works well just make sure the the version is correct.
http://www.ubuntuguide.org/
I just installed java with no problems ans it runs very well.
bored2k
April 3rd, 2005, 09:12 PM
Here is the guide for warty but installing java with this works well just make sure the the version is correct.
http://www.ubuntuguide.org/
I just installed java with no problems ans it runs very well.
This is the Hoary HOW-TO section, isn't it ? :roll:
Gandalf
April 3rd, 2005, 10:02 PM
This is the Hoary HOW-TO section, isn't it ? :roll:
Unofficial Ubuntu 4.10 Starter Guide
so apprently it's warty not hoary
bored2k
April 3rd, 2005, 10:20 PM
Unofficial Ubuntu 4.10 Starter Guide
so apprently it's warty not hoary
My point was: you posted on
Ubuntu Linux Forums > Ubuntu Hoary Hedgehog 5.04 > Hoary 5.04 FAQs & HOWTOs
Wich means we don't care about Warty.
Gandalf
April 3rd, 2005, 10:23 PM
My point was: you posted on
Ubuntu Linux Forums > Ubuntu Hoary Hedgehog 5.04 > Hoary 5.04 FAQs & HOWTOs
Wich means we don't care about Warty.
oh ok sorry :S my HOWTO is for hoary in any case, i run hoary and did it to my distro myself, anyway sorry for the miss-understanding
jiyuu0
April 4th, 2005, 12:02 AM
My point was: you posted on
Ubuntu Linux Forums > Ubuntu Hoary Hedgehog 5.04 > Hoary 5.04 FAQs & HOWTOs
Wich means we don't care about Warty.
Unofficial Ubuntu 5.04 Starter Guide
http://www.ubuntuguide.org/temp
the update java section is also there
*this is still the temp page
dejitarob
April 5th, 2005, 12:17 AM
I would be careful running an old version of java. http://ubuntuguide.org/#jre links to the latest version (other binaries on Sun's Java download page (http://java.sun.com/j2se/1.5.0/download.jsp))
bored2k
April 5th, 2005, 12:21 AM
I would be careful running an old version of java. http://ubuntuguide.org/temp/#jre links to the latest version.
Careful ? why? as long as the application doesn't demand it, they should work [some old versions work faster than others... supposedly]. Even Limewire for Windows, downloads a very old java version, the one that works, not necessarily new. On old java's I have used azureus, limewire and websites like dslreports.
But, if a new version is available, there is no point in using an old one.
dejitarob
April 5th, 2005, 07:51 PM
Careful ? why?http://secunia.com/product/784/#advisories
remkio
April 10th, 2005, 12:59 PM
I tried to install the Sun J2SDK 1.5.0 update 2 using the method above, however it still didn't install the plugin.
After some research I found out that the firefox plugin is "installed" by creating a symbolic link to a symbolic link in the /etc/alternatives directory, which points to a non-existing file.
Whether or not this is because Sun changed the directory layout, or the make-jpkg doesn't set it up properly I am not sure, however by changing the symbolic link for
/etc/alternatives/firefox-javaplugin.so
from:
/usr/lib/j2sdk1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so
to
/usr/lib/j2sdk1.5-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so
I've been able to get firefox to work.
I guess that by changing the mozilla-javaplugin.so and the netscape-javaplugin.so one will be able to get these programs to work properly as well..
Another way to solve this problem is to update the install file in /usr/share/java-package/sun-j2sdk1.5 by changing:
# assemble the plugin path
plugin_dir="$j2se_base/plugin/$arch_dir"
to:
# assemble the plugin path
plugin_dir="$j2se_base/jre/plugin/$arch_dir"
before building the package with make-jpkg.
Z-Bo
April 10th, 2005, 03:54 PM
I have tried just about every solution offered (I think) and have yet to find a workable answer. Here is what confuses me, I do:
$ java -version
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
$ firefox about:plugins
Java(TM) Plug-in 1.5.0_02-b09
File name: libjavaplugin_oji.so
Java(TM) Plug-in 1.5.0_02
MIME Type Description Suffixes Enabled
application/x-java-vm Java Yes
application/x-java-applet Java Yes
application/x-java-applet;version=1.1 Java Yes
application/x-java-applet;version=1.1.1 Java Yes
application/x-java-applet;version=1.1.2 Java Yes
application/x-java-applet;version=1.1.3 Java Yes
application/x-java-applet;version=1.2 Java Yes
application/x-java-applet;version=1.2.1 Java Yes
application/x-java-applet;version=1.2.2 Java Yes
application/x-java-applet;version=1.3 Java Yes
application/x-java-applet;version=1.3.1 Java Yes
application/x-java-applet;version=1.4 Java Yes
application/x-java-applet;version=1.4.1 Java Yes
application/x-java-applet;version=1.4.2 Java Yes
application/x-java-applet;version=1.5 Java Yes
application/x-java-applet;jpi-version=1.5.0_02 Java Yes
application/x-java-bean Java Yes
application/x-java-bean;version=1.1 Java Yes
application/x-java-bean;version=1.1.1 Java Yes
application/x-java-bean;version=1.1.2 Java Yes
application/x-java-bean;version=1.1.3 Java Yes
application/x-java-bean;version=1.2 Java Yes
application/x-java-bean;version=1.2.1 Java Yes
application/x-java-bean;version=1.2.2 Java Yes
application/x-java-bean;version=1.3 Java Yes
application/x-java-bean;version=1.3.1 Java Yes
application/x-java-bean;version=1.4 Java Yes
application/x-java-bean;version=1.4.1 Java Yes
application/x-java-bean;version=1.4.2 Java Yes
application/x-java-bean;version=1.5 Java Yes
application/x-java-bean;jpi-version=1.5.0_02 Java Yes
Judging by the confirmations I am getting from running from terminal, I should be able to run java without crashing, right...? So far the best I get is the browser no longer crashes. I then decided to right click in the browser document of a page that contains an embedded applet, and View Page Info > Tab "Media"... There is no media content in the Media tab related to java. I doublecheck the page source to make sure there is an embedded applet and sure enough it is there. Please, any suggestions would be welcome so I can stop ](*,)
Edit: I tried symlinking with the "alternatives" directory. What change did I get? about:plugins no longer registers java as a plugin, BUT Firefox acknowledges applets in the Media "Tab" under View Page Info. Am I getting closer or further away? Hmm...
remkio
April 10th, 2005, 05:22 PM
I have tried just about every solution offered (I think) and have yet to find a workable answer. Here is what confuses me, I do:
...
Judging by the confirmations I am getting from running from terminal, I should be able to run java without crashing, right...? So far the best I get is the browser no longer crashes. I then decided to right click in the browser document of a page that contains an embedded applet, and View Page Info > Tab "Media"... There is no media content in the Media tab related to java. I doublecheck the page source to make sure there is an embedded applet and sure enough it is there. Please, any suggestions would be welcome so I can stop ](*,)
Mmm.. None of the applets I looked at showed up in my "Media" tab... However, they do run properly... and therefor I don't mind...
Edit: I tried symlinking with the "alternatives" directory. What change did I get? about:plugins no longer registers java as a plugin, BUT Firefox acknowledges applets in the Media "Tab" under View Page Info. Am I getting closer or further away? Hmm...
Looks like you lost the plugin... Just a question: how did you install your java?
WMCoolmon
April 10th, 2005, 05:43 PM
Question: I installed Sun Java before I realized there was no firefox plugin for the AMD64...is it OK if I just install blackdown Java over it?
Z-Bo
April 10th, 2005, 06:47 PM
@remkio
Thanks for replying. What do you mean "lost the plugin?" You are referring to libjavaplugin_oji.so correct? I have it...
One thing that might be screwing things up is all the installs and removals of Java I have done in the past week or so to get Java to work...
dejitarob
April 10th, 2005, 10:48 PM
Question: I installed Sun Java before I realized there was no firefox plugin for the AMD64...There are AMD64 binaries on Sun's Java download page (http://java.sun.com/j2se/1.5.0/download.jsp) (click on 'Download JRE 5.0 Update 2'). Follow the install instructions in the unofficial guide (http://ubuntuguide.org/#jre), substituting i386 for your binaries of course.
WMCoolmon
April 11th, 2005, 12:12 AM
That's exactly what I did; the problem is, there's no firefox/mozilla plugin for the versions on Sun's site. :|
RastaMahata
April 11th, 2005, 06:49 AM
Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you.
I finally have java in firefox (efter i don t know how many repositories added)... Someone should fix the wiki at ubuntulinux.org and state that those instructions are for warty! (/me hits his forehead):(
dejitarob
April 11th, 2005, 04:23 PM
That's exactly what I did; the problem is, there's no firefox/mozilla plugin for the versions on Sun's site. :|That is why the ubuntu guide (http://ubuntuguide.org/#jre-mozilla) was linked.
punkinside
April 28th, 2005, 11:47 AM
sudo apt-get install java-package
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package java-package
?!?!?! I have almost every imaginable repository enabled whats the problem here?! I already installed it from a non-supported one just added some other repositories and did apt-get install j2sdk-dont remember what else.... but this concerns me I also couldnt get the firefox plugin
Gandalf
April 28th, 2005, 01:05 PM
sudo apt-get install java-package
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package java-package
?!?!?! I have almost every imaginable repository enabled whats the problem here?! I already installed it from a non-supported one just added some other repositories and did apt-get install j2sdk-dont remember what else.... but this concerns me I also couldnt get the firefox plugin
look here
http://packages.ubuntu.com/hoary/misc/java-package
punkinside
April 28th, 2005, 03:05 PM
hey thanx Gandalf... now where do I put it? apt-get should work now right? but does it need to be somewhere specific? sorry, complete n00b here..
Gandalf
April 29th, 2005, 02:48 AM
hey thanx Gandalf... now where do I put it? apt-get should work now right? but does it need to be somewhere specific? sorry, complete n00b here..
hmmmmmmm... just make sure that the source (that that page mentioned) is actually inside your /etc/apt/sources.list
gasley
May 5th, 2005, 05:49 AM
I have succesfully installed java-package and fakeroot, but when i execute
fakeroot make-jpkg j2sdk-1.4.2-01-linux-i586.bin
I get this:
Creating temporary directory: /tmp/make-jpkg.XXXXmQTwyW
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh
Detected product:
Java(TM) Software Development Kit (J2SDK)
Standard Edition, Version 1.4.2+01
Blackdown Java-Linux
Is this correct [Y/n]: y
Checking free diskspace: done.
Please enter your full name. This value will be used in the maintainer
field of the created package.
Full name [root]:
hostname: Unknown host
Aborted ().
Removing temporary directory: done
So it fails after entering full name, whether i leave it empty or write something to it.
Any help?
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.