[MUSIC]
Good day good day it's Tim Buchalka here.
I'm the Aussie android dev guy.
Today's video is all about the Java Development Kit,
the installation and configuration of said software for a Linux platform.
Yes you're in the right place Now do not despair if you're running a Mac or
you're running a Windows machine,
I have got you covered here at the Aussie Android Dev Guy's channel.
Click on over here for the Mac video and down here for the Windows video.
And basically you can do the same thing or we through and follow along and
do the same thing for your platform.
I don't discriminate on this channel.
Yes, I'm that type of guy.
Moving along, today's video,
just to confirm, Java development kit Installation configuration for Linux.
Let's get to it.
Firstly let's check if there's a Java installation already
present on the machine.
So I'm gonna go into Terminal.
And I'm going to type java -version.
And if that came up with a version number That would installed but
in this case no Java.
You can see that, cannot find it.
So we can go ahead, now just a note that if you haven't got Java right,
if it doesn't come up and say something like Java 1.8 I do suggest you do
proceed because Java 1.8 is definitely recommended and not earlier versions.
Okay, so first things first.
We're going to be using the repository set up by the web update 18 for
our ppa repository,
which is just a shortcut to get the commands necessary to do the installation.
So I'm gonna type sudo add dash apt dash repository.
Space ppa:webupd8team/java.
It will prompt you for
a password type in your password,
that's the password for your computer by the way, not some other password.
So I'm pressing Enter there.
You can see that's saying press Enter to continue Once that's done which
you can see it is there now, the next step is to type sudo app dash get update.
That'll chug for another ten or fifteen seconds or so.
Does depend on the speed of your internet connection as well.
And the next command we're going to add is the one that
does the actual installation of Java itself.
That will be pulling the files from the Oracle website.
Okay that's completed, type in sudo apt-get install
oracle-java8-installer.
It's gonna ask me you sure you want to do that.
I can just press enter.
I can type Y and press enter.
And it's gonna ask me to accept the license agreement.
So I'm pressing enter there on that screen.
And moving left over to the left to say yes, I agree to their terms.
The license terms and we should find it'll start downloading.
Now, it's a fairly chunky file that does depend on the speed of your
internet connection as to how fast or how long rather It will take,
let's see it's about 140 megabytes or thereabouts in total.
So once that's done, that will do a final installation for us.
We're gonna check JAVA version to make sure that the Java can be seen and
we got the right version, and
then we're just gonna set up our environment variables and we'll be done.
Okay, so now if we type java -version again, remember last time we got an error.
This time we've now got some success.
You can see now it's showing you on the screen that Java is installed, build 1.
Eight point zero underscore 25.
That might change depending on the time that you're watching.
So when you're watching this,
because obviously Java do update or Oracle update Java on a regular basis.
But the point that I said earlier was you wanna make sure that you are running
one point eight.
So, if you're running an earlier version,
so if this one point eight was a one point seven or something like that.
I do suggest you upgrade to 1.8.
Okay, last thing we need to do is set up the environment variables, and
I think that that's easy as well.
Type sudo apt-get
oracle-java8-set, default Enter.
And oops, I forgot a command there.
After the apt-get I should have the word install because that's what we want to do.
And that's now set up the environment variables.
So we're actually done at this point.
And that's a rest.
We're now done and dusted,
we've got our java development kit installed and configured.
Please subscribe to our YouTube Channel, click on the subscribe button to the left
of me and you'll be up to date with the latest videos on app development for
Android and games development as soon as I release them.
Also please check out the videos again, a little bit further down to my left.
And there is probably a video there that will take your fancy.
Click on that and go straight to that video for
some more Android apps/games goodness.
Now speaking of content, please also leave some comments below on the video.
Let me know what you thought of the video, but also, now perhaps more importantly,
let me know what you'd like me to cover in future videos.
Because I want to be the number one premium resource for you, for Android
development tips, tricks, tutorials and so forth, but in order to do that, I need
some feedback from you, to know what you'd like me to cover in future videos.
So, please do that.
And lastly, but by no means least, please check out my Android development course.
Right below me, there's a big box there.
Click on that, 25 plus hours of video training Teaching you,
whether you're a beginner.
You've never done, literally, a line of code before in Android apps or
you're more experienced.
There's something in there for everyone.
Over 10,000 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 the Aussie Android dev guy, sighing off.
And I'll see you in another video.
Cheers for now.