📺 Develpreneur YouTube Episode

Video + transcript

Installing Eclipse For Java Development

2023-06-01 •Youtube

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
0.42

foreign

18.89

[Music]

27.119

welcome in this lecture we're going to

29.58

walk through installing the Eclipse IDE

31.56

for our development environment

34.5

so first open up your internet browser

36.719

and go to the website https

40.1

colon forward slash forward slash

45.5

www.eclipse.org forward slash downloads

49.98

so once a page loads look for the get

52.62

Eclipse IDE download button right here

55.44

and go ahead and click it it should

58.32

automatically download the correct

60.059

version for your operating system if it

62.579

does not select download packages to

64.68

select the specific version of the IDE

66.78

for your operating system

69.06

on my windows so I'm going to download

70.74

the x8664

74.22

foreign this will take you to the

76.619

download page go ahead and click

78.36

download

81.54

eclipse is a free foundation so if you

84.72

would like to donate go ahead otherwise

86.82

just wait for the file to download

89.28

and then go ahead and go to the folder

91.68

to install it so we'll go to our

93.78

downloads folder

95.46

so in our downloads folder we have our

97.439

executable Eclipse install JRE win64 go

101.46

ahead and double click it

103.56

now that the eclipse installer has

105.36

opened we now need to select the

107.22

workspace environment that we want to

109.14

install for Eclipse so since we're

112.079

working with Java we want to install the

114.299

IDE for Java developers if we're working

117.479

with websites or building any web

119.579

services we would want the Enterprise

121.14

Java web Developers

123.6

if you're doing C or C plus plus

125.34

development you have two other options

127.2

for that there is one for PHP and many

131.039

other development environments and

133.379

that's kind of the beauty of using

134.64

Eclipse it's an open source tool that

136.92

can be used for just about any type of

139.08

software development all right so we're

141.18

going to select the Eclipse IDE for Java

143.04

we'll start there and we're going to

145.2

change the installation path so we

147.48

actually already have Java 19 installed

150

so we want to make sure we're going to

151.68

see DVD installation languages Java 19.

155.52

that's good so however we want to change

158.34

the install folder to be our development

160.62

path as well so we'll click the little

162.599

folder icon here

164.7

and we're going to go to our BBD folder

168.599

which is going to be C BBD

171.599

so we're going to go into the

172.86

installations folder here

174.599

so inner installations folder we already

176.76

have our languages folder for Java we

179.7

need to create a new folder though for

181.68

our IDE so creating a new folder and

185.04

type IDE

186.78

and we will hit enter

188.94

and we want to go into our new folder

191.159

here IDE

192.72

a

193.4

folder and we're going to come back out

195.959

here

197.34

and we're going to add an additional

199.379

path to our installation we're going to

201.659

now type eclipse

205.68

all right we're going to want to create

206.819

a start menu entry that's up to you and

209.28

create a desktop shortcut so now we're

211.62

going to click install and this will put

213.84

Eclipse into our C BBD installations IDE

217.64

Eclipse folder so we'll click install

222

and next we have our standard user

224.34

agreement license just go ahead and

226.14

click accept

231

once Eclipse has finished installing you

233.34

will get a launch icon so go ahead and

235.62

click launch

237.599

and let's ensure that eclipse is

239.7

installed correctly and will open

242.58

so you should see an eclipse logo and

245.7

you should see some version underneath

247.319

in our case we're using the 2023 marked

251.159

build

252.72

now the first thing it's going to do is

254.519

Eclipse is going to prompt you for a

256.44

workspace this is going to be where all

258.84

your project and files are going to be

260.88

stored on your local file system so like

263.94

before we're going to change this to

265.38

browse

266.58

and we're going to go to our BBD

268.8

directory so it'll be C BBD and we want

272.04

to select code

274.38

and go ahead and click select folder

277.86

so now we have selected RC BBD code

280.68

folder so now anytime we create a new

283.199

group space or make changes to our code

285.3

it will be saved to our working folder

287.72

rcbbd code folder go ahead and also

290.88

check to use this as the default this

293.28

way you won't be prompted to select the

294.9

workspace every time you open up the

296.759

eclipse and go ahead and click launch

301.199

so when Eclipse opens for the first time

303.3

it's going to open you up to the welcome

305.1

screen now this is a interesting little

307.8

page that will give you a overview of

310.02

eclipse it'll kind of walk you through

311.699

creating projects checking out projects

313.979

uh it has some interesting tutorials

316.199

some samples so this is a good place to

318.66

start if you're new to eclipse or just

321.18

new to the Ides in general

324.3

for now I'm going to go ahead and just

326.639

close this window by clicking the little

328.259

X on the tab here

330.66

and now it's going to open up our

332.28

default workspace so we have our little

334.8

package Explorer up here where we will

336.78

see our projects that we're working on

338.9

we have some tabs down here which I'll

341.22

go over later and an outline here which

343.86

will actually show us what is in our

345.78

project

346.919

so the first thing we want to do is we

348.6

