cannot start eclipse neon on macOS Sierra - java

I run a new Mac with OS Sierra Version 10.12.1, installed Java 8.111 which is recognised successfully by the test program and eventually installed eclipse neon 4.2. But when I try to start it, I get the message "To open “Eclipse” you need to install the legacy Java SE 6 runtime". There is a link to the site "https://support.apple.com/kb/DL1572?locale=en_US" dated from July 22 2015 and telling to install java for OSX 2015-01 for the OS 10.7 to 10.11. There is also a link with explanation starting with a warning, that this information is about an older unsupported Java version, Download the latest version of Java for OS X directly from Oracle. There is some information hard to understand ( why should Java 6 be installed, since it is deprecated and even dangerous?)
Since I didn't find any other mean and thought the page was maybe not updated I installed the tool, but the launch eclipse still stops unexpectedly with an error report.
Thanks for ideas to overcome this

Like #greg-449 pointed out, install Java 8 JDK (not JRE) to get Eclipse Neon running on macOS Sierra.
Do not install Java 6. I tried that, and got an error message saying Java 8 is needed.

Related

Cannot Uninstall Apache Netbeans 11.2 on Windows 10

Exception:
java.lang.NoClassDefFoundError:
java/util/jar/Pack200
This error occur when I tried to uninstall Apache Netbeans 11.2. I've tried to uninstall it using Windows' "Add and Remove" setting and CCleaner. Both show same error. I've tried look into other stackoverflow questions regarding this issue but their issues are different from mine.
I had JDK 8 installed and then I installed Apache Netbeans 11.3. After
I wanted to update the JDK and uninstall JDK 8 and install JDK 16. Then
I wanted to update Netbeans and I tried to uninstall Netbeans 11.3, but I
couldn't, I got the same error mentioned above, fix it as follows
1.- Uninstall the JDK 16
2.- Install the JDK 8 again
3.- Uninstall Netbeans 11.3 (this time I got it)

How to set up applications requiring legacy java on El Capitan (OS X 10.11)?

I have a clean install of El Capitan. I have PHPStorm installed on my Macbook Air. When I try to run the application, I get an error that says PHP storm can't be opened because it requires legacy Java SE 6. I've attached an image of the error below.
I had the same problem when I installed Yosemite but I was able to install the legacy java fix (Java for OS X 2014-001) from Apple's website. When I try installing that same java fix I get the following Error:
Java for OS X can't be installed on this disk. A newer version of this package is already installed
Any thoughts and help will be greatly appreciated!
Thanks
Download Java 6 for El Capitan:
Java for OS X 2015-001 Beta
https://support.apple.com/kb/DL1824
I've used Homebrew to install JDK 1.6.0_65:
brew tap homebrew/cask-versions
brew cask install java6
If you have a problem with Java version on OsX Yosemite or El Capitain, you should download bundled Webstorm (or any other IDE from Jetbrains). It's working, I've tried it by myself.
https://www.jetbrains.com/webstorm/download/
And yes, this is not a programming related question, but it's an IDE for programming and when you come to work at morning and you can't code — that's problem — and you don't care if it's related ;)
i changed version to 1.8 here in below instructions and PhpStorm is now working for me.
At the moment all our products require Apple JDK 1.6 to be installed in order to run on Mac. JDK 1.7 from Oracle is not officially supported yet and has known problems that stop us from using it by default. Oracle JDK 1.7.0_40 has added support for Retina and works much better than previous versions on Mac. You are welcome to give it a try in case you have any problems with Apple JDK.
To force running under JDK 1.7 edit /Applications/.app/Contents/Info.plist file, change JVMVersion from 1.6* to 1.7* :
JVMVersion
1.7*
Open Terminal.app and write sudo nvram boot-args="rootless=0" + return
Reboot
Install Java from https://support.apple.com/kb/dl1572?locale=en_US
This will install Java 6, 7 and 8. Enjoy!

Running Eclipse on Mac - JVM Version 1.7 or greater is required

