— Scott McNealy, Sun Microsystems Chairman, President and ceo


% Local Combination 100% Remote



Download 40,57 Mb.
Pdf ko'rish
bet536/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   532   533   534   535   536   537   538   539   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)

100% Local Combination 100% Remote
Servlets
HTTP
Web Start 
File Edit View
HTTP
RMI app
File Edit View
RMI
brainbarbell
Brain Barbell
What are the advantages and 
disadvantages of delivering your 
Java program as a local, stand-
alone application running on 
the end-user’s computer?
What are the advantages and 
disadvantages of delivering your 
Java program as web-based 
system where the user interacts 
with a web browser, and the 
Java code runs as servlets on the 
server?
Executable 
Jar
File Edit View


package, jars 
and
deployment
you are here
4
583
Imagine this scenario...
Bob’s happily at work on the final pieces of his cool new 
Java program. After weeks of being in the “I’m-just-
one-compile-away” mode, this time he’s really 
done. The program is a fairly sophisticated 
GUI app, but since the bulk of it is Swing 
code, he’s made only nine classes of his 
own.
At last, it’s time to deliver the program to the 
client. He figures all he has to do is copy the 
nine class files, since the client already has 
the Java API installed. He starts by doing an 
ls
on the directory where all his files are...
Whoa! Something strange has happened. Instead of 18 
files (nine source code files and nine compiled class 
files), he sees 31 files, many of which have very strange 
names like:
Account$FileListener.class
Chart$SaveListener.class
and on it goes. He had completely forgotten 
that the compiler has to generate class files 
for all those inner class GUI event listeners 
he made, and that’s what all the strangely-
named classes are.
Now he has to carefully extract all the class 
files he needs. If he leaves even one of them out, 
his program won’t work. But it’s tricky since he 
doesn’t want to accidentally send the client 
one of his source code files, yet everything is 
in the same directory in one big mess.
What the... ?
It’s 
finally done!



Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   532   533   534   535   536   537   538   539   ...   555




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish