Tutorial Menginstall JAVA Pada Windows
Transcript of Tutorial Menginstall JAVA Pada Windows
-
8/11/2019 Tutorial Menginstall JAVA Pada Windows
1/9
Tutorial Menginstall JAVA pada Windows
Saat ini, java banyak digunakan orang maupun perusahaan-perusahaan yang bergerak dibidang IT. Hal ini dikarenakan Java dapat dioperasikan pada semua sistem operasi yang
ada saat ini. Java merupakan bahasa pemrograman tingkat tinggi yang memiliki
karakteristik simple, object-oriented, distributed, interpreted, aman, dan memilikiperformance yang tinggi. ahasa pemrograman Java merupakan compiler sekaligus
interpreter, dimana sebagai compiler, program yang telah dibuat akan diubah menjadi
java bytecodes dan kemudian sebagai interpreter java bytecodes tersebut dijalankan padakomputer.
Java platform memiliki ! komponen yaitu Java "irtual #achine yang berfungsi sebagai
jembatan antara bytecode dengan hard$are dan Java %pplication &rogramming Interface'Java %&I( yang merupakan komponen-komponen dan kelas java yang telah jadi dan
memiliki kemampuan untuk menangani objek, string, angka, dan sebagainya.
&ada kesempatan kali ini saya ingin sharing kepada pembaca bagaimana cara menginstall
program java pada sistem operasi $indo$s. eberapa syarat penting yang harus diketahui
sebelum menginstall java adalah )
JavaT#S* + elease otes
Microsoft Windows Installation (32-bit)
J/ ocumentation
System Requirements
See supported System 0onfigurationsfor information about supported platforms,operating systems, desktop managers, and bro$sers.
http://eonegaul.blogspot.com/2008/04/tutorial-menginstall-java-pada-windows.htmlhttp://java.sun.com/javase/6/docs/index.htmlhttp://java.sun.com/javase/6/webnotes/install/system-configurations.htmlhttp://java.sun.com/javase/6/docs/index.htmlhttp://java.sun.com/javase/6/webnotes/install/system-configurations.htmlhttp://eonegaul.blogspot.com/2008/04/tutorial-menginstall-java-pada-windows.html -
8/11/2019 Tutorial Menginstall JAVA Pada Windows
2/9
The minimum physical %# is re1uired to run graphically based applications. #ore%# is recommended for applets running $ithin a bro$ser using the Java &lugin.
unning $ith less memory may cause disk s$apping $hich has a severe effect on
performance. "ery large programs may re1uire more %# for ade1uate performance.
This installation re1uires 2indo$s Installer !.3 to be on your machine, or an Internetconnection for it to be automatically do$nloaded. 4or more details, see the
Troubleshooting the Installationsection .
4or the amount of disk space re1uired, see 2indo$s isk Space e1uirements.
Note - The J/ has t$o version numbers -- e5ternal version number '+( and an
internal version number '6.+.3(.
Notes-- Trying to install the J/ on a non-supported version of #icrosoft 2indo$sor on a machine that doesn7t have a sufficiently up-to-date Service &ack $ill cause the
installer to generate this $arning) 82e recommend that you do not install this Java
platform for the follo$ing reasons) This Java platform does not support the operatingsystem or operating-system service pack on this machine.8 See the system
re1uirementsabove for information on supported configurations of #icrosoft
2indo$s.
Installation Instructions
In this procedure, you $ill run the self-installing e5ecutable to unpack and install the
J/ soft$are bundle. %s part of the J/, this installation includes an option to
include the public Java Runtime Environment. 'The J/ also contains aprivateJ* for use only by its tools.(
4or issues related to 2indo$s 9nline Installation and Java :pdate, see the 2indo$s
9nline Installation and Java :pdate 4%;. See this note on &ro5y Settings and
%uthentication.
Troubleshooting- If you have any difficulties, see the Troubleshootingsection at theend of this document or submit a bug reportfor your installation problem.
Note:4or any te5t on this page containing the follo$ing notation, you must substitute
the appropriate update version number for the notation.
http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html#troubleshootinghttp://java.sun.com/javase/6/webnotes/install/windows-proxy-note.htmlhttp://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html#troubleshootinghttp://java.sun.com/javase/6/webnotes/install/windows-diskspace.htmlhttp://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html#requirementshttp://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html#requirementshttp://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html#privatehttp://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/faq.htmlhttp://java.sun.com/javase/6/docs/technotes/guides/deployment/deployment-guide/faq.htmlhttp://java.sun.com/javase/6/webnotes/install/windows-proxy-note.htmlhttp://java.sun.com/javase/6/webnotes/install/windows-proxy-note.htmlhttp://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html#troubleshootinghttp://java.sun.com/webapps/bugreport -
8/11/2019 Tutorial Menginstall JAVA Pada Windows
3/9
4or e5ample, if you $ere do$nloading the installer for update 6.+.3
-
8/11/2019 Tutorial Menginstall JAVA Pada Windows
4/9
installation see the J* Installationpage.
(.&! 'ou want to run )etscape *.+, Mo"illa 1.+, or -ire!o+ 1.+ with Java lugin,do this/
*5it the etscape ?.5, #o=illa 6.5, or 4irefo5 6.5 bro$ser and all of its
8objects8 '#essenger, 0omposer ...(@
If the ;uick Aaunch feature is enabled, disable it@
Then restart etscape ?.5, #o=illa 6.5, or 4irefo5 6.5.
0.pdate the AT2 variable'9ptional(
>ou can run the J/ $ithout setting the &%TH variable, or you can optionally set it as
a convenience.
3hould & set the AT2 variable4Set the &%TH variable if you $ant to be able to conveniently run the J/ e5ecutables
'j/v/.exe, j/v/.exe, j/v/do.exe, etc.( from any directory $ithout having to type
the full path of the command. If you don7t set the &%TH variable, you need to specify
the full path to the e5ecutable every time you run it, such as)
C> "\Program Files\Java\jdk1.6.0_\bin\javac"Mylass.java
It7s useful to set the &%TH permanently so it $ill persist after rebooting.
2ow do & set the AT2 permanentl'4
To set the &%TH permanently, add the full path of the5d1.6.789version:;bin
directory to the &%TH variable. Typically this full path looks something likeC/;rogram -iles;Java;5d1.6.789version:;bin. Set the &%TH as follo$s on
#icrosoft 2indo$s)
a. 0lick 3tart : Control anel : 3'stemon 2indo$s B& or 3tart : 3ettings :
Control anel : 3'stemon 2indo$s !333.b. 0lick Advanced : Environment Variables.
c. %dd the location of bin folder of J/ installation for &%TH in :ser "ariables
and System "ariables. % typical value for &%TH is)
!\Program Files\Java\jdk1.6.0_\bin
&%TH environment variable is a series of directories separated by semi-colons'@( and is not case sensitive. #icrosoft 2indo$s looks for programs in the
&%TH directories in order, from left to right.
>ou should only have one bindirectory for a J/ in the path at a time. Those
follo$ing the first instance are ignored. If one is already present, update it tojdk6.+.3
-
8/11/2019 Tutorial Menginstall JAVA Pada Windows
5/9
the :ser "ariables.
The ne$ path takes effect in each ne$ command $indo$ you open after
setting the &%TH variable.
our computer system should no$ be ready to use the J/. In this step, you7ll run
some simple commands to make sure it is $orking properly.
If you are ne$ to developing and running programs in the Java programming
language, see The Java Tutorialonline for some guidance. ote especially the tutorial
trails under the heading Trails Covering the Basics.
>ou can also do$nload the J/ documentationfrom the J/ do$nload page.
Uninstalling the JDK
If you should ever $ant to uninstall the J/, use the 8%ddFemove &rograms8 utility
in the #icrosoft 2indo$s 0ontrol &anel.
>ocation o! VM >ibrar' -iles ?5vm.dll@
If you use the Invocation %&Ito launch an application directly rather than using theJava application launcher, be sure to use the correct paths to invoke the Java HotSpot
0lient "irtual #achine '"#( or Java HotSpot Server "#, as desired. The path $ithinthe J/ to the Java HotSpot 0lient "# is)
jre2bin2lien2jvm.dll'on 5G+(
The path to the Java HotSpot Server "# is)
jre2bin2server2jvm.dll 'on 5G+(
jre2bin2server2jvm.dll'on I%+(
The corresponding locations in the Java S* untime *nvironment begin $ith jre6.+.3instead of jre. The *5act "# and 0lassic "# are no longer part of the J/, and
e5isting code that uses the Invocation %&I to launch an application based on old paths
to the *5act or 0lassic "#s $ill not $ork.
Troubleshooting the Installation
elo$ are some tips for $orking around problems that are sometimes seen during or
follo$ing an installation. 4or more troubleshooting information, see the Java 4%;.
http://java.sun.com/docs/books/tutorial/http://java.sun.com/docs/books/tutorial/http://java.sun.com/javase/6/docs/technotes/guides/jni/spec/invocation.htmlhttp://java.sun.com/docs/books/tutorial/http://java.sun.com/javase/6/download.jsphttp://java.sun.com/javase/6/docs/technotes/guides/jni/spec/invocation.htmlhttp://java.sun.com/products/jdk/faq.html -
8/11/2019 Tutorial Menginstall JAVA Pada Windows
6/9
If you see the error message con!ig.nt. The s'stem !ile is not suitable !or
running M3B$3 and Microso!t Windows Applications. $hen you try to
launch the installer on #icrosoft 2indo$s !333 then there is a problem $iththe SystemootESystem!E09##%.09# file To resolve the error seethe article at http)FFsupport.microsoft.comFsupportFkbFarticlesF;6!F!F?6.asp.
If you see the error messagecorrupt cabinet !ile then the file you have
do$nloaded is corrupted. 0heck the file si=e against the e5pected file si=e
listed in these instructions. If they don7t match, try do$nloading the bundleagain. % cabinet file contains compressed application, data, resource and AA
files.
If you see the error message 3'stem Error during $ecompressionthen
you might not have enough space on the disk that contains your T*#&
directory.
If you see the error message 8 This program cannot be run in 9S mode.8 then
do the follo$ing)
6. 9pen the #S-9S shell or 0ommand &rompt $indo$!. ight-click on the title bar
. Select &roperties. 0hoose the &rogram tab
K. &ush the %dvanced button
+. #ake sure the item 8&revent #S-9S-based programs from detecting
2indo$s8 is unchecked?. Select 9/
G. Select 9/ again
L. *5it the #S-9S shell63. estart your computer.
rivate vs. public JRE- Installing the J/ installs a private Java S* untime*nvironment 'J*( and optionally a public copy. The private JREis re1uiredto run the tools included $ith the J/. It has no registry settings and is
contained entirely in a jre directory 'typically at C3$ro4r/m
iles3jdk1.6.03jre( $hose location is kno$n only to the J/. 9n the other
hand, the public JREcan be used by other Java applications, is contained
outside the J/ 'typically at C3$ro4r/m iles3/v/3jre1.6.0(, is
http://support.microsoft.com/support/kb/articles/Q142/2/71.asp -
8/11/2019 Tutorial Menginstall JAVA Pada Windows
7/9
registered $ith the 2indo$s registry 'at
H/*>
-
8/11/2019 Tutorial Menginstall JAVA Pada Windows
8/9
interpreter, dimana sebagai compiler, program yang telah dibuat akan diubah menjadi java
bytecodes dan kemudian sebagai interpreter java bytecodes tersebut dijalankan pada
komputer.
Java platform memiliki ! komponen yaitu Java "irtual #achine yang berfungsi sebagaijembatan antara bytecode dengan hard$are dan Java %pplication &rogramming Interface'Java %&I( yang merupakan komponen-komponen dan kelas java yang telah jadi dan
memiliki kemampuan untuk menangani objek, string, angka, dan sebagainya.
&ada kesempatan kali ini saya ingin sharing kepada pembaca bagaimana cara menginstallprogram java pada sistem operasi $indo$s. eberapa syarat penting yang harus diketahui
sebelum menginstall java adalah )
Sistem operasi yang digunakan harus mendukung penamaan file lebih dari G
karakter dan penamaan ekstensi file lebih dari karakter.
Harus tersedia ruang kosong pada hard disk minimal ?33 # untuk instalasi yang
membutuhkan fasilitas ocumentation.
&ada komputer harus terpasang mouse untuk memudahkan pemilihan topik
instalasi maupun instruksi pada fasilitas ocumentation.
&rocessor yang digunakan minimal jenis &entium II atau yang lebih baik.
>ang utama adalah file sistem java yang mau diinstall. 4ile sistem java bisa
diperoleh secara gratis melalui internet pada alamat berikut Java.com
Setelah syarat diatas tadi sudah dipenuhi, proses instalasi dimulai dengan menjalankan
file yang anda do$nload tadi. &ada sistem operasi $indo$s filenya jdk-+-$indo$s-iKG+.e5e yang merupakan sistem Java versi J/ 6.+.3. J/ sendiri merupakan singkatan
dari Java evelopment /it. Instalasi dimulai dari membaca file sumber Java. /emudian,
http://java.sun.com/javase/download/index.jsp -
8/11/2019 Tutorial Menginstall JAVA Pada Windows
9/9
setelah melalui beberapa proses yang singkat, instalasi Java akan menampilkan form
persetujuan. %nda tinggal mengikuti instruksi yang diberikan hingga keluar form untuk
menentukan dimana kita akan meletakkan sistem Java. Saya sarankan untuk menginstallJava pada directory 8c)EJava8. Selanjutnya anda tinggal melanjutkan intruksi yang
diberikan hingga proses instalasi java selesai.
Setelah proses instalasi selesai, Java akan menampilkan form penutup. irectory
8c)EJavaEbin8 berisi file-file yang dibutuhkan untuk mengolah file program java. :ntuk
tingkat dasar kita hanya membutuhkan ! file )
4ile javac.e5e digunakan untuk mengcompile file program java.
4ile java.e5e digunakan untuk menge5ecute file program java yang telah
dicompile.
emikian instalasi Java yang bisa saya jelaskan secara singkat. Semoga bisa bermanfaat
bagi para pembaca yang membutuhkan.