I downloaded Eclipse (specifically that for C/C++ Programming) for Mac, running OSX Mavericks. When I try to start Eclipse, it gives me this message: "Version 1.6.0_65 of the JVM is not suitable for this product. Version 1.7 or greater is required", and it doesn't open. I installed Java version 7, but nothing changed. I don't know how else to update the JVM (I don't know much about Java in general).
I downloaded the 64-bit version for my MacBook Air, if that matters.
Simply Install the JDK 7 or JDK 8, and not just the latest JRE.
Run whereis java in a Terminal. It will normally display something like /usr/bin/java.
Now run java -version. It shows you 'java version 1.6.0_65' or something approaching. This is because Java 7 does not replace Java 6. Java 7 is installed as an Internet Plug-in and can be found in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.
What you need to do is to symlink /usr/bin/java to /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.
Restart Eclipse, or reboot your computer (I don't know how Eclipse manages this), and it should do the trick. :)
I went to oracle downloads and the scrolled one of the several Mac osX links and downloaded jdk-8u73-nb-8_1-macosx-x64.dmg from oracle and that fixed the problem. I don't know why updating java doesn't do the trick.
add this script into 'eclipse.ini' at the top
'/Library/java/JavaVirtualMachines/jdk1.8.0_77.jdk/contents/Home/bin'
Trying to install eclipse, I installed java version 1.6.0_65 as it requested yet still was blocked from finishing the Eclipse install with the error that I needed 1.7 JVM or higher - not true, installing higher didn't work either. I tried installing jdk-8u101-macosx-x64.dmg and that didn't work. So, I tried JDK 7 as advised, sorry no good.
So, to get the Eclipse installer to run with out that java error I had to edit the Info.plist inside the Eclipse Installer. Right click the Eclipse installer and show package contents, then open info.plist in textEdit.app
(Note: So after several tries editing this plist and following methods mentioned elsewhere nothing worked, I found that you have to use the symlink or java alias because java is installed differently now a days as an internet plugin.)
Where you want to make an edit (You should probably Backup the original or you can download it again), under <key>Eclipse</key>, then <array>, delete out what's there and add <string>-vm</string> and this string underneath; <string>/usr/bin/java</string>
Here is what mine looks like.
<key>Eclipse</key>
<array>
<string>-vm</string>
<string>/usr/bin/java</string>
<string>-keyring</string>
<string>~/.eclipse_keyring</string>
<string>-showlocation</string>
</array>
Then save and try running your eclipse installer; this worked for me.
Just running the below command from there terminal worked for me.
brew cask install java
It updated my idk with 1.8, and after that eclipse opens successfully.

Intellij 13 on Mac snow leopard not compiling

I have recently installed java 1.7.0_45 and intellij 13 on snow leopard (10.6.8)
I've been able to compile classes and run java programs from the command line using java 1.7.
Intellij is linked to the java 1.7.0_45 install and code completion and other source functionality is working fine, but when i try to make the project i get the following:
Abnormal build process termination:
2014-01-16 15:16:25.169 java[1467:903] *** NSInvocation: warning: object 0x10871b390 of class 'ThreadUtilities' does not implement methodSignatureForSelector: -- trouble ahead
2014-01-16 15:16:25.171 java[1467:903] *** NSInvocation: warning: object 0x10871b390 of class 'ThreadUtilities' does not implement doesNotRecognizeSelector: -- abort
I've seen the same problem and I think it is due to the incompatibility of JDK7 with Snow Leopard.
Although it is possible to install JDK7 on to 10.6 by getting the OS to misreport the version so that the installer just gets on with it, that workaround has a limited lifespan and this may be it.
Attempting to install JDK 1.7.0_45 and _51 both give the same result for both Intellij 12 and 13 so it looks like this is a dead end for Java on Snow Leopard.
It may be worth the 5Gb download to upgrade to Mavericks since after I did this it all worked. You can avoid Intellij asking for JDK6 on startup by following these instructions.

Informix CSDK install failing

I'm trying to install the Informix CSDK to get the drivers for an ODBC connection using Perl and DBD::ODBC. When running the ./installclientsdk, I'm getting the following error:
Initializing InstallShield Wizard........
Launching InstallShield Wizard........erified.
The wizard cannot continue because of the following error: could not load wizard specified in /wizard.inf (104)
I've read that only open-jdk is available on Ubuntu 11.10 so I went and installed the java version, which is where I'm at now. If I debug, I get:
QJMLException: (error code = 3002; message="java.lang.ClassNotFoundException: sun.beans.editors.BoolEditor")
I've been following this post:
http://ubuntuforums.org/showthread.php?t=1483193
But so far no luck on getting JRE running or the CSDK installed. Any suggestions on this one?
Thanks!
There should be a JVM included with the software, and the installer should use it if it cannot find an appropriate alternative. The question then is whether the JVM bundled with CSDK can run on Ubuntu 11.10. It is certified for Redhat and SuSE, I believe.
Which version of CSDK are you trying to install? Which kernel version and GNU C Library version are in Ubuntu 11.10?
I'm not keen on the '...erified' (as opposed to ...verified) part of the message; it is ominous when such simple messages are not displaying correctly.
I've not installed Informix on Ubuntu sufficiently recently to have any useful recollections of how well it worked. I don't remember any problems, but that could just mean I'm old and forgetful.

Categories