[Java] JDK 설치
다음은 Windows 7 Professional K - 64비트에서 테스트되었습니다.
JDK 는 사용 목적에 따라 Java EE, Java SE, Java ME 등으로 제공되는데 Java SE 버전을 사용하기로 한다.
http://java.sun.com 에서 JDK를 다운로드 받을 수 있었는데 아시다시피 오라클이 SUN을 인수하여 http://www.oracle.com/technetwork/java/index.html 로 전환되는 것을 볼 수 있다.
다운받은 설치파일을 실행하여 JDK설치를 시작한다. 이때 설치경로를 바꿀 수 있지만 디폴트로 설치하겠다.
Window + R (실행) 을 눌러 입력 창에 cmd 를 적고 엔터를 누르면 까만 명령창을 볼 수 있다. 이때 명령창에서 컴파일하고 실행하려면 자바 bin 폴더를 Path에 등록해야 하는데 IDE(이클립스 등)를 사용할 것이라면 굳이 등록 할 필요가 없다.
그럼 확인을 위해 먼저 jdk 가 설치된 경로로 이동하자. 필자는 자바가 설치된 C:\Users\jypark>cd C:\Program Files\Java\jdk1.6.0_43\bin 으로 이동하겠다. 이후 명령창에 다음과 같이 실행하여 다음과 같은 화면이 나오면 정상적으로 설치된 것이다.
C:\Program Files\Java\jdk1.6.0_43\bin>javac
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are u
sed
-classpath <path> Specify where to find user class files and annotati
on processors
-cp <path> Specify where to find user class files and annotati
on processors
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compil
ation is done.
-processor <class1>[,<class2>,<class3>...]Names of the annotation processors t
o run; bypasses default discovery process
-processorpath <path> Specify where to find annotation processors
-d <directory> Specify where to place generated class files
-s <directory> Specify where to place generated source files
-implicit:{none,class} Specify whether or not to generate class files for
implicitly referenced files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
C:\Program Files\Java\jdk1.6.0_43\bin>java -version
java version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
C:\Program Files\Java\jdk1.6.0_43\bin>
자 이제 설치가 되었으면 자바의 세상으로 고고씽하자~!!!!