Java 6u27 and Firefox 6

Hi!

I have openSuse11.4 x64 and FireFox 6.0.

Is there a way to update Java to latest version. Guides given on Java web site doesn’t work, tutorials foun on Google also don’t work.

I updated to 6u22 but thats it.

Firefox founds only 6u22.

Help.

kojo1984 wrote:

>
> Hi!
>
> I have openSuse11.4 x64 and FireFox 6.0.
>
> Is there a way to update Java to latest version. Guides given on Java
> web site doesn’t work, tutorials foun on Google also don’t work.
>
> I updated to 6u22 but thats it.
>
> Firefox founds only 6u22.
>
> Help.
>
Simply install the java-1_6_0-sun packages with zypper or yast and uninstall
openjdk, then you will have it (the version numbering for openjdk is
slightly different by the way).


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

The Quick Java Switch and Fix

Done as told, and yes, I do get Java-sun 6u26 when checking in Firefox on java.com: Java + You.

But I want to download and install latest version 6u27 from Java web site and include it in Firefox…

On 08/31/2011 08:46 AM, kojo1984 wrote:
>
> Done as told, and yes, I do get Java-sun 6u26 when checking in Firefox
> on ‘java.com: Java + You’ (http://www.java.com).

in firefox location type about:plugins and hit enter…scroll down to
the Java Plugin, you should see “Java™ Plug-in 1.6.0_26” which is the
latest available from the openSUSE repos for openSUSE 11.4, what do you see?

if, as you say, you see only “Java™ Plug-in 1.6.0_22” then something
is wrong with your selection of repos, so please show us the output of
entering the following into a terminal


zypper lr -d

and copy/paste the output back to this thread using the instructions
here: http://goo.gl/i3wnr

> But I want to download and install latest version 6u27 from Java web
> site and include it in Firefox…

but, if you see “Java™ Plug-in 1.6.0_26” like i do, then why do you
want to install the tiny step difference from 1.6.0_26-0.2.1 to
1.6.0_27? what features are you missing in 26 that you must have?


DD
openSUSE®, the “German Engineered Automobile” of operating systems!

In Firefox “about:plugins” says “Java™ Plug-in 1.6.0_26”.

There is no feature that I’m missing. I want to know how to install it manually.

kojo1984 wrote:
> In Firefox “about:plugins” says “Java™ Plug-in 1.6.0_26”.
>
> There is no feature that I’m missing. I want to know how to install it
> manually.
>
There are two simple options. Wait for the update (the java updates will be
in the openSUSE repositories for java sooner or later) or follow the
description from oracle:
http://www.java.com/en/download/linux_manual.jsp?locale=en
What’s the problem with it, a rpm is provided by them?
Or is your question how to install a rpm?


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

I install everything… I get “Package jre-1.**** is already installed”.

But part “Enable and Configure” is making problems. Can’t find files and folders where it states they should be. That is part when enablin Java for firefox

I simply downloaded and installed now the bin installer for java from oracle
as it is described in the link I sent before.

The jre does not conflict with the existing one since it is installed into a
separate directory (on my machine I can see it is in /usr/java/jre1.6.0_27).
Checked with


martinh@ganymed:~> rpm -qa 'jre*'
jre-1.6.0_27-fcs.x86_64
martinh@ganymed:~> rpm -ql jre-1.6.0_27-fcs.x86_64
/etc
/etc/.java
/etc/.java/.systemPrefs
/etc/.java/.systemPrefs/.system.lock
/etc/.java/.systemPrefs/.systemRootModFile
/etc/init.d/jexec
/usr
/usr/java
/usr/java/jre1.6.0_27
/usr/java/jre1.6.0_27/COPYRIGHT
/usr/java/jre1.6.0_27/LICENSE
/usr/java/jre1.6.0_27/README
/usr/java/jre1.6.0_27/THIRDPARTYLICENSEREADME.txt
/usr/java/jre1.6.0_27/Welcome.html
/usr/java/jre1.6.0_27/bin
<snip much more>

To check if the java works at all I tested with to show the version


martinh@ganymed:~> /usr/java/jre1.6.0_27/bin/java -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)

After that I went to the browser plugins directory (/usr/lib64/browser-
plugins) and removed the existing javaplugin.so (as root) and created a new
symbolic link for the new luibnpjp2.so


cd /usr/lib64/browser-plugins
sudo rm javaplugin.so
sudo cp -s /usr/java/jre1.6.0_27/lib/amd64/libnpjp2.so javaplugin.so

restarted firefox and went to the testpage which shows now (Version 6 Update
27).
No idea if thats the best way to do it, it’s just a quick and dirty way to
check if it works and it does.


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

On 08/31/2011 10:46 AM, kojo1984 wrote:
> I install everything… I get “Package jre-1.**** is already
> installed”.

