Rather, if we are running our application with just java then make sure correct version of JDK is installed but if we are running our application using the JRE then make sure you provide the full path of the JRE /Library/Internet Plug-Ins/JavaAppletPlugin. This way, we don't to remove the JDK1.6 from our system.As I stated above that JRE can be found from the path /Library/Internet Plug-Ins/ugin/ and in postscript I initiated my application using command /Library/Internet Plug-Ins/ugin/Contents/Home/bin/java As per my requirements, I never had to set the JAVA_HOME.As we remove or upgrade the JDK from the system, java -version command shows the results accordingly.By default, the command java -version would always show the latest JDK installer on the system. ![]() They can be found from directory /Library/Java/JavaVirtualMachines/. We can have two or more versions of JDK on the same system.The command java -version wouldn't show any thing until you have installed JDK.As we upgrade from JRE 7 to JRE 8, the earlier version gets overridden from the system.glitches and other bugs specific to running Android Studio on Yosemite. On a Mac machine, either JRE 7 or JRE 8 can be installed into the default location which is /Library/Internet Plug Ins/ugin/. On Mac OSX, the version of Java used to run the IDE is generally chosen for you.I have observed the behavior of the installations of the JDK/JRE for Java 7 & 8 on Mac OS X 10.10(assuming this should go well with Mac OS X 10.7.3 and later, when Mac OS started supporting java 7 and later).Note: The below points should be read keeping into mind that they are tested with Mac OS X 10.10.2 and Java 7 & 8. sudo unlink /System/Library/Frameworks/amework/Versions/CurrentJdk. ![]()
0 Comments
Leave a Reply. |