• Register
Welcome to Kodlogs Q&A, where you can ask programming questions and receive answers from other members of the community. For programmers, by programmers Kodlogs is an open community for anyone that does coding. We help you get answers to your toughest coding questions, share knowledge with your coworkers in private, and find your next IT dream job.

Most popular tags

java program php python javascript c# android r c spring-boot arrays html mysql entity-framework sql-server matlab redirect code program numpy spring asp loop net class quirks-mode internet-explorer-9 internet-explorer machine-learning winforms visual-studio-2010 webpack python-3 python-2 aspnet dataframe pandas jdbc ios eclipse sum loops css cmd tcp math security jquery sockets sql 7 number firebase-authentication aws-organizations amazon-web-services php-7 string-formatting cplusplus visual-studio-2015 net-core net-mvc msbuild extension-methods foreign-keys sql-server-2005 windows-services react-redux reactjs inputstream facebook-graph-api for-loop entity-framework-4 reportingservices-2005 reporting-services mips linear-regression scikit-learn anova deep-learning keras block-device melt reshape2 floating-point webpack-dev-server javascrip 0-lollipop android-5 statsmodels avx indentation-error eclipseide javafx-2 php-not-recognized laravel command-line unit-testing tinyurl atom-editor android-emulator android-studio android-sdk-tools ionic2 cordova jupyter-notebook foobar2k tcplistener net-2 net-4 ole-db-provider windows-10 vagrantfile ggplot2 glmnet jvm-arguments global-variables orm virtualenv atom xls oledb redux webclient prediction headless hyperlink outlook pipeline iis perfect-square objective-c carthage xcode8 compiler-errors numpy-ndarray standard-deviation xampp apple mdf destructor vagrant gettime gmail ioexception heuristics milliseconds reporting cpu npm modx-revolution goldsky modx prevnext javascript-dictionary stack-smashing device-monitor radio-button android-actionbaractivity android-activity android-fragments java-long unqualified-id ora-12154 javc c++ java nullpointerexception runtime-error drjava awt-eventqueue dsx math-pow ajquery nosuchelementexception appcompatactivity jtextfield jpanel inputmismatchexception deque jupyter javafx lvalue junit tensorflow ibm factorial servlet apache boot virtualbox indentation jvm margins 2147483647 xcode firebase plot deployment processor automation socketexception pointers concatenation oracle devices color recursion sequence search date caching expected response directory csv algorithms release collections facebook float figure url expression microsoft sorting sort datetime httpwebrequest cryptography json ajax exe dictionary required windows string variable size dll system exception files x int function random import code 2
0 votes
4 views
Java Development Kit: How To Install And Setup the JDK For A Mac Running OS X
by (320 points)  
reshown by

1 Answer

0 votes
[MUSIC]Good day, good day.Tim Buchalka here, the Aussie Android
Dev Guy, here with another video forall you Android lovers out there.Today's topic, the Java Development Kit,
the JDK, installation andconfiguration of the said package for
the Mac.That's right,
if you've got a Mac this video is for you.Do not despair if you're running
Windows or a Linux machine though,because I have got you covered here at the
Aussie Android Dev Guy's YouTube channel.Click on over here for the Windows video.And click on down there for
the Linux video.And basically it's the same thing
it's been showing in this video whereI'm showing in this video, but
for your relevant platform.Just to save you having to sort of
figure out what differences are betweenthe various platforms.Lot easier if you're doing it on
the machine that you develop on.So without further ado
let's get into this video,the Java development kit installation for
the Mac.First step, we need to go through and
see whether Java's on this machine.To do that, I'm gonna go into
System Preferences on the Mac,and we're looking for a Java icon down
here in the bottom left-hand corner,that's sort of below users and
groups, etc.The fact that there's not one there
tells us that JDK version seven orhigher has not been installed on
this Mac So, what you also needto do then is go into terminal, and
we do that by command and pressing space.Topping the word terminal,
and pressing enter.Now type Java, space, minors version.And, you can see here,
there we've got an error message saying,no Java run time present,
requesting install.Now, you can click on more info.But if we do that, that's gonna give us
the access, or access to java, we wouldactually want the java JDK, so I'm gonna
install that first, by clicking on that.Making sure of it,
then I'm gonna scroll down,I'm gonna click on accept license
agreement, I'm gonna select the JDK,again it's JDK not JRE, so
click on JDK for the Mac version.And we leave that downloading.Now the thing is if we go ahead andjust install that, we're gonna
have problems with Android studio.Android studio is gonna complain and say
it couldn't find a JVM and that's becauseit's looking for the standard java,
version six that normally comes with OSX.So if you are running
a version prior to Yosemite,10.10 OSX, you won't have a problem.But if you are running Yosemite,
you'll find that that won't work.And that's because Apple, in their
infinite wisdom, have removed Java six.But we can get around that,
because there's actually a link here.We've got [INAUDIBLE] screen now,
and we're gonna go to that page, andyou can see the links on the screen.It's also in the description
of this video.So you can go down there and click that.You need to install this version of Java.Now this is version six,you can see [INAUDIBLE] package
installed was the same version.Of Java 6 included in Java and it gives
you the old version that it used to be.This will be fine.This is what Android Studio
needs to run itself,and it'll make more sense in
the Android Studio video.But bottom line is you need both of them,
sowe need to install this JRE,
Java Runtime Edition.For version six firs, and
then we need to install the JDK.So to do that, click over here and
I can see both my downloads are finished.I'm gonna install the Java OS X first,
so click on that.And go ahead and install that.It's only a runtime edition,
you can see that is much smaller.Youprobably can't now because
of the it's covered now.But basically it was only about 60
mega and the JDK was about 250 meg.So I'm going to go through and just accept
all the defaults, click on I agree.We always agree to these installation
terms and conditions, don't we?You likely read them religiously, not.Okay I'm going to go ahead and
install this.It may take a moment.Okay we've installed.That's the JRE installed.Close that down.Next, we now need to install the JVK.Just to be clear,we go back to system preferences we
still shouldn't see anything in there.That's because we installed version
six but we need version seven.Sorry, version seven or higher.IN this case we're going to go forversion eight because that's what was
the latest download on Oracle's site.We're going to go through and
install this.Again this is the JDK and we get to
the Android Studio installation video itwill be asking for
the JDK that's version 7 or higher.Then it will make more sense.So it's a bit convoluted,
the process here, especially forYosemite because they didn't
include Java by default.Okay about this stage, we've now got
both versions of the Java JDK andthe JRE installed.Can close those off cuz
I'm finished with them.So now if we go back to System Preferences
we'll see the Java menu.Down here the Java icon I should say.Click on that, I can just go into,
I'll leave that update for now.go back to general.Click on about.and you can see we're now
running version eight.So we've got the right version for
Android studio butwe've also installed the version
six that it needs for the run time.As far as updates, it probably wouldn't
hurt to click on an update butIm not going to do that in this
video just to save you some time Butif you wanted to do that, that would be
fine, but it'll certainly work without it.And, that's a wrap.When I'm done and dusted,we've got our Java development
kit installed and configured.Please subscribe to my YouTube channel,click on the subscribe
button to the left of me.And you'll be able to keep up to date with
the latest videos on app development forAndroid and games development as
soon when I release them Also,please check out the videos again
a little bit further down to my left andthere's probably a video there
that will take your fancy.Click on that and
go straight to that video forsome more Android Apps/Games, goodness.Now speaking of content, please also
leave some comments below on the video.Let me know how much you thought of the
video, but also, perhaps more importantly,let me know what you would like
me to cover in future videos.Because I want to be the number
one premium resource foryou for Android development tips,
tricks, tutorials, and so forth.But in order to do that I
need some feedback from youto know what you'd like me to cover
in future videos, so please do that.And lastly, but by no means least,
drum roll please.Please check out my Android development
course right below me, the big box there.Click on that.25 plus hours of video training.Teaching you, whether you're a beginner,
you've never done literallya line of code before in Android apps,
or you want more experience.There's something in there for everyone.Over 10000 students have already taken
that course, more signing up every day.I'd love to see you in there so
check out that page.And this is Tim Buchalka,
the Aussie Android dev guy signing off,and I'll see you in another video.Cheers for now.
by  
...