Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Local Development Environments!
You have completed Local Development Environments!
Preview
Let's get the Official Oracle Java SE JDK installed on your machine.
Mac specific instructions
- JDK Installation Instructions for Mac
- You might have Spotlight disabled or bound to a different key instead of
cmd
+space
. In this case find Terminal in your applications folder.
Windows specific instructions
- JDK Installation Instructions for Windows
- To copy and paste from a command prompt, click the window icon (>) in the PowerShell window, and choose Edit > Mark, highlight and then choose Edit > Copy.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
All right, so like we talked about,
there are multiple JDKs available.
0:00
We're going to install
the official one from Oracle.
0:05
Now, one thing we should talk about here,
it is more than likely that this
0:08
installation flow is going
to change over time.
0:12
Therefore, what I'm going to
demo here will most likely be
0:15
out of date by the time
you're viewing this video.
0:18
So, please don't be alarmed
if things look different.
0:20
I'm going to do my best to keep things
updated in the teacher's notes.
0:24
And if you find things confusingly
different, please take it to the forum and
0:27
we'll all get things sorted out.
0:31
Okay, so in your favorite search engine,
go ahead and search for Java JDK.
0:34
Great, and there's the first hit here, and
0:38
it's Java SE development kit
8 is what we are looking for.
0:41
Click that.
0:45
Page has a bunch of information on it.
0:47
It's a little strange, but
if you come down here a bit,
0:49
you'll see the development kit and
the current version is 8u45.
0:52
Remember, it's probably gonna be different
by the time you're watching this.
0:56
So the way that this works, you have to
choose this Accept License Agreement.
0:59
So I'm gonna do that right now, and
1:04
then I'm gonna choose I am
running on a Mac currently.
1:05
So you can see here,
you can choose the different types.
1:09
I'm gonna go ahead and
click the Mac version.
1:11
I'm gonna start that download.
1:13
And while that's downloading,
I'm gonna come over here and read what
1:14
we just agreed to, so this Oracle binary
code license agreement for Java SE.
1:18
Okay, so it says, Oracle America
Incorporated for on and all we have.
1:24
No, I'm just kidding.
1:28
Wouldn't that be horrible if
I sat here and read that?
1:29
But, seriously you should read this all.
1:31
It's pretty short.
1:33
It's not that bad.
1:34
One thing that we can we could talk
about here while this is downloading,
1:35
is the fact that there are two different
types of Windows here that are available
1:38
for Microsoft Windows.
1:42
So if you don't know if you're running
the 64 bit or not, go ahead and
1:43
check in the teacher's notes, and
1:46
I have helped you be able to figure
out which version you're running.
1:47
That is, of course,
if you're running Windows.
1:51
Okay, I'll pop right back when
this is done downloading.
1:53
Okay, so that download finished, and
I went and followed the instructions in
1:56
the teacher's notes of this video,
and made sure that I installed things.
1:59
So things have been installed correctly.
2:04
I'm gonna make sure that they
have been installed, and
2:06
I'm gonna do that by
opening up a terminal.
2:09
Mac's and Windows have different
ways of getting to the terminals.
2:12
And since I'm on a Mac,
I'm gonna press Cmd+Space and
2:14
I'm gonna type the word Terminal.
2:17
I'm gonna press Enter, and
that's gonna open up a terminal.
2:18
Great.
2:25
If I was on Windows, I would press Windows
key R, and then I'd type powershell, and
2:26
it would open up a new
terminal over there.
2:31
So since Java's now
been added to our path,
2:34
I should be able to type java -version.
2:37
And it will return back
the version that I just installed.
2:41
And again, remember your version
number here might look different.
2:45
If you don't get this,
try re-opening up a terminal again,
2:49
and if that doesn't work, there's most
likely something wrong with your path.
2:52
Check out the teacher's notes for help.
2:56
Congrats, we now have Java installed.
2:58
Now in order to pass the next exercise,
which wraps up this portion of the course,
3:02
simply copy these results and
paste them into the challenge.
3:06
Here, I'm gonna copy it and show you,
and then I'll see you in the next video.
3:10
So I'm gonna highlight.
3:13
I'm gonna right-click,
and then choose Copy.
3:16
And I'm gonna paste
that into the exercise.
3:19
So see you in a bit.
3:21
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up