Installing JDK is first step in learning Java Programming. If you are
using Windows 8 or Windows 7 Operating System, than installing JDK is quite
easy as you just need to follow instruction given by Java SE Installation
wizard. Only thing which requires some attention is, choosing correct JDK
installer based upon, whether you are running with 32-bit or 64-bit Windows 8
or Windows 7 OS. JDK 7 is latest Java version but JDK 6 is still most popular
in software and programming world. You can choose to install JDK 7 or JDK 6 based
upon your course material. In this Java tutorial, we will learn how to
install JDK 7 in Windows 8 operating system by following step by step
guide. Another thing, which is part of JDK installation is setting
PATH for Java in Windows 8, this will enable to run javac and java
command from any directory in Windows 8. See that link for step by step
guide on setting PATH in Windows 8. Though, I will use Windows 8 operating
system to install JDK 7, You can still install JDK 6 or 7 in Windows 7 by
following those steps. In order to choose correct JDK installer, we first need
to check if Windows is running with 32-bit or 64-bit Windows 8. For that you
can go to Control Panel-->System and Security and check System
Type, if it shows 32-bit operating system means you need Windows x86 Java
Installer, if it shows 64-bit operating system than you need Windows x64 Java
Installer. Let's see steps involved to install JDK 6 or JDK 7 in Windows 8
operating system.
Steps to install JDK 7 in Windows 8
Here is step by step guide to install JDK 7 on Windows 8, both 32-bit and
64-bit version. You can also install JDK
6 both x86 and x64 installer on Windows 7 by following these steps. Just
remember that Windows x86 is used for 32-bit Windows 7 or Windows 8 and x64
installer is used for 64-bit Windows 7
or 8.
1. Find
if Windows 8 is 32-bit or 64-bit.
As describe in first paragraph, you can find if Windows 8 or Windows 7 is
32-bit or 64-bit by checking System Type in Control Panel-->System
and Security-->System and then looking at System Type Properties.
2.
Download correct JDK 7 installer from Java download sites
Go to Java SE download site http://www.oracle.com/technetwork/java/javase/downloads/index.html
and select Java Platform (JDK) 7u13, which is latest Java SE release.
Choose Windows X86 installer (marked as green) if you are running 32-bit Windows 8 or
choose Windows x64 Java installer (marked in red), if you are running with 64-bit Windows 8
Operating system.
3.
Install JDK by double clicking on Windows installer
Once you download correct JDK installer, rest of installation is like
installing any other Windows based application. Just follow Instruction given
by Java SE Installation Wizard. Good thing is that now JavaFX is included as
part of JDK 7, so you don't need to separately install JavaFX.
4.
Include JDK bin directory in Windows 8 PATH environment variable.
Once JDK Installation is complete, you can see JDK directory in C:\Program
Files\Java\jdk1.7.0_13\. This is default JDK installation directory and
Installation wizard install Java here, if you haven't changed it during
installation. In order to compile Java code from any directory in your Windows
8 or Windows 7 machine, you need to include C:\Program
Files\Java\jdk1.7.0_13\bin directory in PATH environment variable. This is called setting PATH for Java. See this step
by step Java programming tutorial to set PATH for JDK 7 in Windows 8.
That's all on How to install JDK 7 in Windows 8 operating system.
As I said, You can follow same steps to install JDK on Windows 7 as well. In
order to verify JDK installation, just type javac command in command prompt, if
you don't see error 'javac'
is not recognized as an internal or external command, it means JDK is
installed and ready to use. Now, it's time to create your first Java program,
See this tutorial to write Helloworld
in Java. In order to learn more about PATH and Classpath see following tutorials :
Tidak ada komentar:
Posting Komentar