Some details here: http://docentesconeducacion.es/viewtopic.php?f=129&t=1022
But today I have had a problem: I needed to do some online process in madrid.org, and the applet @firma was not working
With this link, I verified "why" @firma was not working
https://gestiona.madrid.org/ereg_virtual_v2/run/j/InicioRequisitos.icm?ASF=S
"
Error al cargar el Applet @firma. Debe permitir en su navegador siempre la ejecución del MiniApplet @firma.
"
¿How do I allow browser to run it?
Adding as security exception
https://gestiona.madrid.org
with
/opt/java/64/jre1.8.0_11/bin$ ./ControlPanel
does not solve it
Remembering... in june I was playing with java 8: I finally installed at the same time java 7 and java 8, with this tutorial
http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
I have been using java 8 in firefox without problem (not too much use, holidays...)
So after some tests, I decided to return to java 7 with
sudo update-java-alternatives -s java-7-oracle
And with that, it is working againAfter that I see the option
"Restaurar peticiones de datos de seguridad"
(Restore security data prompts)
And with that option... it is not working again, neither java 7 nor java 8...
But at least it was working the time I need it ...
This friki sessions are "as well documented" as I can ... I write this after some time and sometimes it may be not accurate
Maybe I am not really with java 7 but java 8?
I check here
/usr/bin$ ls -l *java*
-rwxr-xr-x 1 root root 2513 abr 8 00:49 dh_nativejava
lrwxrwxrwx 1 root root 22 oct 22 2013 java -> /etc/alternatives/java
lrwxrwxrwx 1 root root 23 jul 26 16:14 javac -> /etc/alternatives/javac
lrwxrwxrwx 1 root root 25 jul 26 16:14 javadoc -> /etc/alternatives/javadoc
lrwxrwxrwx 1 root root 32 jul 26 16:14 javafxpackager -> /etc/alternatives/javafxpackager
lrwxrwxrwx 1 root root 23 jul 26 16:14 javah -> /etc/alternatives/javah
lrwxrwxrwx 1 root root 23 jul 26 16:14 javap -> /etc/alternatives/javap
lrwxrwxrwx 1 root root 30 ago 21 09:52 javapackager -> /etc/alternatives/javapackager
lrwxrwxrwx 1 root root 25 jul 26 16:20 java_vm -> /etc/alternatives/java_vm
lrwxrwxrwx 1 root root 24 nov 16 2013 javaws -> /etc/alternatives/javaws And after
sudo update-java-alternatives -s java-7-oracle
This is the result
/etc/alternatives$ ls -l *java*
lrwxrwxrwx 1 root root 39 sep 5 00:18 java -> /usr/lib/jvm/java-7-oracle/jre/bin/java
lrwxrwxrwx 1 root root 45 sep 5 00:18 java.1.gz -> /usr/lib/jvm/java-7-oracle/man/man1/java.1.gz
lrwxrwxrwx 1 root root 36 sep 5 00:18 javac -> /usr/lib/jvm/java-7-oracle/bin/javac
lrwxrwxrwx 1 root root 46 sep 5 00:18 javac.1.gz -> /usr/lib/jvm/java-7-oracle/man/man1/javac.1.gz
lrwxrwxrwx 1 root root 38 sep 5 00:18 javadoc -> /usr/lib/jvm/java-7-oracle/bin/javadoc
lrwxrwxrwx 1 root root 48 sep 5 00:18 javadoc.1.gz -> /usr/lib/jvm/java-7-oracle/man/man1/javadoc.1.gz
lrwxrwxrwx 1 root root 45 sep 5 00:18 javafxpackager -> /usr/lib/jvm/java-7-oracle/bin/javafxpackager
lrwxrwxrwx 1 root root 55 sep 5 00:18 javafxpackager.1.gz -> /usr/lib/jvm/java-7-oracle/man/man1/javafxpackager.1.gz
lrwxrwxrwx 1 root root 36 sep 5 00:18 javah -> /usr/lib/jvm/java-7-oracle/bin/javah
lrwxrwxrwx 1 root root 46 sep 5 00:18 javah.1.gz -> /usr/lib/jvm/java-7-oracle/man/man1/javah.1.gz
lrwxrwxrwx 1 root root 36 sep 5 00:18 javap -> /usr/lib/jvm/java-7-oracle/bin/javap
lrwxrwxrwx 1 root root 46 sep 5 00:18 javap.1.gz -> /usr/lib/jvm/java-7-oracle/man/man1/javap.1.gz
lrwxrwxrwx 1 root root 43 ago 21 09:52 javapackager -> /usr/lib/jvm/java-8-oracle/bin/javapackager
lrwxrwxrwx 1 root root 53 ago 21 09:52 javapackager.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/javapackager.1.gz
lrwxrwxrwx 1 root root 42 jul 26 16:20 java_vm -> /usr/lib/jvm/java-7-oracle/jre/bin/java_vm
lrwxrwxrwx 1 root root 41 sep 5 00:18 javaws -> /usr/lib/jvm/java-7-oracle/jre/bin/javaws
lrwxrwxrwx 1 root root 47 sep 5 00:18 javaws.1.gz -> /usr/lib/jvm/java-7-oracle/man/man1/javaws.1.gz
lrwxrwxrwx 1 root root 52 sep 5 00:18 mozilla-javaplugin.so -> /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so
After
sudo update-java-alternatives -s java-8-oracle
the result...
/etc/alternatives$ ls -l *java*
lrwxrwxrwx 1 root root 39 sep 5 00:22 java -> /usr/lib/jvm/java-8-oracle/jre/bin/java
lrwxrwxrwx 1 root root 45 sep 5 00:22 java.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/java.1.gz
lrwxrwxrwx 1 root root 36 sep 5 00:22 javac -> /usr/lib/jvm/java-8-oracle/bin/javac
lrwxrwxrwx 1 root root 46 sep 5 00:22 javac.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/javac.1.gz
lrwxrwxrwx 1 root root 38 sep 5 00:22 javadoc -> /usr/lib/jvm/java-8-oracle/bin/javadoc
lrwxrwxrwx 1 root root 48 sep 5 00:22 javadoc.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/javadoc.1.gz
lrwxrwxrwx 1 root root 45 sep 5 00:22 javafxpackager -> /usr/lib/jvm/java-8-oracle/bin/javafxpackager
lrwxrwxrwx 1 root root 55 sep 5 00:22 javafxpackager.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/javafxpackager.1.gz
lrwxrwxrwx 1 root root 36 sep 5 00:22 javah -> /usr/lib/jvm/java-8-oracle/bin/javah
lrwxrwxrwx 1 root root 46 sep 5 00:22 javah.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/javah.1.gz
lrwxrwxrwx 1 root root 36 sep 5 00:22 javap -> /usr/lib/jvm/java-8-oracle/bin/javap
lrwxrwxrwx 1 root root 46 sep 5 00:22 javap.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/javap.1.gz
lrwxrwxrwx 1 root root 43 ago 21 09:52 javapackager -> /usr/lib/jvm/java-8-oracle/bin/javapackager
lrwxrwxrwx 1 root root 53 ago 21 09:52 javapackager.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/javapackager.1.gz
lrwxrwxrwx 1 root root 42 jul 26 16:20 java_vm -> /usr/lib/jvm/java-7-oracle/jre/bin/java_vm
lrwxrwxrwx 1 root root 41 sep 5 00:22 javaws -> /usr/lib/jvm/java-8-oracle/jre/bin/javaws
lrwxrwxrwx 1 root root 47 sep 5 00:22 javaws.1.gz -> /usr/lib/jvm/java-8-oracle/man/man1/javaws.1.gz
lrwxrwxrwx 1 root root 52 sep 5 00:22 mozilla-javaplugin.so -> /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so
Back with java 7 (links with java 7)
https://www.java.com/es/download/installed.jsp
says it is java 8 1?
Versión de Java verificada
Enhorabuena.
Tiene instalada la versión de Java recomendada (Version 8 Update 20).Searching...
$ ls -l /usr/lib/mozilla/plugins/libjava*
lrwxrwxrwx 1 root root 39 jul 1 21:04 /usr/lib/mozilla/plugins/libjavaplugin.so -> /etc/alternatives/mozilla-javaplugin.so$ ls -l /etc/alternatives/mozilla-javaplugin.so
lrwxrwxrwx 1 root root 52 sep 5 00:23 /etc/alternatives/mozilla-javaplugin.so -> /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so
I did have a link
~/.mozilla/plugins$ ls -ltr
...abr 22 16:58 libnpjp2.so -> /opt/java/64/jre1.7.0_55/lib/amd64/libnpjp2.so
Deleting it and restarting ...
Nothing changes: firefox says java 8, but
$java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)??
I read again first link about java 8, and I install (not previously installed)
sudo apt-get install oracle-java7-set-default
And I decide to do that
sudo apt-get --reinstall install oracle-java7-installer
But it says java 8 !
I try that
sudo apt-get remove oracle-java8-installer
...
Removing oracle-java8-installer (8u20+8u6arm-1~webupd8~0) ...
update-binfmts: warning: current package is oracle-java8, but binary format already installed by openjdk-7; not removing.
And now it says java 8 update 11 !?
So I decide to remove more ...
Removing openjdk-7-jre:amd64 (7u65-2.5.1-4ubuntu1~0.14.04.2) ...
update-alternatives: atención: no existe la alternativa /usr/lib/jvm/java-8-oracle/jre/bin/policytool (parte del grupo de enlaces policytool); eliminándola de la lista de alternativas
But still says Version 8 Update 11
Maybe I did something manually in June?
I search in
ls -l /opt/java/64
jun 17 06:21 jre1.7.0_65
jun 17 02:37 jre1.8.0_11
So there it is ...
My java versions with first link are 1.7.0_67 and 1.8 update 20!,
So the right place is
ls -l /usr/lib/jvm
drwxr-xr-x 4 root root 4096 jun 1 17:53 java-1.5.0-gcj-4.8-amd64
lrwxrwxrwx 1 root root 20 oct 12 2013 java-1.7.0-openjdk-amd64 -> java-7-openjdk-amd64
drwxr-xr-x 5 root root 4096 nov 16 2013 java-6-openjdk-amd64
drwxr-xr-x 5 root root 4096 oct 22 2013 java-7-openjdk-amd64
drwxr-xr-x 8 root root 4096 sep 5 01:13 java-7-oracle
I remove stuff from /opt/java/64 and also java-1.5.0-gcj-4.8-amd64 directory.
And, finally ... I see
Versión de Java verificada
Enhorabuena.
Tiene instalada la versión de Java recomendada (Version 7 Update 67).And @firma (without firefox restart) works again!
So I try to install java 8 at the same time to be able to switch... I remember now why I installed java 8
http://www.fiquipedia.es/home/recursos/simulaciones#TOC-Modellus
...luego portado a linux y Mac como Modellus X.0x (en julio 2014 v0.5RC)
http://modellus.co/index.php/es/
La versión 0.5RC necesita java 8, y la instalación en linux necesita JavaFx y acceso a la librería libGlass.so
After installing
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
(it removes oracle-java7-set-default)sudo update-java-alternatives -s java-8-oracle
It is not working again, butsudo apt-get install oracle-java7-set-default
(it removes oracle-java8-set-default)sudo update-java-alternatives -s java-7-oracle
@firma works again ...Finally something under control... but
Version of java says java 8.20 ... ¿somehow says the last version?
With java 7, Firefox "about:addons" says
Java(TM) Plug-in 10.67.2Next Generation Java Plug-in 10.67.2 for Mozilla browsers
...
application/x-java-applet;jpi-version=1.7.0_67 (Java™ Plug-in),
application/x-java-bean;jpi-version=1.7.0_67 (Java™ Plug-in),
and "about:plugins" Java(TM) Plug-in 10.67.2
Archivo: libnpjp2.so
Ruta: /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so
With java 8, Firefox "about:addons" version is different
UPDATE: March 2015
Same error again!
I see
ls -l /usr/lib/jvm
total 12
drwxr-xr-x 5 root root 4096 sep 30 22:30 java-7-openjdk-amd64
drwxr-xr-x 8 root root 4096 mar 12 16:19 java-7-oracle
drwxr-xr-x 8 root root 4096 mar 5 22:51 java-8-oracle
I see no openjdk package: I remove it by hand: at /usr/lib/jvm/, sudo rm -rf java-7-openjdk-amd64/
Java 8 is latest 8u40; I remove it with sudo apt-get remove oracle-java8-*
But it does not work
I added https://gestiona.madrid.org, https://gestiona3.madrid.org and
https://gestiona4.madrid.org in ControlPanel
I search for more *java* packages
java-wrappers and java-common
I decide to remove java-wrappers package, wich removes vuze
But with the other
sudo apt-get remove java-common
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios no han sido creados o han
sido movidos fuera de Incoming.
La siguiente información puede ayudar a resolver la situación:
Los siguientes paquetes tienen dependencias incumplidas:
openjdk-7-jre : Depende: openjdk-7-jre-headless (= 7u75-2.5.4-1~trusty1)
E: Error, pkgProblemResolver::Resolve generó cortes, esto puede haber sido causado por paquetes retenidos.
So I decide to install openjdk-7-jre it just to uninstall it, to check if it resolves problems and it clean system.
After that
sudo apt-get remove java-common
....
Los siguientes paquetes tienen dependencias incumplidas:
libatk-wrapper-java : Depende: default-jre o
java2-runtime
libatk-wrapper-java-jni : Depende: default-jre o
java2-runtime
After default-jre install, I am able to do
sudo apt-get remove java-common
...
Los siguientes paquetes se ELIMINARÁN:
ca-certificates-java default-jre default-jre-headless icedtea-netx
java-common libatk-wrapper-java libatk-wrapper-java-jni openjdk-7-jre
openjdk-7-jre-headless oracle-java7-installer oracle-java7-set-default
It removes everything... clean system
After that, I install again oracle-java7-installer (no tests with higher versions by the moment)
Nothing ... I see java9, install it and just unistall, with that message:
update-binfmts: warning: current package is openjdk-6, but binary format already installed by openjdk-7; not removing.
http://askubuntu.com/questions/259096/update-binfmts-warning
https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/328174
jar (enabled):
package = openjdk-7
type = magic
offset = 0
magic = PK\x03\x04
mask =
interpreter = /usr/bin/jexec
detector =
I manually remove it
sudo update-binfmts --package openjdk-7 --remove jar /usr/bin/jexec
But nothing
I enable log in ControlPanel, log is in home, .java/log/plugin4163214517788429134.log
5:58:01 PM es.gob.afirma.miniapplet.MiniAfirmaApplet init
INFO: Localizacion por defecto: null
5:58:01 PM es.gob.afirma.keystores.misc.JarSignatureCertExtractor insertJarSignerOnCACerts
WARNING: Error en la validacion de los certificados contra el almacen de Java
5:58:01 PM es.gob.afirma.keystores.misc.JarSignatureCertExtractor a
INFO: El extremo de la cadena de certificados esta en el truststore de Java
5:58:01 PM es.gob.afirma.keystores.misc.JarSignatureCertExtractor insertJarSignerOnCACerts
INFO: Los certificados de firma del JAR ya son de confianza para el usuario
Buscando esos errores encuentro esto, que tiene pinta de ser : fecha de octubre 2014, problema con applet y nuevas versiones java...
http://listas-ctt.administracionelectronica.gob.es/pipermail/clienteafirma-integradores/2014-October/000623.html
[Clienteafirma-integradores] Problema Firefox Miniapplet con java update 72 / java 8 update 25
Con la última actualización de java ha dejado de funcionar.
Si se prueba bajando la versión de java a la 1.6 a pesar que el
navegador te advierte que hay que actualizarlo funciona.
No hay comentarios:
Publicar un comentario