l Java 설치
u
접속
u
java plaform JDK 다운로드
l
Java SE Development Kit 8u131 운영체제 맞는거 다운로드
l
설치위치 확인
l
명령프로프트 실행
n
Java 입력 후 아래와 같이 나온다면 설치 성공
C:\>java
사용법: java [-options] class [args...]
(클래스 실행)
또는
java [-options] -jar jarfile [args...]
(jar 파일 실행)
여기서 options는 다음과 같습니다.
-d32 사용 가능한 경우 32비트 데이터 모델을 사용합니다.
-d64 사용
가능한 경우 64비트 데이터 모델을 사용합니다.
-server "server" VM을 선택합니다.
기본 VM은 server입니다..
이하생략…
java 명령어는 자바프로그램을 실행시킴
javac 컴파일 할 때 실행시키는 명령어
cmd창에서 javac 실행
후 반응이 없다면
java 설치된 경로로 이동(jdk1
로 이동)
C:\Program Files\Java\jdk1.8.0_66\bin 복사
내컴퓨터 우클릭 > 고급 시스템 설정 > 고급탭 > 환경변수
위에서 복사한 C:\Program
Files\Java\jdk1.8.0_66\bin 를 마지막 영역에 ; 추가후 붙여넣기
C:\>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
이하 생략…
l
환경변수 등록
JAVA_HOME
C:\Program
Files\Java\jdk1.8.0_66
입력 후 확인
댓글 없음:
댓글 쓰기