Skip to main content

BlackBerry Playbook Simulator 2.1 not working after installing on Ubuntu 16.04 64-bit

I was able to install BlackBerry Playbook Simulator 2.1 on Ubuntu 16.04 64-bit by installing supported libraries, see here.

Running the IDE (/opt/bbndk-2.1.0/bbndk.sh) fails with a message as shown below.

/opt/bbndk-2.1.0/host/linux/x86/usr/bin/../..//usr/qde/eclipse/qde: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

The above message says we don't have libgtk-x11-2.0 libraries. Since the IDE was compiled as i386 we need to install the library like:

sudo apt install libgtk2.0-0:i386

Running the IDE again yields the following error message:
(qde:2418): Gtk-WARNING **: Unable to locate theme engine in module_path: "hcengine",
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xf771179d, pid=2418, tid=4131637376
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode, sharing linux-x86 )
# Problematic frame:
# C  [ld-linux.so.2+0xb79d]
#
# An error report file with more information is saved as:
# /home/y/hs_err_pid2418.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)

What is happening here is that Momentics IDE ships with Java 1.6 runtime but it is not compatible with some of the libraries that comes with Ubuntu 16.04. To fix this install Java 1.9 runtime for i386 architecture, like:

sudo apt install default-jre:i386

The above installation will make Java runtime available in the default path which will override sourcing by the scripts. Running the IDE this time should work but with some minor warnings, like:

(qde:2418): Gtk-WARNING **: Unable to locate theme engine in module_path: "hcengine"

To clean the console message out, do:

sudo apt install gtk2-engines:i386

You should now have a working Momentics IDE!!!

Comments

Popular posts from this blog

The following add-ins could not be started MonoDevelop.GnomePlatform

Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: The following add-ins could not be started: The root of the trace shows MonoDevelop.GnomePlatform,2.8 A quick search shows that MonoDevelop depends on libgnomeui . This should have been part of dependencies when installing the application but well.... Below is the screen shot of the error message. References: http://software.1713.n2.nabble.com/MonoDevelop-and-openSUSE-12-1-td7462957.html [2013/04/09] - Same issue observed in OpenSUSE 12.3 and also the same fix. [2014/11/02] - Same issue observed in OpenSUSE 13.3, mondevelop 3.0.6 and the same fix.

Error! Could not locate dkms.conf file install VirtualBox 4.1.8 on Ubuntu 11.10

Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed properly except that VirtualBox installation was complaining about missing dkms.conf file, see error message below. $: sudo /etc/init.d/vboxdrv setup * Stopping VirtualBox kernel modules [ OK ] * Uninstalling old VirtualBox DKMS kernel modules Error! Could not locate dkms.conf file. File: does not exist. [ OK ] * Trying to register the VirtualBox kernel modules using DKMS [ OK ] * Starting VirtualBox kernel modules [ OK ] Though it looks like installation was fine but I am concerned about its effects to VirtualBox functionality. To fix this, do: $: cd /var/lib/dkms/vboxhost $: sudo rm -r 4.1.4 $: sudo /etc/init.d/vboxdrv setup Of course you have to re