want to make sure that eclipse is

350.16

working correctly

352.38

so we need to do two things the first

354.66

thing we need to make sure is that

356.16

eclipse is pointing to the correct Java

358.74

installation path

360.36

so the first thing we need to do is go

362.34

up here under windows

364.919

preferences

367.139

and over here in the tree we want to

369.96

look for Java and expand that and we

373.74

want to look for installed jres so go

376.8

ahead and select that

378.84

let me maximize this

381.539

so under install data ease we see Java

384.72

19

385.979

which is our default it's checked and we

388.74

just want to make sure that the

390.18

installation location is going to be our

392.4

path C BBD installations languages Java

397.199

19.

398.34

sometimes if you don't select your Java

400.74

installation path it will either install

402.72

Java for you or it's going to install a

405.78

default runtime environment not the jdk

408.479

so always check this first under any new

411.36

IDE build or installation that you do

414.6

all right everything looks good here so

416.58

let's hit apply and close

419.34

so now that eclipse is installed let's

421.319

create a new Java project so we can

423.72

click create a new Jump project here or

426.06

we can go under file new

428.759

Java project

431.699

alright so let's create a new Java

434.16

project so our project name is going to

436.68

be Java control statements

447.72

we want to use the default location so

450.18

this will be under C BBD code Java

453

control statements we want to use the

455.759

execution environment JRE so since we

458.699

verified that we have installed Java

461.46

se19 we'll select that

464.34

project layout create separate folders

466.86

for source and class files yes

469.44

leave that checked and then down here

471.599

under modules uncheck create

474.199

moduleinfo.java we don't really need

475.979

that and then click finish

481.319

all right this will create our first

482.88

project here Java control statements we

486

can click the little arrow button here

487.5

to expand it out and you see we have two

490.08

things under our Java control statements

492.18

project we have our JRE system Library

494.699

so it's telling us that this is a Java

497.099

project and we have a source folder

499.979

all right so let's create our first Java

502.199

class in our project all right so we

504.36

want to select our source package right

506.46

click new

508.02

I'm going to do a new class

511.259

we want to be in the source folder Java

513.779

control statement source for now we do

516.419

not want a package name we'll just do

518.339

default

520.02

uh our name can't be empty but our name

523.26

here is going to be hello world

527.22

so our modifier will be public and none

529.82

superclass by default is object

533.04

we want to check the public static void

535.56

Main and we'll uncheck inherent abstract

538.26

methods

539.7

all right so our code is going to look

540.959

like this we're going to have Source

542.279

folder Java control statement source

545.279

default package blank

547.86

no enclosing types our name is going to

550.38

be Capital H for hello capital W for

553.019

World our modifier is going to be public

555.18

we're going to leave none by default

557.519

leave superclass alone Java Lang object

562.26

and we're going to tell it to create a

564.24

public static void main Force so go

566.76

ahead and click finish

568.92

so now we have our first Java class we

571.38

have public class hello world public

573.3

segloid main string args and it gives us

577.5

a to do just reminding us that we have

579.36

to add some code here in order for our

581.519

class to do something

582.959

so we'll remove this comment and we'll

585.6

add our system.out now one of the nice

588.24

things about using an IDE is it can give

590.58

you shortcuts to help quickly write your

592.92

code so if I do system dot it's going to

596.16

give me a list of all the options or all

598.44

the methods that are available within

600.42

system so I can do system.out

603.48

dot print line so see there's all these

606.3

prints we need print line so we'll

609

select print line

610.98

and I want to add the text hello world

615.54

just like we did in the first Java

617.82

development course

619.86

so now I've added a command to my main

622.44

we can actually now go and run this

624.899

class so to run a class within Eclipse

627.779

you can do it a couple different ways we

630.18

can come up here to little run Icon and

632.88

just click it and it'll run our hello

634.56

world

635.58

we can right click on our class here and

638.399

we can select run as Java application

641.16

or we can right click within the code

643.62

itself and also do run as Java

646.8

application and we'll do that

648.839

so once you've run the program you'll

650.64

see a little console pop-up down here

652.56

that actually gives you your command

655.079

line output in our case Hello World

658.68

so from now on we're going to be using

660.54

Eclipse to create our projects and our

663.6

classes within Java hello this is Rob

667.079

with developmentor also known as

668.76

building better developers wanted to

671.22

announce that we have

672.56

school.developmentor.com feel free to

674.82

check it out if you like any of this

677.04

information any of the content that

678.959

we've sent and you would like to see

680.16

more you can come out you can enroll for

682.26

free we have free courses we've got

684.54

places for you to get better at just

687.18

learning a technology our how to's you

689.88

can work on your business skills we can

691.92

help you with becoming a better

693.36

developer as encoding and things like

695.76

that a lot of the stuff you've seen on

697.44

YouTube we also have out at

699.62

school.development or we just have it a

701.88

little more of a educational format and

704.399

a way for you to track your progress as

706.92

you move forward becoming a better

709.079

developer

719.36

thank you