did you follow the part of the instructions which said in red letters:
“We highly recommend users remove all older versions of Java from your
system.” <http://www.java.com/en/download/faq/remove_olderversions.xml>

but, do NOT try to remove your existing by following the later
underlined “the instructions on Java uninstallation instructions for
Windows page.”

but, i’d advise you to use _26 and follow the rule: If it ain’t broke,
don’t fix it. (you said you don’t miss any features with _26, so ??)

of course, it IS your machine and you can fix it as often as you
wish…anyway, some folks say: If it ain’t broke you ain’t trying hard
enough.


DD Caveat
openSUSE®, the “German Engineered Automobile” of operating systems!

You’re the MAN!!!
This is the first time that I have Java updated on openSuse :D!!!

Thank you a lot!!!

Don’t forget this only “updates” the java for your browser. The default java
used by for example a standalone java program on the system is still the
version defined by what you installed with yast/zypper. If you want to
change that as well you have to change the symabolic link /usr/bin/java as
well to point to the version you installed from oracle. This does not affect
the browser and if you don’t need that just ignore it.


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

From /usr/bin/java is pointed to /etc/alternatives/java, and from there is pointed to “java -> /usr/lib64/jvm/jre-1.6.0-sun/bin/java”

Should I point, last one, to “/usr/java/jrel.6.0_27/bin/java”?

kojo1984 wrote:

> From /usr/bin/java is pointed to /etc/alternatives/java, and from there
> is pointed to “java -> /usr/lib64/jvm/jre-1.6.0-sun/bin/java”
>
> Should I point, last one, to “/usr/java/jrel.6.0_27/bin/java”?
>
Only if you care about java applications which run outside the browser, if
you care only about apps which run in firefox no need to mess with it.


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

I’ll take that as a YES :D… Thank you once again. Got my faith in Linux community.

kojo1984 wrote:
> I’ll take that as a YES :D… Thank you once again. Got my faith in
> Linux community.
>
It is a yes and you have to check also that the environment variables are
correct, instead of

JAVA_BINDIR=/usr/lib64/jvm/java/bin
JAVA_HOME=/usr/lib64/jvm/java
JAVA_ROOT=/usr/lib64/jvm/java

they need to point to the correct places

JAVA_BINDIR=/usr/java/jre1.6.0_27/bin
JAVA_HOME=/usr/java/jre1.6.0_27
JAVA_ROOT=/usr/java/jre1.6.0_27

after you have done this plus the change of the link /usr/bin/java your
environment is correctly set.
(profile.local is a good place to define them).


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

martin_helm wrote:
> It is a yes and you have to check also that the environment variables are
> correct, instead of
>
> JAVA_BINDIR=/usr/lib64/jvm/java/bin
> JAVA_HOME=/usr/lib64/jvm/java
> JAVA_ROOT=/usr/lib64/jvm/java
>
> they need to point to the correct places
>
> JAVA_BINDIR=/usr/java/jre1.6.0_27/bin
> JAVA_HOME=/usr/java/jre1.6.0_27
> JAVA_ROOT=/usr/java/jre1.6.0_27
>
> after you have done this plus the change of the link /usr/bin/java your
> environment is correctly set.
> (profile.local is a good place to define them).
>
Sorry I forgot one, which may also be used by some programs
JRE_HOME=/usr/lib64/jvm/jre
should be
JRE_HOME=/usr/java/jre1.6.0_27
just to be complete.


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

I’m endless pile of questions :(…

Where to put those lines? If you ment in a file “profile.local”, where is it located? I found only file called “/etc/local”

Should I create profile.local in /home/%username%/

I’ve found those entries in a /etc/profile.d in a file called alljava.sh and alljava.csh… Is that something?

kojo1984 wrote:

>
> kojo1984;2380038 Wrote:
>> I’m endless pile of questions :(…
>>
>> Where to put those lines? If you ment in a file “profile.local”, where
>> is it located? I found only file called “/etc/local”
>>
>> Should I create profile.local in /home/%username%/
>
> I’ve found those entries in a /etc/profile.d in a file called
> alljava.sh and alljava.csh… Is that something?
>
>
I would not edit those files, these files are created by the system, I put
the settings into /etc/profile.local which serves the purpose to put special
settings in it. By default it does not exist and has to be created. If you
prefer to do it with a gui you can do it that way (this is for KDE)


su -
kwrite /etc/profile.local #for gnome use: gedit /etc/profile.local

this opens the empty file as root now put the following into it


JRE_HOME=/usr/java/jre1.6.0_27
JAVA_BINDIR=$JRE_HOME/bin
JAVA_HOME=$JRE_HOME
JAVA_ROOT=$JRE_HOME

and save it. From now on the variables will be set always on every reboot
and are permanent.
If you later update at some time possibly to a 1.6.0_28 or whatever the
version will be just change again the two symbolic links to the new path and
edit that /etc/profile.local again.


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram