Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

List the Java runtimes that need Rosetta in Intel Software

Țugui Dragoș2f4b07e05488
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 212ab96f..f06b20b7 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -381,9 +381,11 @@ macOS asks the user to approve it once. It talks to the app over XPC.
only when it is a program (`MH_EXECUTE`), since a library runs in whatever loads it. It looks at the installed apps
and, inside each, at the folders that hold code of its own (`embeddedDirectories`, and in `Contents/Frameworks` only
the apps and services kept there), at the plug-ins the Plug-ins page lists, at the drivers in `Image Capture` and
- `Printers` and what else sits in `Audio/Plug-Ins` and `ColorPickers`, at the programs launchd jobs run, and at the
- tools in `/usr/local`. It only reports: an app goes from Applications, a plug-in the Plug-ins page lists from
- there, and the rest with the software that installed it.
+ `Printers` and what else sits in `Audio/Plug-Ins` and `ColorPickers`, at the programs launchd jobs run, at the
+ tools in `/usr/local`, and at the Java runtimes in each Library's `Java/JavaVirtualMachines`, judged by their
+ `java`, since the library their bundle names is run by nothing. It only reports: an app goes from Applications, a
+ plug-in the Plug-ins page lists from there, a Java runtime as its folder, and the rest with the software that
+ installed it.
- **Space.** `SpaceInventory` measures each area its definitions name (`SpaceReport`), the folders inside apps'
containers included, and lists an area from 50 MB (`minimumSize`), one whose size didn't come back in time, and the
area open on its page. An area's figure is all its folders hold, or only what it offers where it leaves macOS's own
diff --git a/GUIDE.md b/GUIDE.md
index a9be6971..5e6ee93e 100644
--- a/GUIDE.md
+++ b/GUIDE.md
@@ -269,8 +269,9 @@ and how many items the others hold.
is shown and not selected.
- **Intel Software:** what still needs Rosetta, which macOS 27 is the last release to offer for most Intel software:
apps, apps built for both that ask macOS to open them as Intel, the Intel-only parts inside other apps, plug-ins,
- drivers, background items, and the commands in `/usr/local`. It names any folder or program it couldn't read,
- since something there may need Rosetta too.
+ drivers, background items, the commands in `/usr/local`, and the Java runtimes in either Library's
+ `Java/JavaVirtualMachines`. It names any folder or program it couldn't read, since something there may need Rosetta
+ too.
- **Homebrew:** your formulae and casks, with Update, Clean Up (and two deeper ones: downloads older than 30 days, or
every download), Repair Taps, Check Health, Scan for Vulnerabilities, Upgrade, and Uninstall, or the command to run in
Terminal for a cask that asks for an administrator's password. Uninstall and the cleanups delete for good, as Homebrew
diff --git a/Localization/Peel/Localizable.xcstrings b/Localization/Peel/Localizable.xcstrings
index 70ae0a7b..0a88ce63 100644
--- a/Localization/Peel/Localizable.xcstrings
+++ b/Localization/Peel/Localizable.xcstrings
@@ -76520,6 +76520,112 @@
}
}
},
+ "Java Runtimes" : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Běhová prostředí Java"
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Java-Laufzeitumgebungen"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Entornos de ejecución de Java"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Environnements d’exécution Java"
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Runtime Java"
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Javaランタイム"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Java 런타임"
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Java-runtimes"
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Środowiska uruchomieniowe Java"
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Runtimes Java"
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Medii de rulare Java"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Среды выполнения Java"
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Java-körmiljöer"
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Java Çalışma Ortamları"
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Середовища виконання Java"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Java运行时"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Java執行環境"
+ }
+ }
+ }
+ },
"Journal > Settings > General > Get Writing Prompts" : {
"localizations" : {
"cs" : {
@@ -109549,109 +109655,109 @@
}
}
},
- "Nothing Peel looked at needs Rosetta: the apps in the Applications folders and the folders you added in Settings, what they carry inside, the plug-ins, the drivers, the background items, and the tools in /usr/local." : {
+ "Nothing Peel looked at needs Rosetta: the apps in the Applications folders and the folders you added in Settings, what they carry inside, the plug-ins, the drivers, the background items, the tools in /usr/local, and the Java runtimes." : {
"comment" : "Under Nothing Needs Rosetta on the Intel Software page. The folders you added are those in Settings > General > App Folders. Rosetta is Apple's name and stays as it is.",
"localizations" : {
"cs" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Nic z toho, co Peel prověřil, nevyžaduje prostředí Rosetta: aplikace ve složkách Aplikace a ve složkách, které jste přidali v Nastavení, jejich vnitřní součásti, plug-iny, ovladače, položky na pozadí a nástroje v /usr/local."
+ "value" : "Nic z toho, co Peel prověřil, nevyžaduje prostředí Rosetta: aplikace ve složkách Aplikace a ve složkách, které jste přidali v Nastavení, jejich vnitřní součásti, plug-iny, ovladače, položky na pozadí, nástroje v /usr/local a běhová prostředí Java."
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Nichts, was Peel geprüft hat, benötigt Rosetta: die Apps in den Ordnern „Programme“ und in den Ordnern, die du in den Einstellungen hinzugefügt hast, was sie in sich tragen, die Plug-ins, die Treiber, die Hintergrundobjekte und die Tools in /usr/local."
+ "value" : "Nichts, was Peel geprüft hat, benötigt Rosetta: die Apps in den Ordnern „Programme“ und in den Ordnern, die du in den Einstellungen hinzugefügt hast, was sie in sich tragen, die Plug-ins, die Treiber, die Hintergrundobjekte, die Tools in /usr/local und die Java-Laufzeitumgebungen."
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Nada de lo que Peel ha revisado necesita Rosetta: las apps de las carpetas Aplicaciones y de las carpetas que has añadido en Ajustes, lo que llevan dentro, los módulos, los drivers, los ítems en segundo plano y las herramientas de /usr/local."
+ "value" : "Nada de lo que Peel ha revisado necesita Rosetta: las apps de las carpetas Aplicaciones y de las carpetas que has añadido en Ajustes, lo que llevan dentro, los módulos, los drivers, los ítems en segundo plano, las herramientas de /usr/local y los entornos de ejecución de Java."
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Rien de ce que Peel a examiné ne nécessite Rosetta : les apps des dossiers Applications et des dossiers que vous avez ajoutés dans les Réglages, ce qu’elles contiennent, les modules, les gestionnaires, les éléments en arrière-plan et les outils de /usr/local."
+ "value" : "Rien de ce que Peel a examiné ne nécessite Rosetta : les apps des dossiers Applications et des dossiers que vous avez ajoutés dans les Réglages, ce qu’elles contiennent, les modules, les gestionnaires, les éléments en arrière-plan, les outils de /usr/local et les environnements d’exécution Java."
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Nulla di ciò che Peel ha esaminato richiede Rosetta: le app nelle cartelle Applicazioni e nelle cartelle che hai aggiunto nelle Impostazioni, ciò che contengono, i plugin, i driver, gli elementi in background e gli strumenti in /usr/local."
+ "value" : "Nulla di ciò che Peel ha esaminato richiede Rosetta: le app nelle cartelle Applicazioni e nelle cartelle che hai aggiunto nelle Impostazioni, ciò che contengono, i plugin, i driver, gli elementi in background, gli strumenti in /usr/local e i runtime Java."
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Peelが調べたもの(“アプリケーション”フォルダと“設定”で追加したフォルダにあるアプリ、アプリの内部にあるもの、プラグイン、ドライバ、バックグラウンド項目、/usr/localにあるツール)には、Rosettaが必要なものはありません。"
+ "value" : "Peelが調べたもの(“アプリケーション”フォルダと“設定”で追加したフォルダにあるアプリ、アプリの内部にあるもの、プラグイン、ドライバ、バックグラウンド項目、/usr/localにあるツール、Javaランタイム)には、Rosettaが必要なものはありません。"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Peel이 살펴본 응용 프로그램 폴더와 설정에서 추가한 폴더의 앱, 앱 내부의 구성 요소, 플러그인, 드라이버, 백그라운드 항목, /usr/local의 도구 중 Rosetta가 필요한 항목은 없습니다."
+ "value" : "Peel이 살펴본 응용 프로그램 폴더와 설정에서 추가한 폴더의 앱, 앱 내부의 구성 요소, 플러그인, 드라이버, 백그라운드 항목, /usr/local의 도구, Java 런타임 중 Rosetta가 필요한 항목은 없습니다."
}
},
"nl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Niets van wat Peel heeft bekeken, heeft Rosetta nodig: de apps in de mappen 'Apps' en in de mappen die je in Instellingen hebt toegevoegd, wat erin zit, de plug-ins, de besturingsbestanden, de achtergrondonderdelen en de tools in /usr/local."
+ "value" : "Niets van wat Peel heeft bekeken, heeft Rosetta nodig: de apps in de mappen 'Apps' en in de mappen die je in Instellingen hebt toegevoegd, wat erin zit, de plug-ins, de besturingsbestanden, de achtergrondonderdelen, de tools in /usr/local en de Java-runtimes."
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Nic z tego, co sprawdził Peel, nie wymaga Rosetty: aplikacje w folderach Aplikacje i w folderach dodanych przez Ciebie w Ustawieniach, ich zawartość, wtyczki, sterowniki, rzeczy działające w tle i narzędzia w /usr/local."
+ "value" : "Nic z tego, co sprawdził Peel, nie wymaga Rosetty: aplikacje w folderach Aplikacje i w folderach dodanych przez Ciebie w Ustawieniach, ich zawartość, wtyczki, sterowniki, rzeczy działające w tle, narzędzia w /usr/local i środowiska uruchomieniowe Java."
}
},
"pt" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Nada do que o Peel examinou precisa do Rosetta: os apps das pastas Aplicativos e das pastas que você adicionou nos Ajustes, o que eles trazem dentro, os plug-ins, os drivers, os itens em segundo plano e as ferramentas em /usr/local."
+ "value" : "Nada do que o Peel examinou precisa do Rosetta: os apps das pastas Aplicativos e das pastas que você adicionou nos Ajustes, o que eles trazem dentro, os plug-ins, os drivers, os itens em segundo plano, as ferramentas em /usr/local e os runtimes Java."
}
},
"ro" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Nimic din ce a examinat Peel nu are nevoie de Rosetta: aplicațiile din dosarele Aplicații și din dosarele pe care le‑ați adăugat în Configurări, ce conțin aceste aplicații, plug-inurile, driverele, articolele de fundal și instrumentele din /usr/local."
+ "value" : "Nimic din ce a examinat Peel nu are nevoie de Rosetta: aplicațiile din dosarele Aplicații și din dosarele pe care le‑ați adăugat în Configurări, ce conțin aceste aplicații, plug-inurile, driverele, articolele de fundal, instrumentele din /usr/local și mediile de rulare Java."
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Ничему из того, что проверил Peel, не нужна Rosetta: ни приложениям в папках «Программы» и в папках, добавленных Вами в Настройках, ни тому, что у них внутри, ни плагинам, ни драйверам, ни фоновым объектам, ни инструментам в /usr/local."
+ "value" : "Ничему из того, что проверил Peel, не нужна Rosetta: ни приложениям в папках «Программы» и в папках, добавленных Вами в Настройках, ни тому, что у них внутри, ни плагинам, ни драйверам, ни фоновым объектам, ни инструментам в /usr/local, ни средам выполнения Java."
}
},
"sv" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Inget som Peel har tittat på behöver Rosetta: apparna i mapparna Appar och i de mappar som du har lagt till i Inställningar, det de bär med sig inuti, insticksfilerna, drivrutinerna, bakgrundsobjekten och verktygen i /usr/local."
+ "value" : "Inget som Peel har tittat på behöver Rosetta: apparna i mapparna Appar och i de mappar som du har lagt till i Inställningar, det de bär med sig inuti, insticksfilerna, drivrutinerna, bakgrundsobjekten, verktygen i /usr/local och Java-körmiljöerna."
}
},
"tr" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Peel’in baktığı hiçbir şey Rosetta gerektirmiyor: Uygulamalar klasörlerindeki ve Ayarlar’da eklediğiniz klasörlerdeki uygulamalar, içlerinde taşıdıkları, yazılım ekleri, sürücüler, arka plan öğeleri ve /usr/local içindeki araçlar."
+ "value" : "Peel’in baktığı hiçbir şey Rosetta gerektirmiyor: Uygulamalar klasörlerindeki ve Ayarlar’da eklediğiniz klasörlerdeki uygulamalar, içlerinde taşıdıkları, yazılım ekleri, sürücüler, arka plan öğeleri, /usr/local içindeki araçlar ve Java çalışma ortamları."
}
},
"uk" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Ніщо з того, що переглянула Peel, не потребує Rosetta: програми в папках «Програми» і в папках, які ви додали в Параметрах, те, що вони містять усередині, плагіни, драйвери, фонові елементи та інструменти в /usr/local."
+ "value" : "Ніщо з того, що переглянула Peel, не потребує Rosetta: програми в папках «Програми» і в папках, які ви додали в Параметрах, те, що вони містять усередині, плагіни, драйвери, фонові елементи, інструменти в /usr/local та середовища виконання Java."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Peel查看过的内容都不需要Rosetta:包括“应用程序”文件夹和你在“设置”中添加的文件夹里的App、这些App内部包含的内容、插件、驱动程序、后台项目,以及/usr/local中的工具。"
+ "value" : "Peel查看过的内容都不需要Rosetta:包括“应用程序”文件夹和你在“设置”中添加的文件夹里的App、这些App内部包含的内容、插件、驱动程序、后台项目、/usr/local中的工具,以及Java运行时。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
- "value" : "Peel檢查過的項目都不需要Rosetta:包括「應用程式」檔案夾和你在「設定」中加入的檔案夾裡的App、App內含的項目、外掛模組、驅動程式、背景項目,以及/usr/local中的工具。"
+ "value" : "Peel檢查過的項目都不需要Rosetta:包括「應用程式」檔案夾和你在「設定」中加入的檔案夾裡的App、App內含的項目、外掛模組、驅動程式、背景項目、/usr/local中的工具,以及Java執行環境。"
}
}
}
@@ -134256,6 +134362,112 @@
}
}
},
+ "Peel only reports here. A Java runtime is its folder: to remove it, move the folder to the Trash in Finder." : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Peel zde jen informuje. Běhové prostředí Java tvoří jediná složka: chcete-li ho odstranit, přesuňte tuto složku do koše ve Finderu."
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Hier informiert Peel nur. Eine Java-Laufzeitumgebung ist ein einziger Ordner: Um sie zu entfernen, lege den Ordner im Finder in den Papierkorb."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Aquí Peel solo informa. Un entorno de ejecución de Java es una única carpeta: para eliminarlo, traslada la carpeta a la papelera en el Finder."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ici, Peel se contente de signaler. Un environnement d’exécution Java se résume à son dossier : pour le supprimer, placez ce dossier dans la corbeille depuis le Finder."
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Qui Peel si limita a segnalare. Un runtime Java è tutto nella sua cartella: per rimuoverlo, sposta la cartella nel Cestino dal Finder."
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Peelはここでは報告するだけです。Javaランタイムは1つのフォルダで構成されています。取り除くには、Finderでそのフォルダをゴミ箱に入れてください。"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "여기에서 Peel은 보고만 합니다. Java 런타임은 폴더 하나로 이루어져 있으므로 제거하려면 Finder에서 해당 폴더를 휴지통으로 이동하십시오."
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Peel geeft hier alleen informatie. Een Java-runtime is één map: verplaats de map in Finder naar de prullenmand om de runtime te verwijderen."
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Peel tylko to tutaj zgłasza. Środowisko uruchomieniowe Java to jeden folder: aby się go pozbyć, przenieś ten folder do Kosza w Finderze."
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Aqui o Peel apenas informa. Um runtime Java é uma única pasta: para removê-lo, mova essa pasta para o Lixo no Finder."
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Aici Peel doar raportează. Un mediu de rulare Java este un singur dosar: pentru a‑l elimina, mutați dosarul în Coș din Finder."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Здесь Peel только сообщает. Среда выполнения Java целиком находится в своей папке: чтобы удалить ее, переместите эту папку в Корзину в Finder."
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Här rapporterar Peel bara. En Java-körmiljö är en enda mapp: om du vill ta bort den flyttar du mappen till papperskorgen i Finder."
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Peel burada yalnızca bilgi verir. Bir Java çalışma ortamı kendi klasöründen ibarettir: kaldırmak için klasörü Finder’da Çöp Sepeti’ne taşıyın."
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Тут Peel лише повідомляє. Середовище виконання Java повністю міститься у власній папці: щоб вилучити його, перемістіть цю папку в Смітник у Finder."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Peel在此仅作报告。Java运行时就是一个文件夹:若要移除它,请在“访达”中将该文件夹移到废纸篓。"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Peel在此只負責回報。Java執行環境本身就是一個檔案夾:若要移除,請在Finder中將該檔案夾丟到「垃圾桶」。"
+ }
+ }
+ }
+ },
"Peel only reports here. Background Items moves a job’s configuration file, not the program it runs: that goes with the software that installed it." : {
"localizations" : {
"cs" : {
@@ -194351,6 +194563,218 @@
}
}
},
+ "This Java runtime is Intel only, so it needs Rosetta to run. If its maker offers one for Apple silicon, install that one instead." : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Toto běhové prostředí Java je jen pro procesory Intel, takže ke spuštění potřebuje prostředí Rosetta. Pokud výrobce nabízí běhové prostředí pro čipy Apple, nainstalujte raději to."
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Diese Java-Laufzeitumgebung ist nur für Intel, daher benötigt sie Rosetta, um zu laufen. Wenn der Hersteller eine für Apple Chips anbietet, installiere stattdessen diese."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Este entorno de ejecución de Java es solo para Intel, así que necesita Rosetta para ejecutarse. Si su fabricante ofrece uno compatible con el chip de Apple, instala ese en su lugar."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cet environnement d’exécution Java n’existe qu’en version Intel : il a donc besoin de Rosetta pour s’exécuter. Si son éditeur en propose un pour puce Apple, installez plutôt celui-ci."
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Questo runtime Java è solo per Intel, quindi per funzionare richiede Rosetta. Se il suo produttore ne offre uno per Mac con chip Apple, installa quello."
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "このJavaランタイムはIntel専用のため、実行するにはRosettaが必要です。開発元がAppleシリコン対応のものを提供している場合は、代わりにそちらをインストールしてください。"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "이 Java 런타임은 Intel 전용이므로 실행하려면 Rosetta가 필요합니다. 제작자가 Apple silicon용 런타임을 제공한다면 대신 그 런타임을 설치하십시오."
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Deze Java-runtime is alleen voor Intel en heeft dus Rosetta nodig om te werken. Als de maker er een voor Apple silicon aanbiedt, installeer die dan in plaats van deze."
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "To środowisko uruchomieniowe Java jest tylko dla procesorów Intel, więc do działania potrzebuje Rosetty. Jeśli jego producent oferuje środowisko dla układów scalonych Apple, zainstaluj je zamiast tego."
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Este runtime Java é só para Intel, então precisa do Rosetta para ser executado. Se o fabricante oferecer um para Apple silicon, instale esse em vez deste."
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Acest mediu de rulare Java este doar pentru Intel, așa că are nevoie de Rosetta pentru a rula. Dacă producătorul său oferă unul pentru cip Apple, instalați‑l pe acela în schimb."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Эта среда выполнения Java собрана только для Intel, поэтому для работы ей нужна Rosetta. Если производитель предлагает среду выполнения для чипов Apple, лучше установите ее."
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Den här Java-körmiljön är bara för Intel, så den behöver Rosetta för att köras. Om tillverkaren erbjuder en för Apple Silicon installerar du den i stället."
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Bu Java çalışma ortamı yalnızca Intel içindir, bu yüzden çalışması için Rosetta gerekir. Üreticisi Apple Silicon için bir çalışma ortamı sunuyorsa bunun yerine onu yükleyin."
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Це середовище виконання Java призначене лише для Intel, тож для роботи потребує Rosetta. Якщо виробник пропонує середовище виконання для Apple Silicon, інсталюйте натомість його."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "此Java运行时仅支持Intel,因此需要Rosetta才能运行。如果其厂商提供适用于Apple芯片的版本,请改为安装该版本。"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "此Java執行環境僅支援Intel,因此需要Rosetta才能執行。如果它的廠商提供適用於Apple晶片的執行環境,請改為安裝該執行環境。"
+ }
+ }
+ }
+ },
+ "This Java runtime is Intel only. On this Intel Mac it runs natively." : {
+ "localizations" : {
+ "cs" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Toto běhové prostředí Java je jen pro procesory Intel. Na tomto Macu s procesorem Intel běží nativně."
+ }
+ },
+ "de" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Diese Java-Laufzeitumgebung ist nur für Intel. Auf diesem Intel-Mac läuft sie nativ."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Este entorno de ejecución de Java es solo para Intel. En este Mac con procesador Intel se ejecuta de forma nativa."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cet environnement d’exécution Java n’existe qu’en version Intel. Sur ce Mac à processeur Intel, il s’exécute en natif."
+ }
+ },
+ "it" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Questo runtime Java è solo per Intel. Su questo Mac Intel funziona in modo nativo."
+ }
+ },
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "このJavaランタイムはIntel専用です。このIntel搭載Macではネイティブに動作します。"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "이 Java 런타임은 Intel 전용입니다. 이 Intel Mac에서는 네이티브로 실행됩니다."
+ }
+ },
+ "nl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Deze Java-runtime is alleen voor Intel. Op deze Intel-Mac werkt die native."
+ }
+ },
+ "pl" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "To środowisko uruchomieniowe Java jest tylko dla procesorów Intel. Na tym Macu z procesorem Intel działa natywnie."
+ }
+ },
+ "pt" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Este runtime Java é só para Intel. Neste Mac com Intel, ele é executado nativamente."
+ }
+ },
+ "ro" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Acest mediu de rulare Java este doar pentru Intel. Pe acest Mac cu Intel rulează nativ."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Эта среда выполнения Java собрана только для Intel. На этом Mac с процессором Intel она работает нативно."
+ }
+ },
+ "sv" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Den här Java-körmiljön är bara för Intel. På den här Intel-baserade datorn körs den utan Rosetta."
+ }
+ },
+ "tr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Bu Java çalışma ortamı yalnızca Intel içindir. Intel işlemcili bu Mac’te yerel olarak çalışır."
+ }
+ },
+ "uk" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Це середовище виконання Java призначене лише для Intel. На цьому Mac з процесором Intel воно працює нативно."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "此Java运行时仅支持Intel。在这台Intel Mac上,它以原生方式运行。"
+ }
+ },
+ "zh-Hant" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "此Java執行環境僅支援Intel。在這部Intel Mac上,它以原生方式執行。"
+ }
+ }
+ }
+ },
"This Mac" : {
"localizations" : {
"cs" : {
diff --git a/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift b/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift
index faa4415e..62de4d80 100644
--- a/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Apps/IntelInspector.swift
@@ -12,6 +12,7 @@ public struct IntelFinding: Sendable, Hashable, Identifiable {
case driver
case backgroundItem
case commandLineTool
+ case javaRuntime
}
public let url: URL
@@ -62,6 +63,10 @@ public enum IntelInspector {
/// CUPS's PPD specification shows with `/Library/Printers/vendor/Tools/lowinktool`.
static let printers = "Printers"
+ /// Where Java runtimes are installed: Oracle's "Installing the JDK on macOS" names
+ /// `/Library/Java/JavaVirtualMachines/jdk-<feature>.jdk`, and `java_home` lists the home's folder as well.
+ static let javaRuntimes = "Java/JavaVirtualMachines"
+
static func libraryDirectories(_ environment: SearchEnvironment, folders: [String]) -> [String] {
[environment.homeDirectory.appending(path: "Library", directoryHint: .isDirectory),
environment.rootDirectory.appending(path: "Library", directoryHint: .isDirectory)]
@@ -206,6 +211,19 @@ public enum IntelInspector {
))
}
+ for runtime in intelOnlyJavaRuntimes(
+ in: libraryDirectories(environment, folders: [javaRuntimes]), unreadable: &unreadable
+ ) where !Task.isCancelled && !exclusions.excludes(runtime) && isNew(runtime) {
+ let info = AppInspector.infoDictionary(in: runtime.appending(path: "Contents", directoryHint: .isDirectory))
+ findings.append(IntelFinding(
+ url: runtime,
+ kind: .javaRuntime,
+ name: Plugins.name(of: runtime, info: info),
+ owner: nil,
+ size: nil,
+ ))
+ }
+
// A job or a command that runs what is listed already, or something inside it, is that code's, and a job is
// named on its row.
var listed = findings.map { PathPattern.comparablePath(of: $0.url) }
@@ -404,19 +422,39 @@ public enum IntelInspector {
let name = (info?["CFBundleExecutable"] as? String) ?? bundle.deletingPathExtension().lastPathComponent
// The second place is for a flat bundle, which keeps its binary at its top level.
for candidate in [contents.appending(path: "MacOS/\(name)"), bundle.appending(path: name)] {
- var status = stat()
- if stat(candidate.path(percentEncoded: false), &status) == 0 {
- if isRunnable(status) { return candidate }
- } else if ![ENOENT, ENOTDIR, ELOOP].contains(errno) {
- if let folder = FileAccess.refusedFolder(candidate.deletingLastPathComponent()) {
- unreadable.append(folder)
- }
- return nil
+ switch isRunnableFile(candidate, unreadable: &unreadable) {
+ case true?: return candidate
+ case false?: continue
+ case nil: return nil
}
}
return nil
}
+ /// Whether `url` is a file anyone can run, or nil when Peel can't look at it, which adds the folder that kept it
+ /// out to `unreadable`. What isn't there is no program.
+ private static func isRunnableFile(_ url: URL, unreadable: inout [URL]) -> Bool? {
+ var status = stat()
+ if stat(url.path(percentEncoded: false), &status) == 0 { return isRunnable(status) }
+ guard ![ENOENT, ENOTDIR, ELOOP].contains(errno) else { return false }
+ if let folder = FileAccess.refusedFolder(url.deletingLastPathComponent()) {
+ unreadable.append(folder)
+ }
+ return nil
+ }
+
+ /// The runtimes in each Library's Java folder that run only on Intel. A runtime's executable, `libjli.dylib`, is a
+ /// library no one runs, so its `java` decides.
+ static func intelOnlyJavaRuntimes(in directories: [String], unreadable: inout [URL]) -> [URL] {
+ directories.flatMap { directory in
+ entries(of: URL(filePath: directory, directoryHint: .isDirectory), unreadable: &unreadable)
+ }.filter { runtime in
+ let java = runtime.appending(path: "Contents/Home/bin/java")
+ return isRunnableFile(java, unreadable: &unreadable) == true
+ && isIntelOnly(executable: java, unreadable: &unreadable)
+ }
+ }
+
/// `ds` is a TWAIN data source, which Apple's Technical Note TN2088 puts in `Image Capture/TWAIN Data Sources`.
static let driverExtensions: Set<String> = ["app", "plugin", "bundle", "driver", "qlgenerator", "mdimporter", "ds"]
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/IntelInspectorTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/IntelInspectorTests.swift
index a2549fa0..3bbbf97a 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/IntelInspectorTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/IntelInspectorTests.swift
@@ -142,6 +142,18 @@ struct IntelInspectorTests {
return directory.url.appending(path: path, directoryHint: .isDirectory)
}
+ private func javaRuntime(
+ _ directory: borrowing TemporaryDirectory, _ path: String, _ cpuTypes: [UInt32], name: String?
+ ) throws {
+ var info = ["CFBundleExecutable": "libjli.dylib"]
+ info["CFBundleName"] = name
+ let plist = try PropertyListSerialization.data(fromPropertyList: info, format: .xml, options: 0)
+ try directory.file("\(path)/Contents/Info.plist", contents: plist)
+ try directory.file("\(path)/Contents/MacOS/libjli.dylib", contents: fatHeader(cpuTypes))
+ let java = try directory.file("\(path)/Contents/Home/bin/java", contents: fatHeader(cpuTypes))
+ try directory.setPermissions(0o755, of: java)
+ }
+
/// Runs one of the scan's walks over fixtures that can all be read, so it names nothing it couldn't read.
private func readable<T>(_ walk: (inout [URL]) -> T) -> T {
var unread: [URL] = []
@@ -437,6 +449,28 @@ struct IntelInspectorTests {
#expect(tools.map { PathPattern.comparablePath(of: $0.url) } == [PathPattern.comparablePath(of: program)])
}
+ @Test func findsTheIntelOnlyJavaRuntimesInEitherLibrary() async throws {
+ let directory = try TemporaryDirectory()
+ try javaRuntime(directory, "home/Library/Java/JavaVirtualMachines/jdk-21.0.13+9", [intel], name: "OpenJDK 21.0.13")
+ try javaRuntime(directory, "root/Library/Java/JavaVirtualMachines/temurin-17.jdk", [intel], name: nil)
+ try javaRuntime(directory, "root/Library/Java/JavaVirtualMachines/zulu-21.jdk", [intel, appleSilicon], name: "Zulu")
+ try directory.file("root/Library/Java/JavaVirtualMachines/notes/readme.txt")
+
+ let scan = await IntelInspector.scan(
+ installedApps: [],
+ exclusions: .none,
+ environment: SearchEnvironment(
+ homeDirectory: directory.url.appending(path: "home", directoryHint: .isDirectory),
+ rootDirectory: directory.url.appending(path: "root", directoryHint: .isDirectory)
+ ),
+ measure: { _ in 1 }
+ )
+
+ #expect(Set(scan.findings.map(\.name)) == ["OpenJDK 21.0.13", "temurin-17"])
+ #expect(scan.findings.allSatisfy { $0.kind == .javaRuntime })
+ #expect(scan.unreadable.isEmpty, "named \(scan.unreadable)")
+ }
+
@Test func looksForCommandsUnderTheRootItIsGiven() async throws {
let directory = try TemporaryDirectory()
let tool = try directory.file("root/usr/local/bin/tool", contents: fatHeader([intel]))
diff --git a/Peel/Model/IntelLibrary.swift b/Peel/Model/IntelLibrary.swift
index 2f351198..db1ef247 100644
--- a/Peel/Model/IntelLibrary.swift
+++ b/Peel/Model/IntelLibrary.swift
@@ -71,6 +71,7 @@ extension IntelFinding.Kind {
case .driver: "Drivers"
case .backgroundItem: "Background Items"
case .commandLineTool: "Command Line Tools"
+ case .javaRuntime: "Java Runtimes"
}
}
@@ -85,6 +86,7 @@ extension IntelFinding.Kind {
case .driver: "printer"
case .backgroundItem: "gearshape.2"
case .commandLineTool: "terminal"
+ case .javaRuntime: "cup.and.saucer"
}
}
@@ -98,6 +100,7 @@ extension IntelFinding.Kind {
case .driver: "This driver is Intel only. On this Intel Mac it runs natively."
case .backgroundItem: "This background item is Intel only. On this Intel Mac it runs natively."
case .commandLineTool: "This tool in /usr/local is Intel only. On this Intel Mac it runs natively."
+ case .javaRuntime: "This Java runtime is Intel only. On this Intel Mac it runs natively."
}
}
return switch self {
@@ -108,6 +111,8 @@ extension IntelFinding.Kind {
case .driver: "This driver is Intel only. The device it serves may stop working without Rosetta."
case .backgroundItem: "This background item is Intel only, so it needs Rosetta to run."
case .commandLineTool: "This tool in /usr/local is Intel only, so it needs Rosetta to run."
+ case .javaRuntime:
+ "This Java runtime is Intel only, so it needs Rosetta to run. If its maker offers one for Apple silicon, install that one instead."
}
}
}
diff --git a/Peel/Views/Intel/IntelDetailView.swift b/Peel/Views/Intel/IntelDetailView.swift
index d87f6f01..a937362b 100644
--- a/Peel/Views/Intel/IntelDetailView.swift
+++ b/Peel/Views/Intel/IntelDetailView.swift
@@ -13,7 +13,7 @@ struct IntelDetailView: View {
private func lastOpened(of app: InstalledApp?) -> Date? {
switch finding.kind {
case .app, .insideApp: app?.lastUsedDate
- case .plugin, .driver, .backgroundItem, .commandLineTool: nil
+ case .plugin, .driver, .backgroundItem, .commandLineTool, .javaRuntime: nil
}
}
@@ -170,6 +170,8 @@ struct IntelDetailView: View {
: "Peel only reports here. The software that installed it may have an uninstaller of its own."
case .backgroundItem:
"Peel only reports here. Background Items moves a job’s configuration file, not the program it runs: that goes with the software that installed it."
+ case .javaRuntime:
+ "Peel only reports here. A Java runtime is its folder: to remove it, move the folder to the Trash in Finder."
}
}
diff --git a/Peel/Views/Intel/IntelList.swift b/Peel/Views/Intel/IntelList.swift
index 20da5053..17a659c7 100644
--- a/Peel/Views/Intel/IntelList.swift
+++ b/Peel/Views/Intel/IntelList.swift
@@ -62,7 +62,7 @@ struct IntelList: View {
Label("Nothing Needs Rosetta", systemImage: "checkmark.seal")
} description: {
VStack(spacing: 6) {
- Text("Nothing Peel looked at needs Rosetta: the apps in the Applications folders and the folders you added in Settings, what they carry inside, the plug-ins, the drivers, the background items, and the tools in /usr/local.")
+ Text("Nothing Peel looked at needs Rosetta: the apps in the Applications folders and the folders you added in Settings, what they carry inside, the plug-ins, the drivers, the background items, the tools in /usr/local, and the Java runtimes.")
Text("The Intel-based Apps list in System Settings > General > About names the apps macOS 28 won’t run, including some outside the folders Peel looks in.")
}
} actions: {
@@ -74,7 +74,7 @@ struct IntelList: View {
systemImage: "checkmark.seal",
// The description claims only what Peel looked at, since Intel plug-ins can be missed: the
// macOS 27 release notes say some may not appear even in System Settings.
- description: Text("Nothing Peel looked at needs Rosetta: the apps in the Applications folders and the folders you added in Settings, what they carry inside, the plug-ins, the drivers, the background items, and the tools in /usr/local.")
+ description: Text("Nothing Peel looked at needs Rosetta: the apps in the Applications folders and the folders you added in Settings, what they carry inside, the plug-ins, the drivers, the background items, the tools in /usr/local, and the Java runtimes.")
)
}
}