In this video I want to show you how to instal
IntelliJ IDEA on a Linux platform, so I'm gonna
go through the installation and configuration.
Now if you're on a Windows machine
or Mac machine, I've got videos
for those operating systems on this channel
so refer to those videos if you're running
either of those operating systems.
But if you're on a Linux machine and you're ready
to get IntelliJ IDEA installed, let's get started.
(upbeat music)
Alright so we're gonna go ahead
in this video and instal and configure
IntelliJ for the Linux platform.
So we're gonna go and open a browser again.
And we need to go to "jetbrains.com".
JetBrains is the company that have created
this IntelliJ IDEA product.
Once you arrive on the website,
hover over the tools menu, come down here
to IntelliJ IDEA,
click on "download".
I'm gonna close down this little cookies popup.
And you've got two options here to download IntelliJ.
We've got the community edition
and also got the ultimate edition.
Now the community edition is free and open-source
and that's going to be the one
that I recommend to use, but there's also
this option, if you're a professional programmer,
to use the ultimate edition.
And that's actually commercial software
and you will get a free trial but you'll
need to buy this at some point.
By default, the ultimate edition gives you
30 days to trial it but the community edition,
which is free, is going to be the one
that I recommend you download and use.
So I'm going to click on "download".
I'm going to save that, which will go to downloads folder.
Alright, we should be able to see
that's downloading so we'll just give that
a moment to finish and by the way,
the ultimate edition has got lots of
extra tools and capabilities.
And as I mentioned, it's aimed at professional developers
so there may be a reason down the line,
if you're just starting out with Java, to buy it.
But certainly now you can start off as I've done here
and download the free community edition.
Alright, so I'm going to pause the video now
and we'll come back once the download has completed.
Alright, so as you can see now,
the download has completed.
So I'm going to close down this browser.
We no longer need that and what I'm going to do,
you can go to the command line
if you want to unzip it that way.
I'm just going to go to the file manager
and I'm gonna go into the downloads folder.
And I'm just gonna right-click the IDEA,
download the file that we downloaded,
and I'm going to click on extract here.
And that will automatically extract the contents out.
You can see that we've now got a folder there now.
And what I'm going to do is move that into another folder.
Now, you can actually move the files
wherever you like but what I'm going to do
is create a sub-folder off my home folder
called software and put IntelliJ in there
as a sub-folder, but it's up to you
as to which or where you would like to place it.
So to do that I'm just gonna right-click that.
I click on "move to",
and I'm gonna go to my home folder, parallels in this case,
and I'm going to create a new folder first.
I'm going to call it "software", create.
I'm going to put the folder in there
so I click on "select" and if we go to have a look now
go back to home and have a look in software.
You can see we've got an IntelliJ sub-folder there.
Now again, you can do this from the command line.
I'm gonna right-click and I click on
open in terminal, that folder.
I'm gonna close down the file manager.
We don't need that anymore.
Okay, we're going to go into the folder there.
It's gonna be in the bin folder.
Go into the IDEA folder first and then
we're going to the bin folder.
And what we're gonna do is run the "idea.sh."
Depending on your installation of Linux
you may have to set the execute attributes
for "idea.sh" but in my case, it's ready to go
so I can just type full stop or period,
forward slash idea.sh and I'm going to
type Space, Ampersand (&)
so that it doesn't type the command window.
And that should start intelliJ now.
And I'm just going to minimise the window for now.
Now you'll get this option when you first instal intelliJ,
or anytime you instal a new version.
It's asking have we got a custom location,
or we can import some configuration options from intelliJ
from a previous installation.
In this case it's a brand new instal,
and you can see "do not import settings"
is automatically selected.
So I'm just going to go with that and click on OK.
And with this Privacy Policy that may or may not pop up,
have a read of that and scroll down to the end
and click on Accept.
This is the Data Sharing option,
if you're happy to send anonymous statistics or data
about the features and plugins used et cetera,
then you can click on "Send Usage Statistics".
I'm going to select "Don't send".
Next we've got the theme that we'd like to use for intelliJ.
We've got Darcula selected by default,
which you can see is a dark background.
I'm gonna select intelliJ with the white background,
but that's a personal preference.
Noting you've also got GTK plus as an option here,
and you can also go into settings at a later time
and override or change those settings anyway.
I'm going to click on next to "Desktop Entry".
Now we do want a desktop entry, you'd normally want that.
In that stage, you're happy to start intelliJ
from the command line like you saw me do.
So I'm gonna leave that default option there checked,
to create a desktop entry.
And obviously you click and check "For all users"
if you actually want
every user to be able to start intelliJ.
I'm gonna leave that off for now.
Click on "Launcher Script".
This gives an option to run intelliJ from the command line.
If you spend a lot of your time in the command line,
it's very useful to be able to just
type ideas space and then a file name and have it open up.
So I'm gonna select that and just check that check box.
You can accept the default location
for where the script would be created.
I'm just gonna leave it on "usr/local/bin",
click on next to "Default plugins".
By default there's a series of plugins,
that intelliJ customise for you.
We're not gonna be using these
and we don't need to make any changes because
they are actually installed anyway.
So if you can see, I'm gonna leave it as is
and click on next to featured plugins.
Here we've got the option to download 3 featured plugins,
or 3 of these we won't be using.
You could instal "IDE Features Trainer" if you wanted to.
But I'm gonna leave that all uninstalled
and click on "Start using IntelliJ IDEA".
We need to enter our authentication details
because I selected the option to create a script
so we can run it from the command line.
So I'm gonna type in my password.
You can see IntelliJ has now started.
So I'm gonna close that down.
Just to confirm now, I can open this up again.
Up here now, if I type IntelliJ.
You can see a couple of letters of IntelliJ,
we've now got our desktop entry.
I can click on that to actually start it in-son-ma like now.
Alright so this is IntelliJ IDEA installed.
We've got a few configuration things
or steps that we need to take still.
Firstly we need to associate the Java development kit so
we need to connect IntelliJ
to the Java development kit that we installed.
So that it can communicate and actually execute
or compile and execute our Java programmes.
To do that we can click on "Configure".
Gonna select "Project Defaults".
Then select "Project Structure".
This gives us this option here.
And depending on your installation of Linux,
it may or may not find the installation.
You can see in this case,
in fact its found the installation.
And if you come down here and click on SDKs,
you can see that it's found
the JDK-11 in the "usr/lib/jvm" folder.
But just in case it isn't found on your system,
I'm going to delete that.
And I'm going to show you the process you would
normally follow to instal it manually.
Okay and back to "Project", you'll have an option down,
there's no other options.
You'll click on New,
select JDK now you'd navigate to the "usr/lib/jvm" and then
whatever the sub folder name is, in this case, JDK-11.
Noting that IntelliJ found that for us, click on OK.
And noting that that's now slightly different,
it does say Java version 11 instead of just 11.
And then the other thing to do here
is under "Project language level",
that should be selected at
the same level as the JDK that we've installed.
So Java version 11, we need to come down here
and make sure this is set to version 11 as well.
And what we're doing there is making sure that the features
of the latest version of Java, 11 in this case,
are going to work in IntelliJ because we've told it
to support those versions,
or that language level if you will,
which is the latest version of Java.
You'll get this little popup,
which'll probably disappear in the future.
It's come up because of the JDK-11 is so new.
Click on Accept in any case and we click on OK.
And we've now configured the Java development kit.
Now there's a few last minute things
that we need to configure,
which are once off settings which makes life
a little bit easier when you're using IntelliJ.
So let's do that before we end the video.
So to do the configuring I'm gonna click on "Configure".
And I'm going to click on "settings".
And come down here and click on
the little triangle to the left of "Editor".
And click it again to the left of "General".
And the first option we wanna click is "Auto Import".
You wanna check both of these boxes,
"add unambiguous imports on the fly" and
"optimise imports on the fly for current projects".
And we'll talk more in later videos
as to what these are doing.
But basically just making life
a little bit easier when you're typing in code.
The next option down here we wanna select is "Appearance".
And you wanna make sure "show line numbers" is checked.
And you can see that that is checked,
and that again makes life a little bit easier
and you'll see that in action in future videos.
And the final option we wanna select down here
is under "Code Folding", click on that.
Then you wanna deselect or uncheck "Imports"
if it's checked.
So that's unchecked for "Imports",
unchecked for "One-line methods",
unchecked for "Closures" and finally,
unchecked for "Generic constructor and method parameters".
So what we're doing here is we're
de-selecting code folding, which is basically saying that
we'll want to see all the code.
We don't want IntelliJ IDEA to hide any of the code.
When you start getting more experienced with Java,
you'll often wanna hide parts of the code
that you're very familiar with.
And that's what this does by default,
but we're turning those options off.
So that early on we get to see all the code,
and we don't have to click extra buttons
to look at that hidden code.
Right so I'm going to click on OK at this point.
And that then saves those settings
and they should be good to go.
And at this point, we're actually completed.
Alright so thanks for watching.
If you've got questions, leave a comment.
If you're ready for the next programing-specific video,
click on the link up here
in the top left hand corner of your screen.
To look at non-coding programing related questions,
click on the link
down the bottom left hand corner of your screen.
Feel free to subscribe by clicking on the link up here.
And I'll see you in another video.