While working with Ionic and PhoneGap or let’s say anything related to Cordova, I ran into an error requiring Java JDK 1.8 which is required to run the build command. It took a bit of searching to find a concise explanation of how this is done on Mac OSx High Sierra.
The Steps
First find the proper Java Development Kit which is a little confusing because the original error referred to installing JDK 1.8 which which is actually JDK8. Install the following through the standard .dmg method. I found the download here:
Java for OS X 2015-001 is what you need. Of course, the download page still refers only to 10.7-10.11. Set Java Version On MacOS High Sierra April 9. It took a bit of searching to find a concise explanation of how this is done on Mac OSx High Sierra. To installing JDK 1.8 which which is actually JDK8. Install the following through the standard.dmg method. I found the download here. On my High Sierra Mac. Java -version gives. Java version '1.8.0172' Java(TM) SE Runtime Environment (build 1.8.0172-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode) but in Oracle's documentation and list of downloads I see references to versions. Blog post:- Software Download: - -.
Apple's MacOS High Sierra update offers lots of behind-the-scenes changes that should make the Apple's desktop OS easy to use. High Sierra might disappoint those looking for whizzy new features.
![]()
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Next you want to see which version(s) of Java you have available, you can do this with the following command which returned the two versions listed below for me. By default I was using the 9.0.4 version.
Once we have these listed, we can use the following to install the version we want to use. Notice the use of the version listed above. Also notice that the statement uses the back tick not a single quote (found with the tilde).
Now we can run the following command to see which Java version is running on our system.
![]()
Which should return something like this:
ConclusionDownload Mac Os High Sierra From Apple
Again, it seems pretty straight forward and it is but before some research it was still a little unclear. This will last until you reboot your computer and will revert back to the default Java version. I think this is good practice so that anything using the default version can use it and I can switch the version when I’m in code mode developing apps.
Download Mac Os Free
Feel free to ask questions or offer comments below!
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |