Ye Lin Kyaw The way of my life.

Blackberry 10 QML Design Mode

I had to try Blackberry 10 native cascade development. I could install QNX Momentics IDE and Blackberry 10 simulator with VMWare Fusion on Mac OSX Mountain Lion. Normally I don’t want to use commercial software, I tired to setup the simulator with VirtualBox. Unfortunately I couldn’t success, VirtualBox got stuck at the starting screen.

IDE and Simulator is working fine on my Mac. But I found that the QML editor is only working on source mode. After finding out several minutes in preferences, I found the option Disable QML Preview is checked under Preferences->Blackberry->QML Editor. After tried to enable the QML Preview, the following message was shown.

QML Preview compatibility check failed. QML Preview is disabled.

Eclipse usually have the log file under workspace/.metadata/.log. The log file shows some errors relating to the JVM.

!ENTRY 1 0 2013-02-03 23:18:25.827 !MESSAGE /usr/bin/java -d32 -cp /Applications/bbndk/ide/macosx/x86/eclipse/plugins/ -target /Applications/bbndk/target_10_0_9_1673/qnx6

!ENTRY 4 0 2013-02-03 23:18:26.015 !MESSAGE QML Preview compatibility check log. Error: This Java instance does not support a 32-bit JVM. Please install the desired version.

Process exited with code: 1

QML simulator was trying to use 64 bits JVM with -d32. Java 7 was installed and used on my computer. Java 7 does not support with -d32 for 32 bits compatible mode. I tried to use Java 6 as default JVM. The QML preview compatibility checking succeeded and the design mode was start working.

comments powered by Disqus