gavd.co.uk

Frail and faltering follower of Jesus

Getting AppMobi to run under Ubuntu

By Gavin Davies

If you’ve tried to get AppMobi XDK working in Ubuntu and failed, try this fix…

I followed the instructions on App Mobi forums (deleted removed link) but no good, still go the permissions error.

What fixed it for me was to set up javaws to use the Oracle version:

\> sudo update-alternatives --config javaws
There are 3 choices for the alternative javaws (providing /usr/bin/javaws).

  Selection    Path                                              Priority   Status
\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
\* 0            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/javaws   1061      manual mode
  2            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javaws   1060      manual mode
  3            /usr/lib/jvm/jdk1.7.0/bin/javaws                   1         manual mode

Press enter to keep the current choice\[*\], or type selection number: 3
update-alternatives: using /usr/lib/jvm/jdk1.7.0/bin/javaws to provide /usr/bin/javaws (javaws) in manual mode.

I was then able to launch XDK.

OpenJDK: great idea, but it bites me every time I use it!

You’ll then need to go to localhost:58888/_emulator/_ide/login.html otherwise it’ll whinge that Chrome isn’t installed even when it is. Poor Linux support.