Search code examples
blackberry-10

QML Preview compatibility check failed. QML preview is disabled


I am on Mac 10.8.2, i have both java 1.6 (32/64bit enabled) and java 1.7 on my machine and the JAVA_HOME is pointed to java 1.6, but whenever I try to enable QML previewing in my momentics ide (QNX® Momentics® IDE for BlackBerry® 10 Native SDK, Version: 10.0.9), I get the error in the Title. looked a bit into the log under workspace/.metadata/.log, and it logged the following:

!MESSAGE QML Preview compatibility check log. Error: This Java instance does not support a 32-bit JVM.

How can I get the ide to point to java 1.6? Is it somewhere in the startup script of the application that I can change?

Thanks


Solution

  • QNX Momentics is based on Eclipse, so you should be able to change the JVM used by editing the .ini file for the IDE. If your Momentics is installed in the default location, in Finder navigate to:

    /Applications/bbndk/ide/macosx/x86/eclipse/

    1. Right click on qde.app (if you have extension hidden it might just be qde with the momentics icon) and choose Show Package Contents.
    2. Under /Contents/MacOS/ edit the qde.ini file in TextEdit.
    3. At the top of the file, before -vmargs add the following:

      -vm
      /path/to/your/java/jvm/here
      

      ie.

      -vm
      /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
      
    4. Save the file and launch Momentics, and it should now be using the JVM you specified. Check your workspace/.metadata/.log after the startup to confirm this.