LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Removal of sun-java (https://www.linuxquestions.org/questions/debian-26/removal-of-sun-java-910332/)

jens 10-26-2011 03:30 PM

Removal of sun-java
 
Quote:

As said in one of my previous blog post, we, Debian, were going to remove sun-java6 packages from the archive once critical security issues would come. It was supposed to happen sooner and later and here we are. The version 29 (see the #645881 Debian bug) of the Oracle proprietary JVM has been released. It fixes some critical issues but, because of the DLJ removal, Debian is no longer able to distribute it.

Unfortunately, we have no other choice than asking for a removal from the archive and promote the use of the openjdk 6 & 7.
The conclusion is:
apt-get --purge remove sun-java6-jre && apt-get install openjdk-7-jre
http://sylvestre.ledru.info/blog/syl...a6_from_debian

Hungry ghost 10-26-2011 11:05 PM

I use a java app (mercury messenger, to be specific), and the last time I tried to use the openjdk with it, some months ago, I experienced some issues. Hope it's fixed in the latest openjdk release.

craigevil 10-27-2011 03:39 PM

easy enough to download java from oracle if openjdk doesn't work for you

Hungry ghost 10-27-2011 04:06 PM

Yes, that's what I used to do some years ago (it's a bit of a hassle, though).

michalng 10-29-2011 03:25 AM

Just to confirm,
in my squeeze install, apt still reports sun-java6 packages as available.

- any risk using sun-java6 as of today or I should go to openjdk-6 immediately?
- am I correct to say that icedtea6-plugin is required in place of sun-java6-plugin?


Thank in advance for the clarification.

craigevil 10-29-2011 01:27 PM

Quote:

Originally Posted by michalng (Post 4511058)
Just to confirm,
in my squeeze install, apt still reports sun-java6 packages as available.

- any risk using sun-java6 as of today or I should go to openjdk-6 immediately?
- am I correct to say that icedtea6-plugin is required in place of sun-java6-plugin?


Thank in advance for the clarification.

See #645881 - critical update 29 available - Debian Bug report logs - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645881

I would either switch to Openjdk or download the current java 29 from Oracle.

michalng 10-29-2011 07:12 PM

1 Attachment(s)
Quote:

Originally Posted by craigevil (Post 4511356)
See #645881 - critical update 29 available - Debian Bug report logs - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=645881

I would either switch to Openjdk or download the current java 29 from Oracle.

craigevil, thanks for the link and advise.

1. Any advise (or link) on how to install sun-java on Debian and

2. How to remove sun-java (so as to install) when a new version comes out?

3. Installed and tested openjdk at https://www.java.com/en/download/testjava.jsp and got a message that it is only at update 18 (earlier than the outdated sun-java6 in non-free) .


Thanks in advance for the help.

Hungry ghost 10-29-2011 10:35 PM

Quote:

Originally Posted by michalng (Post 4511518)
any advise (or link) on how to install sun-java on Debian and
how to remove it (so as to install) when a new version comes out?

You need to download the self extracting package from Oracle website and follow the instructions. However, being a manual install, I would extract the package inside /opt (instead of /usr/java), and make a symbolic link to /opt/jre1.6.0_29/bin/java inside /usr/bin. As for the browser plugin, you need to make a symbolic link to /opt/jre1.6.0_29/plugin/i386/ns7/libjavaplugin_oji.so inside /usr/lib/iceweasel/plugins (in case you're using iceweasel, otherwise it should be in the plugins directory of the browser you use). Actually, the instructions on the website talk about making the symbolic link to <Java installation directory>/lib/i386/libnpjp2.so, but as far as I know, the the browser plugin library is libjavaplugin_oji.so, so I'm a bit confused (you can try each one separately to see which one works).

As for the uninstallation, basically you have to delete the directory 'jre1.6.0_29' from /opt, delete the 'java' sym link from /usr/bin as well as the plugin lib sym link from /usr/lib/iceweasel/plugins.

If this explanation is too confusing, please, say so and I'll post how to do it step by step.

Regards.

Hungry ghost 10-29-2011 11:40 PM

I juest tested, and indeed, the correct plugin lib is "<Java installation directory>/lib/i386/libnpjp2.so", as the instructions say.


All times are GMT -5. The time now is 02:41 PM.