Java, How-to please?

Hi guys, I was trying to get working a JAVA app yesterday. Whilst trying it, I went to the JAVA website to verify my java install. The website could not run its applet, and advised me that I had build 23 and needed build 24. I went to YAST but build 23 was the only one available. Back to JAVA and download build 24, in the form of a script. I run this, all seems well, but if I issue >~ java -version it still reports build 23 (the verify page on the website does too). I try using the alternate from the java website, a different RPM script, with the same results. I return to YAST trying force updates, no joy. I then install the JAVA repo, but find that build 23 is the latest available there.
I have tried the tip from these forums WRT using >~ sudo /usr/sbin/update-alternatives --config java but it reports only one install, the build 23. I then tried force uninstall from via YAST, but this seems not to have helped. I guess the scripts install the java packages in different places to those expected by openSuse so openSuse does not see them. In fact they seem to install in my download directory, ie /home/stephen/bin. Is there a foolproof way to clean up all of this java mess and install the latest from the website script in a way and in a place the openSuse can use it?

Here is Test #14 from the mmcheck script file. You can run the command shown manually in a terminal session to see your results:

  1. Show if Java Packages are Installed from openSUSE …

Command: rpm --query --all --queryformat '%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH} -> %{VENDOR}
’ ‘java-

java-1_6_0-sun-plugin-1.6.0.u23-2.11-x86_64 -> openSUSE
java-1_6_0-sun-1.6.0.u23-2.11-x86_64 -> openSUSE
java-1_6_0-sun-alsa-1.6.0.u23-2.11-x86_64 -> openSUSE

You should expect to have only Sun Java Packages installed. If your files
include the name –> openjdk <–, it is suggested that they be uninstalled.

Press <enter> to continue…

Or, you can obtain mmcheck from here:

MultiMedia Checker or mmcheck - Check Your openSUSE MultiMedia Setup in Just 16 Steps

Thank You,

result = java-1_6_0-sun-1.6.0.u23-0.2.1-i586 -> openSUSE, same as for java -version.

stephen@home:~> java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode)

But in /home/stephen/bin is a directory
file:///home/stephen/bin/jre1.6.0_24 put there by running the script on the java website.

actually what u need ? run java desktop applications ? or run java applet in web ?

I got the app running, (here)Universal Replayer - the ultimate poker replayer but I want to know how to get my java install correct.

On 02/16/2011 02:06 PM, wakou wrote:
>
> I want to know how to get my java install correct.

define “correct”

that is, if it works it must ‘ok’ so what is between ok and correct?


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

For all the times I’ve reposted links to these two threads long ago where ab “revealed” how to point openSUSE to specific Java instances, I wonder why any/all of my subsequent posts re-posting links to these links aren’t found…

openSUSE and Mandriva are unique that we have the “update-alternatives” applet that can point to any one of multiple JAVA JRE or JDK installed on a system. Just make sure that your install from source is in a path where it can be found, then point to it using “update-alternatives.”

How to point environ var to JDK?
Problem: Sun JDK, not JRE

HTH,
Tony

Oh Denver! Why do you answer questions that have not been asked? Java Website says “oops you are using build 23, please upgrade to build 24” I only asked how I could do this.

that is, if it works it must ‘ok’ so what is between ok and correct?

errr *NO *and you know that “If it works it must be 'ok” is just plain wrong.

I have tried, Tony…

On 02/17/2011 04:36 AM, wakou wrote:
> Oh Denver! Why do you answer questions that have not been asked? Java
> Website says “oops you are using build 23, please upgrade to build 24” I
> only asked how I could do this.

24 is now in the update repo and you can easily get yours “correct”
again…


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

My apologies Denver I forgot to thank you for the heads up on this…
I tried to install from the repo’s/yast, but still no joy, but in the end I got bored of messing with it…
However a couple of days ago I NEEDED the java to be up to date, (To speed test a new “superfast” broadband connection using my ISP’s tests). I did some google digging and came up with this: I manually created a dir /.mozilla/plugins and then inserted a symbolic link there pointing to libnpjp2.so. This now works, I HTH anyone else suffering similars. I am sure this is not the correct way!

On 2011-02-16 13:36, wakou wrote:
> But in /home/stephen/bin is a directory
> file:///home/stephen/bin/jre1.6.0_24 put there by running the script on
> the java website.

Simply delete that directory, should be that simple. Or find an “uninstall”
script, if it exists. Or read the README docs to find out instructions for
uninstall.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

On 03/04/2011 01:06 AM, wakou wrote:
>
> /.mozilla/plugins . . .
> This now works . . . I am sure this is not the correct way!

do you actually have a hidden directory in your root partition named
mozilla ?

i think most systems would have it here /usr/lib/browser-plugins, and
i think moz ‘knows’ to look there…

NOTE: if yours works i’m not sure i would “fix it”…and, if you
decide to “fix it” i ask to read my caveat, below, first.


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

Thanks D, of course I meant ~/.mozilla/plugins. As for “most systems” having the link at /usr/lib/browser-plugins, mine does not:

ls /usr/lib/browser-plugins/
libflashplayer.so  libmozsvgdec.so  packagekit-plugin.so  skypebuttons.so

Why would this be?

On 03/04/2011 04:06 PM, wakou wrote:
>
> Why would this be?

i’d guess because somehow all of the addons for firefox didn’t get in
the right place, here i have:

denver@linux:> ls -a1 /usr/lib/browser-plugins
javaplugin.so@
libflashplayer.so*
libmoonloader.so@
libmoonshine-plugin.so*
mplayerplug-in-dvx.so*
mplayerplug-in-dvx.xpt*
mplayerplug-in-gmp.so*
mplayerplug-in-gmp.xpt*
mplayerplug-in-qt.so*
mplayerplug-in-qt.xpt*
mplayerplug-in-rm.so*
mplayerplug-in-rm.xpt*
mplayerplug-in.so*
mplayerplug-in-wmp.so*
mplayerplug-in-wmp.xpt*
mplayerplug-in.xpt*
nppdf.so@
npwrapper.libflashplayer.so*
npwrapper.libmoonloader.so*
npwrapper.libmoonshine-plugin.so*
npwrapper.mplayerplug-in-dvx.so*
npwrapper.mplayerplug-in-gmp.so*
npwrapper.mplayerplug-in-qt.so*
npwrapper.mplayerplug-in-rm.so*
npwrapper.mplayerplug-in.so*
npwrapper.mplayerplug-in-wmp.so*
npwrapper.nppdf.so*
npwrapper.npwrapper.so*
npwrapper.packagekit-plugin.so*
npwrapper.skypebuttons.so*
npwrapper.so@
packagekit-plugin.so*
skypebuttons.so*

i used YaST to install the plugins for java, flash, mplayer, moonshine
and the others you see there…how do you install plugins?


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11