In Eclipse, you can define different JDK versions and specify which one to use by default or for a particular project. Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_51-b16) JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home To use a prior version of the JDK, I would run something like: I could also change the default by changing the appropriate line in. I can easily change the version temporarily by running java_home with an appropriate argument in a new terminal window. This makes my terminals default to the latest JDK 1.8 version I have installed. Here's a function I defined as part of my shell environment to make the utility easier to use:Įxport JAVA_HOME="$(/usr/libexec/java_home -v $1)" It helps you manage multiple versions of Java on OS X. I found mySQL database io particularly noticeable.Ĭheck out the java_home utility.
MAC JAVA 1.8 HOW TO
I'm assuming I need to do something at the Command prompt.Īny advice on how to back out the current JDK would be great, also any confirmation of this problem with this version on a OS X machine would be re-assuring. Re-installing the older JDK does not seem to help and nothing in the Java control panel appears to let you select the default. So - how do I revert the default JDK on my Mac to the previous version. Takes much longer on my Mac with 1.8.0.60 than it does with the previous version.
This only seems to effect my app on OS X, I've tried Windows and it does not seem to occur. I read the release notes for the latest JDK and there were some passing references to DNS. Further tests seem to indicate that any network comms, including the TCP/IP socket connection between jdbc and mysql are experiencing serious delays. 2 days ago I installed the latest JDK on my machine and noticed that the whole application became very sluggish. I run Eclipse and Java on my MacBook Pro.