QML Preview compatibility check failed. QML preview is disabled - blackberry-10

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

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/
Right click on qde.app (if you have extension hidden it might just be qde with the momentics icon) and choose Show Package Contents.
Under /Contents/MacOS/ edit the qde.ini file in TextEdit.
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
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.

I've met the same problem with you, I've tried #nonesuchnick 's answer but unfortunately that did not work for me.
And I've similar environment with you: I've got Java 1.7 (the Oracle one) and 1.6 (the Apple one) installed on my Mac (10.8.2).
I resolved my problem via this way:
Delete Java 1.7 completely
Check your NDK installer's md5 to ensure you've got the correct one.
To delete Java 1.7 completely, you'll need to delete the jdk1.7 folder under
/Library/Java/JavaVirtualMachines/
and delete the internet plugin JavaAppletPlugin.plugin under
/Library/Internet Plug-Ins
Then open terminal and type java -version to make sure that your PATH variables is correctly set to your java 1.6 path (I mean the Apple one).
Upon finish this, you can try to uninstall the BB10 NDK and reinstall it, then try to enable the QML Preview, this time it should work.
Reference:
How do I uninstall Java 7 for my Mac?

Related

Mac OS: can't install Eclipse [duplicate]

I have formatted my Mac due to some storage issues. Before this, I used Eclipse in a proper way. Now i have installed the JDK
Then, i have installed Java
Until now everything seems to be correct but when I open the Eclipse installer...
What can I do to fix this? I need to work with this the soon as possible.
Thanks
Eclipse on macOS will not start with Java 14 installed, this is being tracked in Eclipse bug 561273.
Installing Java 8 as well does not help. You need to remove the Java 14 install. You could use the Java 13.0.2 release instead.
Eclipse have determined that the root cause of this issue is a change in Java 14 which is described in this bug report JDK-8238225. The fix for this should be in Java 14.0.1
Update: Eclipse runs fine with Oracle Java 14.0.1 so the issue has been fixed.
I also asked this question which was closed, that's why I answer what I have found out: Eclipse will not install on Mac OS Catalina 10.15.4, saying the above error message
Failed to create the Java Virtual Machine.
Deinstalling jdk and install an older one wouldn't help on its own because Eclipse is refusing to install in the first place (as mentioned above). What I have done:
i´ve installed an JDK with boost (you can try several, mine worked with Version 13)
I edited the installer:
Download the dmg file
convert the dmg-file with "hdiutil convert /dev/disk3s1 -format UDRW -o devimage"
mount the converted dmg-file with: "hdiutil attach -owners on devimage.dmg -shadow"
Edit the /Volumes/Eclipse/Eclipse.app/Contents/Info.plist: there is a section which is commented and there you can try the jdk version. You have to give the full path to the java executable, for example:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin/java</string>
Then my eclipse started from the (already) mounted Eclipse image without complaining
I had the same issue myself a while back. In your Eclipsepedia it provided an example of what the eclipse.ini file looks like when your trying to specify a JVM. So just change the eclipse.ini file and then make sure that you have all of the correct documents in that path to match the example.

Spring STS 3.7.2 "No Java virtual Machine Found" on Mac OS X Yosemite

I have been using Spring STS 3.7.2 for a few months on my Mac laptop (Mac OS X Yosemite 10.10.5). But suddenly the STS IDE is not starting up. I suspect that one of the automatic OS update may have changed something, since I noticed that I don't see java any more on my path setting.
I manually added the following entries to my .bash_profile and updated using source command:
export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
But STS stubbornly not working. It keeps giving me the error message in a dialog box:
A java runtime environment (JRE) or Java development kit (JDK) must
be available in order to run STS. No Java virtual machine was found
after searching ....
I am confused. I am able to invoke java from any terminal window, as well as JAVA_HOME environment variable is set.
Any ideas what may be going on?
After quite a bit of searching online, I figured out the problem, and resolved it for myself. It basically boils down to JDK upgrade to versions beyond 1.6.
The following link provided a solution:
https://apple.stackexchange.com/questions/178647/jdk-platform-not-recognized-running-eclipse-or-mvn
Here are the steps:
Revert back to JDK 1.6: Download and install JDK 1.6 from this Apple site: https://support.apple.com/kb/DL1572?locale=en_US
Change the PATH variable to point to the 'bin' directory of where JDK is installed. On my Mac, it was installed at: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
Go to the STS application installed directory and run the command "open -a STS.app". This will open the STS IDE successfully.
Exit STS.
Now, if you want to use Java 8, then change the PATH variable to the Java 8 directory. On my Mac, it was at: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin
Launch the STS app again, and voila!, the problem solved.

