lundi, mai 21, 2012

Upgrade to Ubuntu 12.04 Precise Pangolin: issues fixed on my laptop

I upgraded, 4 days ago,  my laptop (Dell Precision M6600 with Intel Core i7 and 500 Gbytes SSD disk) to the last LTS Ubuntu release: 12.04 Precise Pangolin 64 bits. I was until then running Ubuntu 11.10 Oneiric Ocelot

Until now, I had only 2 issues to fix:
  • the NVidia optimzed proprietary driver that I was using had stability issues: screen either got black or fully striped after some time. I reverted to standard Linux screen drivers and everything got stable again
  • Eclipse would not start and gave error message below: I follow the advice given on StackOverflow and used the command 
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

It gave Eclipse access back to those libraries and my favorite IDE works fine again.
I'll keep updating this post if more issues arise

Hope this helps somebody !

=================== Eclipse startup error message ========================

!SESSION 2012-05-21 07:08:17.854 -----------------------------------------------
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2012-05-21 07:08:18.939
!MESSAGE Application error
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/didier/.swt/lib/linux/x86_64/
    Can't load library: /home/didier/.swt/lib/linux/x86_64/

    at org.eclipse.swt.internal.Library.loadLibrary(
    at org.eclipse.swt.internal.Library.loadLibrary(
    at org.eclipse.swt.internal.C.(
    at org.eclipse.swt.internal.Converter.wcsToMbcs(
    at org.eclipse.swt.internal.Converter.wcsToMbcs(
    at org.eclipse.swt.widgets.Display.(
    at org.eclipse.ui.internal.Workbench.createDisplay(
    at org.eclipse.ui.PlatformUI.createDisplay(
    at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.eclipse.equinox.launcher.Main.invokeFramework(
    at org.eclipse.equinox.launcher.Main.basicRun(
    at org.eclipse.equinox.launcher.Main.main(

Source: blog Media and Tech (par didier durand)