Pages: [1]   Go Down
Author Topic: Arduino not run un Ubuntu 12.04  (Read 1008 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I the actual version of Ubuntu 12.04 (in this date is not a rc, just a beta)... and Arduino not run...

Code:
cd alexis@laptop:~$ cd Escritorio/arduino-1.0/
alexis@laptop:~/Escritorio/arduino-1.0$ arduino
Exception in thread "main" java.lang.ExceptionInInitializerError
at processing.app.Base.main(Base.java:112)
Caused by: java.awt.HeadlessException
at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:231)
at processing.core.PApplet.<clinit>(Unknown Source)
... 1 more
alexis@laptop:~/Escritorio/arduino-1.0$
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 116
Posts: 5393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you download the Ubuntu repository Arduino IDE first? Does that run ok?

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

same error
Code:
alexis@laptop:~$ sudo apt-get install arduino
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes NUEVOS:
  arduino
0 actualizados, 1 se instalarán, 0 para eliminar y 340 no actualizados.
Necesito descargar 684 kB de archivos.
Se utilizarán 903 kB de espacio de disco adicional después de esta operación.
Des:1 http://archive.ubuntu.com/ubuntu/ precise/universe arduino all 1:1.0+dfsg-9 [684 kB]
Descargados 684 kB en 6seg. (100 kB/s)                                         
Seleccionando paquete arduino previamente no seleccionado
(Leyendo la base de datos ... 459344 ficheros o directorios instalados actualmente.)
Desempaquetando arduino (de .../arduino_1%3a1.0+dfsg-9_all.deb) ...
Procesando disparadores para gnome-menus ...
Procesando disparadores para desktop-file-utils ...
Procesando disparadores para bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Procesando disparadores para hicolor-icon-theme ...
Procesando disparadores para man-db ...
Procesando disparadores para menu ...
Procesando disparadores para shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Unknown media type in type 'interface/x-winamp-skin'
Configurando arduino (1:1.0+dfsg-9) ...
Procesando disparadores para menu ...
alexis@laptop:~$ arduino
Exception in thread "main" java.lang.ExceptionInInitializerError
at processing.app.Base.main(Base.java:112)
Caused by: java.awt.HeadlessException
at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:231)
at processing.core.PApplet.<clinit>(Unknown Source)
... 1 more
alexis@laptop:~$
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 116
Posts: 5393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

After a quick Google search, I found this.
http://askubuntu.com/questions/26474/unable-to-install-arduino
It isn't exactly v12.04, but the symptoms are the same.
There is a solution and a link. Maybe this will help you.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

cant fix
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i fix.. this problem... with this..

Code:
sudo update-alternatives --config java
Existen 3 opcioens para la alternativa java (que provee /usr/bin/java).

  Selección   Ruta                                           Prioridad  Estado
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1061      modo automático
  1            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1061      modo manual
* 2            /usr/lib/jvm/java-6-sun/jre/bin/java            63        modo manual
  3            /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java   1051      modo manual
Pulse <Intro> para mantener el valor por omisión [*] o pulse un número de selección:

Select the option number 2... fix... works fine...
Logged

Pages: [1]   Go Up
Jump to: