Tizen on Ubuntu

2013 Feb 17 at 00:27 » Tagged as :eclipse, tizen,

Lot of speculative news articles and blog posts these days about the world's largest smart phone maker ditching android in favor of Tizen. What I know about tizen at the moment can be written on the back of a postage stamp (if I can find one lying around), so here is an attempt to put that right. Started off by downloading the Tizen binaries for Ubuntu. I have done this sort of thing far too often to know that it will not work the first time so I was quite prepaperd for the first error, when the installer insisted that I switch to Oracle JDK.

 OpenJDK is not supported. Try again with Oracle JDK.

I have moved forward since my rant, in 2008 against /etc/alternatives but unfortunately Oracle has moved Java in the wrong direction. As a result you still need to download the damn JDK manually and configure /etc/alternatives too. The best guide for that is at askubuntu.  I didn't expect to get far forward after changing to Oracle JDK, and once again I wasn't disappointed.

f you want to install TIZEN-SDK, you must install "gtk2-engines-pixbuf" "ia32-libs"  package(s).

Why they can't just make a plugin for eclipse or netbeans is beyond me.  So what happens after adding the dependencies? this:
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.swt.widgets.Display
        at org.eclipse.swt.widgets.Widget.isValidSubclass(Unknown Source)
        at org.eclipse.swt.widgets.Decorations.checkSubclass(Unknown Source)
        at org.eclipse.swt.widgets.Shell.(Unknown Source)
        at org.eclipse.swt.widgets.Shell.(Unknown Source)
        at org.eclipse.jface.window.Window.createShell(Window.java:487)
        at org.eclipse.jface.window.Window.create(Window.java:430)
        at org.eclipse.jface.window.Window.open(Window.java:790)
        at org.tizen.installmanager.ui.InstallManagerWindow.main(InstallManagerWindow.java:743)
        ... 5 more
Surprise, surprise, the installer is looking for eclipse. Now show me where in the tizen installation guide it says that eclipse is a requirement? or that tizen should be installed as part of eclipse? This error is probably caused by the fact that my version of Eclipse is juno and as such was not installed using apt. Ubuntu 12.04 by default provides only Eclipse 3.7. I suppose installing eclipse through apt ought to fix it but Tizen can wait.