Detailed Notes
This is an introductory presentation to lead into one of our free classes. (https://school.develpreneur.com/p/free_courses).
You can find out more through our online classes at https://school.develpreneur.com and register for free. Registration will add you to our email list and you will periodically receive coupons for courses as well as notifications of the latest releases.
Transcript Text
foreign [Music] welcome in this lecture we're going to walk through installing the Eclipse IDE for our development environment so first open up your internet browser and go to the website https colon forward slash forward slash www.eclipse.org forward slash downloads so once a page loads look for the get Eclipse IDE download button right here and go ahead and click it it should automatically download the correct version for your operating system if it does not select download packages to select the specific version of the IDE for your operating system on my windows so I'm going to download the x8664 foreign this will take you to the download page go ahead and click download eclipse is a free foundation so if you would like to donate go ahead otherwise just wait for the file to download and then go ahead and go to the folder to install it so we'll go to our downloads folder so in our downloads folder we have our executable Eclipse install JRE win64 go ahead and double click it now that the eclipse installer has opened we now need to select the workspace environment that we want to install for Eclipse so since we're working with Java we want to install the IDE for Java developers if we're working with websites or building any web services we would want the Enterprise Java web Developers if you're doing C or C plus plus development you have two other options for that there is one for PHP and many other development environments and that's kind of the beauty of using Eclipse it's an open source tool that can be used for just about any type of software development all right so we're going to select the Eclipse IDE for Java we'll start there and we're going to change the installation path so we actually already have Java 19 installed so we want to make sure we're going to see DVD installation languages Java 19. that's good so however we want to change the install folder to be our development path as well so we'll click the little folder icon here and we're going to go to our BBD folder which is going to be C BBD so we're going to go into the installations folder here so inner installations folder we already have our languages folder for Java we need to create a new folder though for our IDE so creating a new folder and type IDE and we will hit enter and we want to go into our new folder here IDE a folder and we're going to come back out here and we're going to add an additional path to our installation we're going to now type eclipse all right we're going to want to create a start menu entry that's up to you and create a desktop shortcut so now we're going to click install and this will put Eclipse into our C BBD installations IDE Eclipse folder so we'll click install and next we have our standard user agreement license just go ahead and click accept once Eclipse has finished installing you will get a launch icon so go ahead and click launch and let's ensure that eclipse is installed correctly and will open so you should see an eclipse logo and you should see some version underneath in our case we're using the 2023 marked build now the first thing it's going to do is Eclipse is going to prompt you for a workspace this is going to be where all your project and files are going to be stored on your local file system so like before we're going to change this to browse and we're going to go to our BBD directory so it'll be C BBD and we want to select code and go ahead and click select folder so now we have selected RC BBD code folder so now anytime we create a new group space or make changes to our code it will be saved to our working folder rcbbd code folder go ahead and also check to use this as the default this way you won't be prompted to select the workspace every time you open up the eclipse and go ahead and click launch so when Eclipse opens for the first time it's going to open you up to the welcome screen now this is a interesting little page that will give you a overview of eclipse it'll kind of walk you through creating projects checking out projects uh it has some interesting tutorials some samples so this is a good place to start if you're new to eclipse or just new to the Ides in general for now I'm going to go ahead and just close this window by clicking the little X on the tab here and now it's going to open up our default workspace so we have our little package Explorer up here where we will see our projects that we're working on we have some tabs down here which I'll go over later and an outline here which will actually show us what is in our project so the first thing we want to do is we want to make sure that eclipse is working correctly so we need to do two things the first thing we need to make sure is that eclipse is pointing to the correct Java installation path so the first thing we need to do is go up here under windows preferences and over here in the tree we want to look for Java and expand that and we want to look for installed jres so go ahead and select that let me maximize this so under install data ease we see Java 19 which is our default it's checked and we just want to make sure that the installation location is going to be our path C BBD installations languages Java 19. sometimes if you don't select your Java installation path it will either install Java for you or it's going to install a default runtime environment not the jdk so always check this first under any new IDE build or installation that you do all right everything looks good here so let's hit apply and close so now that eclipse is installed let's create a new Java project so we can click create a new Jump project here or we can go under file new Java project alright so let's create a new Java project so our project name is going to be Java control statements we want to use the default location so this will be under C BBD code Java control statements we want to use the execution environment JRE so since we verified that we have installed Java se19 we'll select that project layout create separate folders for source and class files yes leave that checked and then down here under modules uncheck create moduleinfo.java we don't really need that and then click finish all right this will create our first project here Java control statements we can click the little arrow button here to expand it out and you see we have two things under our Java control statements project we have our JRE system Library so it's telling us that this is a Java project and we have a source folder all right so let's create our first Java class in our project all right so we want to select our source package right click new I'm going to do a new class we want to be in the source folder Java control statement source for now we do not want a package name we'll just do default uh our name can't be empty but our name here is going to be hello world so our modifier will be public and none superclass by default is object we want to check the public static void Main and we'll uncheck inherent abstract methods all right so our code is going to look like this we're going to have Source folder Java control statement source default package blank no enclosing types our name is going to be Capital H for hello capital W for World our modifier is going to be public we're going to leave none by default leave superclass alone Java Lang object and we're going to tell it to create a public static void main Force so go ahead and click finish so now we have our first Java class we have public class hello world public segloid main string args and it gives us a to do just reminding us that we have to add some code here in order for our class to do something so we'll remove this comment and we'll add our system.out now one of the nice things about using an IDE is it can give you shortcuts to help quickly write your code so if I do system dot it's going to give me a list of all the options or all the methods that are available within system so I can do system.out dot print line so see there's all these prints we need print line so we'll select print line and I want to add the text hello world just like we did in the first Java development course so now I've added a command to my main we can actually now go and run this class so to run a class within Eclipse you can do it a couple different ways we can come up here to little run Icon and just click it and it'll run our hello world we can right click on our class here and we can select run as Java application or we can right click within the code itself and also do run as Java application and we'll do that so once you've run the program you'll see a little console pop-up down here that actually gives you your command line output in our case Hello World so from now on we're going to be using Eclipse to create our projects and our classes within Java hello this is Rob with developmentor also known as building better developers wanted to announce that we have school.developmentor.com feel free to check it out if you like any of this information any of the content that we've sent and you would like to see more you can come out you can enroll for free we have free courses we've got places for you to get better at just learning a technology our how to's you can work on your business skills we can help you with becoming a better developer as encoding and things like that a lot of the stuff you've seen on YouTube we also have out at school.development or we just have it a little more of a educational format and a way for you to track your progress as you move forward becoming a better developer thank you
Transcript Segments
foreign
[Music]
welcome in this lecture we're going to
walk through installing the Eclipse IDE
for our development environment
so first open up your internet browser
and go to the website https
colon forward slash forward slash
www.eclipse.org forward slash downloads
so once a page loads look for the get
Eclipse IDE download button right here
and go ahead and click it it should
automatically download the correct
version for your operating system if it
does not select download packages to
select the specific version of the IDE
for your operating system
on my windows so I'm going to download
the x8664
foreign this will take you to the
download page go ahead and click
download
eclipse is a free foundation so if you
would like to donate go ahead otherwise
just wait for the file to download
and then go ahead and go to the folder
to install it so we'll go to our
downloads folder
so in our downloads folder we have our
executable Eclipse install JRE win64 go
ahead and double click it
now that the eclipse installer has
opened we now need to select the
workspace environment that we want to
install for Eclipse so since we're
working with Java we want to install the
IDE for Java developers if we're working
with websites or building any web
services we would want the Enterprise
Java web Developers
if you're doing C or C plus plus
development you have two other options
for that there is one for PHP and many
other development environments and
that's kind of the beauty of using
Eclipse it's an open source tool that
can be used for just about any type of
software development all right so we're
going to select the Eclipse IDE for Java
we'll start there and we're going to
change the installation path so we
actually already have Java 19 installed
so we want to make sure we're going to
see DVD installation languages Java 19.
that's good so however we want to change
the install folder to be our development
path as well so we'll click the little
folder icon here
and we're going to go to our BBD folder
which is going to be C BBD
so we're going to go into the
installations folder here
so inner installations folder we already
have our languages folder for Java we
need to create a new folder though for
our IDE so creating a new folder and
type IDE
and we will hit enter
and we want to go into our new folder
here IDE
a
folder and we're going to come back out
here
and we're going to add an additional
path to our installation we're going to
now type eclipse
all right we're going to want to create
a start menu entry that's up to you and
create a desktop shortcut so now we're
going to click install and this will put
Eclipse into our C BBD installations IDE
Eclipse folder so we'll click install
and next we have our standard user
agreement license just go ahead and
click accept
once Eclipse has finished installing you
will get a launch icon so go ahead and
click launch
and let's ensure that eclipse is
installed correctly and will open
so you should see an eclipse logo and
you should see some version underneath
in our case we're using the 2023 marked
build
now the first thing it's going to do is
Eclipse is going to prompt you for a
workspace this is going to be where all
your project and files are going to be
stored on your local file system so like
before we're going to change this to
browse
and we're going to go to our BBD
directory so it'll be C BBD and we want
to select code
and go ahead and click select folder
so now we have selected RC BBD code
folder so now anytime we create a new
group space or make changes to our code
it will be saved to our working folder
rcbbd code folder go ahead and also
check to use this as the default this
way you won't be prompted to select the
workspace every time you open up the
eclipse and go ahead and click launch
so when Eclipse opens for the first time
it's going to open you up to the welcome
screen now this is a interesting little
page that will give you a overview of
eclipse it'll kind of walk you through
creating projects checking out projects
uh it has some interesting tutorials
some samples so this is a good place to
start if you're new to eclipse or just
new to the Ides in general
for now I'm going to go ahead and just
close this window by clicking the little
X on the tab here
and now it's going to open up our
default workspace so we have our little
package Explorer up here where we will
see our projects that we're working on
we have some tabs down here which I'll
go over later and an outline here which
will actually show us what is in our
project
so the first thing we want to do is we
want to make sure that eclipse is
working correctly
so we need to do two things the first
thing we need to make sure is that
eclipse is pointing to the correct Java
installation path
so the first thing we need to do is go
up here under windows
preferences
and over here in the tree we want to
look for Java and expand that and we
want to look for installed jres so go
ahead and select that
let me maximize this
so under install data ease we see Java
19
which is our default it's checked and we
just want to make sure that the
installation location is going to be our
path C BBD installations languages Java
19.
sometimes if you don't select your Java
installation path it will either install
Java for you or it's going to install a
default runtime environment not the jdk
so always check this first under any new
IDE build or installation that you do
all right everything looks good here so
let's hit apply and close
so now that eclipse is installed let's
create a new Java project so we can
click create a new Jump project here or
we can go under file new
Java project
alright so let's create a new Java
project so our project name is going to
be Java control statements
we want to use the default location so
this will be under C BBD code Java
control statements we want to use the
execution environment JRE so since we
verified that we have installed Java
se19 we'll select that
project layout create separate folders
for source and class files yes
leave that checked and then down here
under modules uncheck create
moduleinfo.java we don't really need
that and then click finish
all right this will create our first
project here Java control statements we
can click the little arrow button here
to expand it out and you see we have two
things under our Java control statements
project we have our JRE system Library
so it's telling us that this is a Java
project and we have a source folder
all right so let's create our first Java
class in our project all right so we
want to select our source package right
click new
I'm going to do a new class
we want to be in the source folder Java
control statement source for now we do
not want a package name we'll just do
default
uh our name can't be empty but our name
here is going to be hello world
so our modifier will be public and none
superclass by default is object
we want to check the public static void
Main and we'll uncheck inherent abstract
methods
all right so our code is going to look
like this we're going to have Source
folder Java control statement source
default package blank
no enclosing types our name is going to
be Capital H for hello capital W for
World our modifier is going to be public
we're going to leave none by default
leave superclass alone Java Lang object
and we're going to tell it to create a
public static void main Force so go
ahead and click finish
so now we have our first Java class we
have public class hello world public
segloid main string args and it gives us
a to do just reminding us that we have
to add some code here in order for our
class to do something
so we'll remove this comment and we'll
add our system.out now one of the nice
things about using an IDE is it can give
you shortcuts to help quickly write your
code so if I do system dot it's going to
give me a list of all the options or all
the methods that are available within
system so I can do system.out
dot print line so see there's all these
prints we need print line so we'll
select print line
and I want to add the text hello world
just like we did in the first Java
development course
so now I've added a command to my main
we can actually now go and run this
class so to run a class within Eclipse
you can do it a couple different ways we
can come up here to little run Icon and
just click it and it'll run our hello
world
we can right click on our class here and
we can select run as Java application
or we can right click within the code
itself and also do run as Java
application and we'll do that
so once you've run the program you'll
see a little console pop-up down here
that actually gives you your command
line output in our case Hello World
so from now on we're going to be using
Eclipse to create our projects and our
classes within Java hello this is Rob
with developmentor also known as
building better developers wanted to
announce that we have
school.developmentor.com feel free to
check it out if you like any of this
information any of the content that
we've sent and you would like to see
more you can come out you can enroll for
free we have free courses we've got
places for you to get better at just
learning a technology our how to's you
can work on your business skills we can
help you with becoming a better
developer as encoding and things like
that a lot of the stuff you've seen on
YouTube we also have out at
school.development or we just have it a
little more of a educational format and
a way for you to track your progress as
you move forward becoming a better
developer
thank you