Notice
Recent Posts
Recent Comments
Link
«   2024/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
Tags
more
Archives
Today
Total
관리 메뉴

이열매의 메모장

mac OS Catalina에서 java 6 사용하기 본문

잡지식

mac OS Catalina에서 java 6 사용하기

이열매 2020. 1. 23. 12:49

기존 맥에서 제공하는 apple java를 유용하게 사용하고 있던 와중, catalina 업데이트 이후 java 6버전이 삭제된다는 사실을 알게 되었다.

java 6에 의존성이 있는 어플리케이션을 사용하고 있었기 때문에 방도를 찾던 중, 다음과 같은 글을 발견했다.

 

https://www.harrisgeospatial.com/Support/Self-Help-Tools/Help-Articles/Help-Articles-Detail/ArtMID/10220/ArticleID/23780/Mac-OS-Catalina-1015-ENVIIDL-and-Legacy-Java-6-Dependencies

 

Mac OS Catalina 10.15, ENVI/IDL, and Legacy Java 6 Dependencies

Apple's release of Mac OS 10.15 Catalina has brought many changes to the operating system. We discovered these issues in our beta tests of Catalina, many of which are related to Catalina's requisite for 64-bit applications. We have created a patch for this

www.harrisgeospatial.com

 

정리하자면 다음과 같다.

 

  • Script Editor 실행하여 new document 버튼 클릭
    • spotlight에서 바로 입력하여 실행
    • UI로 실행  - 경로 : (user home dir) Applications > Utilities > Script Editor
  • editor에 다음 스크립트 붙여넣기
set theDMG to choose file with prompt "Please select javaforosx.dmg:" of type {"dmg"}
do shell script "hdiutil mount " & quoted form of POSIX path of theDMG
do shell script "pkgutil --expand /Volumes/Java\\ for\\ macOS\\ 2017-001/JavaForOSX.pkg ~/tmp"
do shell script "hdiutil unmount /Volumes/Java\\ for\\ macOS\\ 2017-001/"
do shell script "sed -i '' 's/return false/return true/g' ~/tmp/Distribution"
do shell script "pkgutil --flatten ~/tmp ~/Desktop/ModifiedJava6Install.pkg"
do shell script "rm -rf ~/tmp"
display dialog "Modified ModifiedJava6Install.pkg saved on desktop" buttons {"Ok"}

 

  • 컴파일(🔨) 한 후 실행 (►)
    • 기존 가지고 있던 java 6 dmg 파일 선택하여 실행
    • 이 때, 스크립트에 작성한 {USER_HOME}/tmp 디렉토리가 이미 존재하면 다음과 같은 실행 오류가 나므로, 경로를 바꾸거나 해당 디렉토리 삭제 후 진행
      • Error encountered while creating /Users/user/tmp. Error 17: File exists
  • {USER_HOME}/Desktop 경로에 설치된 ModifiedJava6Install.pkg 설치

 

 

 

 

 

Comments