eclipse is not installing at all

I've installed jdk-8u65-windows-i586.exe and downloaded the latest version of Eclipse IDE.
When I double click on the eclipse-inst-win31.exe absolutely nothing happens.
MY OS is Windows Vista.
How can I resolve this problem?
Make sure you have a working java sdk in java_home variable - type java - version in cmd prompt
If you don't, reinstall java sdk and eclipse it should start.
Instead of using the Eclipse installer (which is still a rather new part of the Eclipse downloads), just take one of the complete distributions (scroll down below the installer on the download page).
While the installer first needs to download additional pieces from the Internet, those distributions are ready to start developing.

How Do I make the Install4j IDE to upgrade to Java7 instead of Java6

I have upgraded to Java7 recently.
I had my install4j Project file in Java6.
Now in the Install4j IDE, I go to Media wizard and download 1.7 JRE's and select them for Windows. (I have window 7 64 bit.)
But When I go the Installer tab in IDE , where for some of the screens I have my custom code which is compiled in Java7.
It gives an error for the IDE java version lower than the compiled version(for those class files).
The Common Location where is the JRE for 1.6 was downloaded C:\Program Files\Common Files\i4j_jres
But the JREs for 1.7 somehow are never downloaded in the common location.
How Do I make the Install4j IDE to upgrade to Java7 instead of Java6.
Thanks
Sony
We had the same problem as you, so we just swapped out install4j's built-in JRE with the one we used to compile our custom code.
i.e. - replace "C:\Program Files\install4j5\jre" with the jre you use to build your custom actions.
Under General Settings->Java version, change the minimum version to 1.7

JDK on OSX 10.7 Lion

I've instaled the Java for Developer package provided from Apple for 10.7 and java apps are running fine
but eclipse cannot find the JDK root path and I cant either.
Anybody any ideas?
You can download the 10.7 Lion JDK from http://connect.apple.com.
Sign in and click the java section on the right.
The jdk is installed into a different location then previous. This will result in IDEs (such as Eclipse) being unable to locate source code and javadocs.
At the time of writing the JDK ended up here:
/Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home
Open up eclipse preferences and go to Java --> Installed JREs page
Rather than use the "JVM Contents (MacOS X Default) we will need to use the JDK location
At the time of writing Search is not aware of the new JDK location; we we will need to click on the Add button
From the Add JRE wizard choose "MacOS X VM" for the JRE Type
For the JRE Definition Page we need to fill in the following:
JRE Home: /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home
The other fields will now auto fill, with the default JRE name being "Home".
You can quickly correct this to something more meaningful:
JRE name: System JDK
Finish the wizard and return to the Installed JREs page
Choose "System JDK" from the list
You can now develop normally with:
javadocs correctly shown for base classes
source code correctly shown when debugging
On newer versions of OS X you should find ALL JREs (and JDKs) under
/Library/Java/JavaVirtualMachines/
/System/Library/Java/JavaVirtualMachines/
the old path
/System/Library/Frameworks/JavaVM.framework/
has been deprecated.
Here is the official deprecation note:
http://developer.apple.com/library/mac/#releasenotes/Java/JavaSnowLeopardUpdate3LeopardUpdate8RN/NewandNoteworthy/NewandNoteworthy.html#//apple_ref/doc/uid/TP40010380-CH4-SW1
I have just ran into the same problem after updating. The JRE that is downloaded by OSX Lion is missing JavaRuntimeSupport.jar which will work but can wreck havoc on a lot of things. If you've updated, and you had a working JDK/JRE installed prior to that, do the following in Eclipse:
1) Project > Properties > Java Build Path > Select broken JRE/JDK > Edit
2) Select "Alternate JRE"
3) Click "Installed JREs..."
4) In the window that opens, click "Search..."
If all goes well, it will find your older JRE/JDK. Mine was in this location:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
For Mountain Lion, Apple's java is up to 1.6.0_35-b10-428.jdk as of today.
It is indeed located under /Library/Java/JavaVirtualMachines .
You just download
"Java for OS X 2012-005 Developer Package" (Sept 6, 2012)
from
http://connect.apple.com/
In my view, Apple's naming is at least a bit confusing; why "-005" - is this the fifth version, or the fifth of five installers one needs?
And then run the installer; then follow the above steps inside Eclipse.
You can download jdk6 here http://support.apple.com/kb/DL1573
Wish it helps