"리눅스 JDK 버전 확인"의 두 판 사이의 차이

8번째 줄: 8번째 줄:
</source>
</source>


;실행예시
;실행예시 (1.6.0)
<source lang='dos'>
<source lang='dos'>
[root@jmnote ~]# java -version
[root@jmnote ~]# java -version
14번째 줄: 14번째 줄:
OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.25.1.10.6.el5_8-i386)
OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.25.1.10.6.el5_8-i386)
OpenJDK Server VM (build 20.0-b11, mixed mode)
OpenJDK Server VM (build 20.0-b11, mixed mode)
</source>
;실행예시 (1.4.2)
<source lang='dos'>
[root@jmnote ~]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
</source>
</source>



2013년 1월 26일 (토) 01:40 판

리눅스에 설치된 JDK 버전 확인하기
리눅스 JDK 설치 확인

1 방법 1: java

명령어
java -version
실행예시 (1.6.0)
[root@jmnote ~]# java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.25.1.10.6.el5_8-i386)
OpenJDK Server VM (build 20.0-b11, mixed mode)
실행예시 (1.4.2)
[root@jmnote ~]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-51)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

2 방법 2: find

명령어
find / -name jdk1*
실행예시
[root@jmnote ~]# find / -name jdk1*
/opt/jdk1.6.0_30
→ 설치되지 않았다면 결과값 없음.
→ 여러 버전이 설치되었다면 결과값도 여러개 나옴.

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}