기록 저장소
[Java#1] Java Setting 본문
[ java setting ]
2. 환경변수 설정 ( 내컴퓨터 속성 >> 고급시스템설정 >> 고급 >> 환경변수 >> 시스템변수)
* 시스템 변수는 일반적으로 대문자로 사용함(소문자가 안되는건 아님)
> 새로만들기
변수이름 | 값(경로) | |
2-1 | JAVA_HOME | C:\Program Files\Java\jdk1.8.0_202 |
2-2 | CLASSPATH | . |
> 편집
변수이름 | 값(경로) | |
2-3 | PATH | %JAVA_HOME%\bin; -- 기존 경로 앞에다가 붙이기 |
3. 설정 확인 CMD
> java -version
>java -version
C:\Users\Administrator>java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
> javac
>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 used
-classpath <path> Specify where to find user class files and annotation processors
-cp <path> Specify where to find user class files and annotation 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 compilation is done.
-processor <class1>[,<class2>,<class3>...] Names of the annotation processors to run; bypasses default discovery proce
ss
-processorpath <path> Specify where to find annotation processors
-parameters Generate metadata for reflection on method parameters
-d <directory> Specify where to place generated class files
-s <directory> Specify where to place generated source files
-h <directory> Specify where to place generated native header 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
-profile <profile> Check that API used is available in the specified profile
-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
-Werror Terminate compilation if warnings occur
@<filename> Read options and filenames from file
'kitri 노트 > java' 카테고리의 다른 글
[Java #6] 조건문_switch (0) | 2019.03.14 |
---|---|
[Java #5] 조건문_if (0) | 2019.03.14 |
[Java #4] Operator (0) | 2019.03.12 |
[Java #3] variable & primitive type (0) | 2019.03.11 |
[Java #2] Java 파일 실행방법 & 주석 (0) | 2019.03.08 |