Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

기록 저장소

[Java#1] Java Setting 본문

kitri 노트/java

[Java#1] Java Setting

resault 2019. 3. 8. 17:51


[ java setting ]

1. oracle.com >> jdk download >> 설치
2. 환경변수 설정 ( 내컴퓨터 속성 >> 고급시스템설정 >> 고급 >> 환경변수 >> 시스템변수)
    * 시스템 변수는 일반적으로 대문자로 사용함(소문자가 안되는건 아님)

> 새로만들기

변수이름값(경로)
2-1JAVA_HOMEC:\Program Files\Java\jdk1.8.0_202
2-2CLASSPATH.

> 편집

변수이름값(경로)
2-3PATH
%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