Mar 17, 2018 - I want to do some programming with the latest JavaFX, which requires Java 8. I'm using IntelliJ 13 CE and Mac OS X 9stackoverflow.com. Bug report submitted to Apple (rdar://10444452) Latest Java updates access plugin instance after destruction, crash FF 8 As of Apple's latest Java updates (Java for Mac OS 10.6 Update 6 and Java for Mac OS X Lion Update 1), Apple's Java plugin can call an NPAPI function on a plugin instance after the plugin instance has been destroyed. I want to do some programming with the latest JavaFX, which requires Java 8. I'm using IntelliJ 13 CE and Mac OS X 9 Mavericks. I ran Oracle's Java 8 installer, and the files look like they ended up at /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk but previous versions are at /System/Library/Java/JavaFrameworks/jdk1.6. Mac games for windows. Not sure why the latest installer puts this in /Library instead of /System/Library (nor what the difference is). But /usr/libexec/java_home doesn't find 1.8, so all the posts I've found on how to set your current java version don't work. I've tried adding a symbolic link to make it look like 1.8 is in the /System/Library. Path, but it doesn't help. /usr/libexec/java_home -V still only lists the old java 1.6. Ironically, the 'Java' control panel under System Preferences shows only java 1.8! Why doesn't Oracle's installer put it where it really goes? And how can I work around this problem? Don't rely on Oracle to install Java properly on your Mac. This will install the latest jdk: brew cask install java If you want to manage multiple versions of Java on your Mac, consider using. UPDATE: Now that Java 8 is no longer the most current version, if you want java 8 install it this way: brew tap caskroom/versions brew cask install java8 To get a list of all older versions of java: brew tap caskroom/versions and then use brew search java. We use since we'd otherwise use the Oracle GUI installer that will likely not install Java properly on your Mac. (Use brew cask install APP to install GUI apps; use brew install APP.) Java is not a GUI app; It should not require 'cask' but at least Oracle is consistent. I'm having the same problem to solve, because I need to install JDK8 to run Android SDK Manager (because it seems that don't work well with JDK9). However, I tell you how I solve all problems on a Mac (Sierra). First, you need brew with cask and jenv. • You can find an useful guide here. Remember to tap 'caskroom/versions' running in the terminal: brew tap caskroom/versions • After that, install jenv with: brew install jenv • Install whatever version you want with cask brew cask install java8 (or java7 or java if you want to install the latest version, jdk9) • The last step is to configure which version to run (and let jenv to manage your JAVA_HOME) jenv versions to list all versions installed on your machine and then activate the one you want with jenv global [JDK_NAME_OF_LIST] You could find other useful informations here on this Github Gist, on this blog and on. If you have several Java versions on your machine and you want to choose it dynamically at runtime, i.e, in my case, I have two versions: ls -la /Library/Java/JavaVirtualMachines drwxr-xr-x 3 root wheel 96B Nov 16 2014 jdk1.7.0_71.jdk/ drwxr-xr-x 3 root wheel 96B Mar 1 2015 jdk1.8.0_31.jdk/ You can change them by modifying the /etc/profile content. Just add (or modify) the following two lines at the end of the file: export JAVA_HOME=YOUR_JAVA_PATH/Contents/Home export PATH=$JAVA_HOME/bin:$PATH In my case, it should be like the following if I want to use: Java 7: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home export PATH=$JAVA_HOME/bin:$PATH Java 8: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home export PATH=$JAVA_HOME/bin:$PATH After saving the file, please run source /etc/profile and it should work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |