을 찾아 사용 가능한 모든 Jre Mac OS X 에서 Java 응용 프로그램 설치 프로그램

StackOverflow https://stackoverflow.com/questions/63206

  •  09-06-2019
  •  | 
  •  

문제

면 Java 응용 프로그램에 필요한 특정 JRE 버전을 어떻게 확인할 수 있습니서의 가용성 Mac OS X 동안 설치?

도움이 되었습니까?

해결책

그것은 간단해야에서 찾고 있/시스템/라이브러리/프레임워크/JavaVM.framework/전/

E.g.에서 내 컴퓨터:

manoa:~ stu$ ll /System/Library/Frameworks/JavaVM.framework/Versions/
total 56
774077 lrwxr-xr-x  1 root  wheel    5 Jul 23 15:31 1.3 -> 1.3.1
167151 drwxr-xr-x  3 root  wheel  102 Jan 14  2008 1.3.1
167793 lrwxr-xr-x  1 root  wheel    5 Feb 21  2008 1.4 -> 1.4.2
774079 lrwxr-xr-x  1 root  wheel    3 Jul 23 15:31 1.4.1 -> 1.4
166913 drwxr-xr-x  8 root  wheel  272 Feb 21  2008 1.4.2
168494 lrwxr-xr-x  1 root  wheel    5 Feb 21  2008 1.5 -> 1.5.0
166930 drwxr-xr-x  8 root  wheel  272 Feb 21  2008 1.5.0
774585 lrwxr-xr-x  1 root  wheel    5 Jul 23 15:31 1.6 -> 1.6.0
747415 drwxr-xr-x  8 root  wheel  272 Jul 23 10:24 1.6.0
167155 drwxr-xr-x  8 root  wheel  272 Jul 23 15:31 A
776765 lrwxr-xr-x  1 root  wheel    1 Jul 23 15:31 Current -> A
774125 lrwxr-xr-x  1 root  wheel    3 Jul 23 15:31 CurrentJDK -> 1.5
manoa:~ stu$ 

다른 팁

이 기사가 도움이 될 수 있다:http://developer.apple.com/technotes/tn2002/tn2110.html
여름:

String javaVersion = System.getProperty("java.version");
if (javaVersion.startsWith("1.4")) {
  // New features for 1.4
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top