I installed JDK 8, when I type in cmd java -version I get 1.8, the browser when run my applet which needs Java 1.8, it says the JRE 1.8 is not available, run this using the latest JDK.
When I check the plugin in browser all point to JRE 7, Chrome and IE. In Java Control Panel I see JDK 8 listed.
I think the likely explanation is that you've installed a 64bit JRE/JDK, but you still have 32bit browsers.
So the browsers just aren't seeing and are unable to use the 64bit plugin.
I had the same issue, and I installed the x86 JDK as well, and subsequently the Java plugin is listed.
Related
I just installed jre-8u72-macosx-x64.dmg from this page, the installation worked well.
However, when I type /usr/libexec/java_home -v 1.8 it returns:
Unable to find any JVMs matching version "1.8".
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
Does anyone know where is Java 1.8 installed?
PS: I need this to install Eclipse IDE for Java Developers, which requires Java 1.8+ VM.
You should install JDK 1.8, currently you are using a JRE. On OS X, installing just the JRE doesn't make it available as the system default available to applications.
As of January 2016, you can download JDK 1.8 for mac from
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Because Oracle tends to change their URLs, that link might go dead. Best to do a web search for "JDK mac" or something similar to find the latest version.
Right after upgrading to Mac OS Yosemite (10.10), my Eclipse won't start anymore. Instead I get
The JVM shared library /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/../jre/lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
I checked java -version and get
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
I search and have found one similar problem Reinstalling Java 7 JDK on OSX. It is suggesting a reinstallation of Java. I am not sure if my problem falls into the same category as his. So, is reinstallation a good way to solve the problem? Any other advice? Thanks!
Go to the link below and download Java for OS X 2014-001
http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
Hopefully after installing it , it will work
Try this https://jdk8.java.net/download.html Java8u20 early Update.
You may change the system version temporarily in the "SystemVersion.plist" located at System > Library > CoreServices.
Edit as root changing ProductVersion to 10.7.3 (or whatever works for you).
Install java.
Don't forget to change it back.
I solved this issue creating those empties folders as root without downgrade using java8 (vers.1.8.0_60-ea):
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk and
/System/Library/Java/Support/Deploy.bundle
Hope it helps...
I installed Java JRE from Oracle: http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jre-8u25-macosx-x64.dmg
Then install the Apple Package: http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
I was able to install eclipse-ide from homebrew cask
brew cask install eclipse-ide eclipse-java
(Please be aware that brew cask installs to ~/Applications not /Applications)
I don't normally use Eclipse, however I was able to get the IDE up and going. I will note that java on the command line is broken, which is new in Yosimite.
Please let me know if that doesn't work. Or if you need some help with Homebrew or Cask
Make sure you are using the 64 bit version of Mac Eclipse I just tried it works flawless
Two cases:
if you already have installed Java 8 and Eclipse Luna e.g. on Mavericks and (intent to) update to Yosemite: just update, it will work fine.
if you do not have Java installed and want to run Eclipse on Yosemite:
install Apple Java 6 files from http://support.apple.com/kb/DL1572
use an Eclipse Version that runs with Java 6, e.g. Kepler from https://www.eclipse.org/downloads/packages/release/Kepler/SR2
That means, if you want to use Eclipse Luna and Java 8, install it while running Mavericks, then update to Yosemite. Do not try to install Java 8 on Yosemite as that at the moment won't work.
What does not work on my Mac is: installing Java 6 and run Eclipse Luna as that needs Java 7 or 8. Installing Java 7 or 8 does not solve the prob as something with the installer seems to be buggy. Should be solved by Oracle in a few days, however.
After upgrading to yosemite, java 6 jdk is no longer available, remember that jdk 6 for mac osx is a 32-bit application, older eclipse releases needs a 32-bit jvm in order to run properly, a 32-bit application cannot run with a 64-bit jvm like java 7 or 8, so you need to install jdk 6 to run those java applications that needs a 32 bit virtual machine. As already posted here you can download jdk 6 from http://support.apple.com/kb/DL1572?viewlocale=en_US&locale=en_US
I am trying to install Netbeans 7.4 on my mavericks mac os system but I get this very strange message at the start of installation :
No JDK found
NetBeans IDE cannot be installed.
Java (JRE) found on your computer but JDK 7 update 10 or newer is required.
Please download and install the latest update of JDK 7 from http://www.oracle.com/technetwork/java/javase/downloads/index.html and restart NetBeans installation.
What is so strange here is that I have already installed jdk 7 update 45 on my system, since I use it to work on projects made with IntelliJ Idea, the other IDE that I use.
Update1 : Here is what java -version gives
Update2 : System Preferences --> Java
Are you sure that you are not confusing jre with Java development tool kit a.k.a JDK. You may have jre but may not have JDK.
Try this and let us know the JDK version .
Open the terminal in OSX and type this -
java -version
I have an Cocoa Xcode application that I am writing and I need to check what Java versions are installed on the user's machine. I know I can check /System/Library/Frameworks/JavaVM.framework/Versions/ and see what folders exist; however, this does not work for Java 7.
When I installed Java 7 on my Mac OS X 10.7.5, it was installed to /Library/Internet Plugins/JavaAppletPlugin.plugin. But this doesn't let me know the version of Java that is installed. If a newer version of Java is installed, I'm assuming it will install to the same place.
If I need to test if Java 7+ JRE is installed on the user's machine, should I just check if the file /Library/Internet Plugins/JavaAppletPlugin.plugin exists? Is there a better way to check?
Although you may have installed Java 7, you should have installed the Apple's Java Mac OS X 2012-006 update before. Having done that (and then installed java 7 again), java -version should tell you java version "1.7.x..."
Determining the Default Version of the JDK
On my work computer, I have Windows 7 x64 with JDK 1.7 installed. I created a project in Netbeans and all went well. I then copied my project onto my home computer that is running Mac OS X 10.6, which is running JDK 1.6. The build fails with an error message about an unsupported major.minor version .51. Googling and searching concludes that it is because of a JDK version mismatch. Oracle does not allow JDK 1.7 to be installed on Mac OS X 10.6, so I am stuck with JDK 1.6 on my Mac.
Is there a way I can take my 1.7 code and get it to build and run on my Mac OS X 10.6 running JDK 1.6? Or is there way I can take my code back to my JDK 1.7 machine and downgrade the compatibility to 1.6? Basically I need the code to run on my work computer and home computer.
Open Project Properties in NetBeans and set the platform and language level to 6 (or 1.6). Then clean and build. You can't use any Java 7 features though. You should be able to do this with your existing Java 7 install on Windows; you shouldn't need to install Java 6.
Alternatively, you can install an unofficial OpenJDK 7 build on your Mac running 10.6. Look here for downloads:
http://code.google.com/p/openjdk-osx-build/
Unless you are using new 1.7 syntax/libraries, you should have no problem building your classes with JDK 1.6
You can also generate 1.6 compatible .class with 1.7 compiler, something like running
javac -source 1.6 -target 1.6 MyClass.java
or if you are using Eclipse, you can set this in a setting dialog.
So the answer is, both ways may work for you.
edit:
corrected my answer.
-source has to be 1.6
Thanks to Stuart Marks for pointing it out!
This will require you to have Java 1.6 installed on you Windows box. There a syntax incompatibilities between 1.7 & 1.6 (as well as some API differences).
In Netbeans, right click the project node and select "Properties". From the properties dialog, select sources. At the bottom of the dialog, you should see "Source/Binary Format", from the drop down, select "JDK 6"
Select "Libraries". At the top of the dialog, you should see "Java Platform", from the drop down, you will need to select "JDK 1.6"
If you can't find it, click "Manage Platforms". Click "Add Platform", browse to where you installed Java 6 (usually in C:\Program Files\Java) and select it. Click "Finish".
Now you should be able to find it
UPDATE
From comments made by "su-", you may be able to get away with simply changing the "Source/Binary Format" option to 1.6