You are on page 1of 9

Tabl

eofCont
ent
s
A) Downl
oad“
AdvJav
aJDBC.
zip”f
il
ewhi
chsentt
owhat
sappgr
oup,
fol
l
owsf
oll
owi
ng
st
eps. 2
B) Cr
eat
e“st
udent
.accdb”f
il
easf
oll
ows: 2
1) OpenMi
crosof
tAccessappl
i
cat
ion,
openf
il
eandandsel
ectnewopt
ion.Seei
mage,2
2) Gi
vet
he“
student
.accdb”namet
odbf
il
e.SeeI
mage. 3
3) Addnewtabl
eandgi
vent
hename“
student
”toi
t.Addt
hreecol
umnst
othi
stabl
eas
showni
nbel
owf i
g. 3
4) AddSt
udentRecor
dst
oSt
udentTabl
easshowni
nfol
l
owi
ngf
ig. 4
C) Cr
eat
eJav
aJDBCAppl
i
cat
ionasf
oll
ows: 4
1) Sel
ectt
heJav
a->Jav
aAppl
i
cat
ionwhi
l
echoosi
ngpr
oject
,seeI
mage 4
2) Giv
ethenameasy
oulike,
her
ewehav
egi
venJdbcDemo.Andcl
i
ckonf
ini
shbut
ton.
Seeasshowni
nbel
owfig. 5
3) I
twi
l
lcr
eat
etheJdbcDemocl
asswi
thempt
ycode.Seebel
owf
ig. 5
4) Createthest
udent
.accdbfi
l
eandcopythi
sfil
einPr
ojectf
older
,her
eit
s“JdbcDemo”
fol
derbecausewearecreat
ing“
JdbcDemo”Pr
oject. 6
5) I
mpor
t“j
ava.
sql
.*
”packagei
npr
ogr
am,
andwr
it
ethepr
ogr
am asshowni
nbel
ow
I
mage. 6
6) Got
o“Libr
ari
es”Fol
deri
n“JdbcDemo”Pr
ojectandr
ightcl
i
ckandsel
ect“
Add
JAR/
Fol
der
”opti
onseebelowtwofigur
e. 7
7) Got o“c:”andsel
ect“
ucanaccess”f
olderseebel
owf
ig.Pat
hshoul
dbe:
“C:
\ucanaccess”. 8
8) Sel
ectal
lthejarf
il
espr
esentin“ucanaccess”f
older
,andpr
essopenbut
ton.Please
makesurej
arfi
lesshoul
dbeallasshowni nbelowfi
gure.Andi
tshoul
dbe5jarf
il
es. 8
9) Al
lthesel
ect
edj
arf
il
esar
eli
stedi
nPr
oject“
Libr
ari
es”f
older
.Seebel
owf
igur
e. 9
10) Runt
hePr
ogr
am y
oucanseebel
owout
put
. 9
A)Download“ AdvJav
aJDBC.
zip”f
il
ewhi
chsentt
owhat
sappgr
oup,
fol
lowsfol
lowingst
eps.
 unzi
p“AdvJav
aJDBC.
zi
p”zi
pfi
l
e.

 Afterunzi
py oucanseetwozipfil
es.Fi
rstis“
JdbcDemo.zip”i
tstheprogr
am of
j
dbcDemoandsecondi s“ucanaccess.
zip”
,Unzi
p“ucanaccess.
zip”f
il
eitcont
ains
“ucanaccess“fol
der.

 Copy“ucanaccess”f
oldert
oPat
h:“
C:\
ucanaccess”
.Makesur
ethi
sfol
dercont
ains
5jarf
il
es.

 (
Thi
sst
epsi
sforf
ir
stt
imewheny
oust
artt
owor
kwi
thj
dbc.I
tsnotf
oral
lpr
ogr
ams)

B)Cr
eat
e“st
udent
.accdb”f
il
easf
oll
ows:
1)OpenMi cr
osof
tAccessappl
icat
ion,
openf
il
eandandsel
ectnew
opt
ion.Seeimage,
2)Gi
vet
he“
student
.accdb”namet
odbf
il
e.SeeI
mage.

3)Addnewtabl
eandgiventhename“st
udent
”toi
t.Addt
hreecol
umns
tot
hist
ableasshowninbelowfi
g.
4)AddSt
udentRecor
dst
oSt
udentTabl
easshowni
nfol
lowi
ngf
ig.

C)Cr
eat
eJav
aJDBCAppl
icat
ionasf
oll
ows:
1)Sel
ectt
heJava-
>JavaAppl
icat
ionwhi
lechoosi
ngpr
oject
,seeI
mage
Fi
gur
e.1

2)Gi
vethenameasyoul i
ke,her
ewehavegi
venJdbcDemo.Andcl
ick
onfi
nishbut
ton.Seeasshowninbel
owfi
g.

3)I
twi
llcr
eat
etheJdbcDemocl
asswi
thempt
ycode.Seebel
owf
ig.
4)Creat
ethestudent
.accdbf
il
eandcopythisf
ilei
nPr oj
ectf
older
,here
i
ts“JdbcDemo”fol
derbecausewearecreat
ing“JdbcDemo”Project
.

5)Impor
t“java.sql
.*
”packagei
npr
ogr
am,
andwr
it
ethepr
ogr
am as
showninbelowImage.
6)Goto“Libr
ari
es”Fol
derin“JdbcDemo”Proj
ectandri
ghtcl
ickand
sel
ect“AddJAR/Fol
der”opti
onseebelowtwofigur
e.
7)Goto“c:\
”andselect“ucanaccess”f
olderseebel
owf
ig.Pat
hshoul
d
be:“
C:\ucanaccess”
.

8)Selectal
lthejarfil
espr
esentin“ucanaccess”f
older
,andpr
essopen
button.Pleasemakesur ejarf
il
esshouldbeallasshowninbel
ow
fi
gure.Andi tshoul
dbe5j arfi
l
es.
9)Alltheselect
edj
arf
il
esar
eli
stedi
nPr
oject“
Libr
ari
es”f
older
.See
belowfigure.

10)Runt
hePr
ogr
am youcanseebel
owout
put
.

You might also like