martedì 28 gennaio 2014

Eclipse non vuole partire: java.lang.UnsatisfiedLinkError: Could not load SWT library.

Ho un Ubuntu 12.04 a 64 bit, ho installato Eclipse dalla gestione software da Ubuntu Software Center", ma poi per sviluppare su Android mi serve Java SDK di Oracle e non OpenJDK.
Leggendo il seguente Help https://help.ubuntu.com/community/Java seguo le istruzioni al seguente indirizzo per procedere a installare Oracle Java http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html.
Faccio tutti gli step necessari:

  1. sudo add-apt-repository ppa:webupd8team/java
  2. sudo apt-get update
  3. sudo apt-get install oracle-java7-installer
Controllo con il comando java -version e tutto ok, mi sembra ben fatto


java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Per scrupolo eseguo anche il seguente comando per impostare le variabili di ambiente di default:

sudo apt-get install oracle-java7-set-default

Perfetto! adesso procedo a lanciuare Eclipse, ma non parte. ##!!!##%%%****###!!!!

Mi vado  a leggere i log:

eclipse.buildId=I20110613-1736
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=it_IT
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2014-01-28 23:22:04.272
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/francesco/.swt/lib/linux/x86_64/libswt-gtk-3740.so
Can't load library: /home/francesco/.swt/lib/linux/x86_64/libswt-gtk.so

Bene mi sembra manchi qualcosina, tipo le swt. Ma perche'?
Google alla mano trovo la soluzione, manca un link.

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

Ecco fatto, Eclipse parte regolarmente. Rimane il dubbio sul pacchetto di installazione di java, sul perche' non imposta per l'utente attivo il link delle librerie swt.

Shipbuilding

Ci sono canzoni magiche, opere d'arte su cui mi imbatto e che rimangono impresse nel cuore e nell'anima. Opere che ad ogni ascolto entrano più in profondità, che ascolto in ogni interpretazione eseguita da artisti diversi e per ognuna la trovo sempre spettacolare. Ho incontrato questa canzone per la prima volta nell'interpretazione di Robert Wyatt, forse la migliore, qui ripropongo una versione dal vivo:

 

Shipbuilding

Is it worth it
A new winter coat and shoes for the wife
And a bicycle on the boys birthday
Its just a rumour that was spread around town
By the women and children
Soon well be shipbuilding
Well I ask you
The boy said dad they're going to take me to task
But I'll be back by christmas
Its just a rumour that was spread around town
Somebody said that someone got filled in
For saying that people get killed in
The result of this shipbuilding
With all the will in the world
Diving for dear life
When we could be diving for pearls
Its just a rumour that was spread around town
A telegram or a picture postcard
Within weeks they'll be re-opening the shipyards
And notifying the next of kin
Once again
Its all were skilled in
We will be shipbuilding
With all the will in the world
Diving for dear life
When we could be diving for pearls

lunedì 27 gennaio 2014

The Unthanks - Shipbuilding

Un altro capolavoro wyattiano da parte delle Unthanks, forse il miglio gruppo folk del momento.