- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
尝试遵循 Unable to install JRE8/JRE7 on OS X Yosemite 上的建议我仍然遇到无法在我的计算机上安装 JDK 8u25 的问题。这是安装程序日志
10:44 $ sudo installer -dumplog -verbose -pkg /Volumes/JDK\ 8\ Update\ 25/JDK\ 8\ Update\ 25.pkg -target /installer: Package name is JDK 8 Update 25Dec 29 10:44:33 buddy.fritz.box installer[11031] : Product archive /Volumes/JDK 8 Update 25/JDK 8 Update 25.pkg trustLevel=202installer: Installing at base path /installer: Preparing for installation….....Dec 29 10:44:34 buddy.fritz.box installer[11031] : -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhostDec 29 10:44:34 buddy.fritz.box installer[11031] : -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/JDK%208%20Update%2025/JDK%208%20Update%2025.pkg#jdk18025.pkgDec 29 10:44:34 buddy.fritz.box installer[11031] : -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/JDK%208%20Update%2025/JDK%208%20Update%2025.pkg#javaappletplugin.pkgDec 29 10:44:34 buddy.fritz.box installer[11031] : Set authorization level to root for sessionDec 29 10:44:34 buddy.fritz.box installer[11031] : Will use PK sessionDec 29 10:44:34 buddy.fritz.box installer[11031] : Starting installation:installer: Preparing the disk….....Dec 29 10:44:34 buddy.fritz.box installer[11031] : Configuring volume "Macintosh HD"Dec 29 10:44:34 buddy.fritz.box installer[11031] : Preparing disk for local booted install.Dec 29 10:44:34 buddy.fritz.box installer[11031] : Free space on "Macintosh HD": 67.29 GB (67294580736 bytes).Dec 29 10:44:34 buddy.fritz.box installer[11031] : Create temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.11031P0FtDl"installer: Preparing JDK 8 Update 25….....Dec 29 10:44:34 buddy.fritz.box installer[11031] : IFPKInstallElement (2 packages)Dec 29 10:44:34 buddy.fritz.box installer[11031] : Using authorization level of root for IFPKInstallElementinstaller: Waiting for other installations to complete….....Dec 29 10:44:34 buddy.fritz.box installer[11031] : PackageKit: Enqueuing install with framework-specified quality of service (utility)installer: Configuring the installation….....installer:#installer: Writing files….....#installer: Writing files….....#installer: Writing files….....#installer: Writing files….....#installer: Writing files….....#installer: Moving items into place….....#installer: Moving items into place….....installer: Validating packages….....installer: Cleaning up….....Dec 29 10:44:39 buddy.fritz.box installer[11031] : install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “JDK 8 Update 25.pkg”." UserInfo=0x7f98f0902080 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/JDK%208%20Update%2025/JDK%208%20Update%2025.pkg#javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “JDK 8 Update 25.pkg”.}#Dec 29 10:44:39 buddy.fritz.box installer[11031] : Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
非常感谢任何帮助
最佳答案
做了更多研究来解决这个问题,我想我调查了包内容( https://apple.stackexchange.com/questions/15658/how-can-i-open-a-pkg-file-manually 揭示了如何提取 pkg 文件)
11:27 $ pkgutil --expand /Volumes/JDK\ 8\ Update\ 25/JDK\ 8\ Update\ 25.pkg /tmp/java/jdk
查看包并再次查看日志表明问题出在 javaappletplugin.pkg
中,而不是 JDK 本身
然后我运行了包中的 preinstall
和 postinstall
脚本,显示了以下输出
/tmp/java/jdk/javaappletplugin.pkg/Scripts12:08 $ sudo ./postinstall/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Java-Updater.plist: Operation already in progress/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/com.oracle.java.Helper-Tool.plist: Operation already in progressobjc[12239]: Class JavaLaunchHelper is implemented in both /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java and /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/jli/./libjli.dylib. One of the two will be used. Which one is undefined.java.lang.IllegalArgumentException: Invalid argument CFG_FILE: /Library/Application Support/Oracle/Java/java.settings.cfg at com.oracle.install.InstallOptions.validateConfigFile(InstallOptions.java:165) at com.oracle.install.InstallOptions.parseArguments(InstallOptions.java:102) at com.oracle.install.InstallOptions.main(InstallOptions.java:46)/tmp/java/jdk/javaappletplugin.pkg/Scripts
I could now see that the Script is unable to finish its Installation. After I have moved the existing plugin out of the way
sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/ /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin.old
重新运行 postinstall
脚本,错误消失了,我想让安装程序再试一次
/tmp/java/jdk/javaappletplugin.pkg/Scripts
12:10 $ sudo ./postinstall
rm: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Info.plist: No such file or directory
瞧,安装成功完成
12:10 $ sudo installer -dumplog -verbose -pkg /Volumes/JDK\ 8\ Update\ 25/JDK\ 8\ Update\ 25.pkg -target /installer: Package name is JDK 8 Update 25Dec 29 12:10:58 buddy.fritz.box installer[12459] : Product archive /Volumes/JDK 8 Update 25/JDK 8 Update 25.pkg trustLevel=202installer: Installing at base path /installer: Preparing for installation….....Dec 29 12:10:59 buddy.fritz.box installer[12459] : -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhostDec 29 12:10:59 buddy.fritz.box installer[12459] : -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/JDK%208%20Update%2025/JDK%208%20Update%2025.pkg#jdk18025.pkgDec 29 12:10:59 buddy.fritz.box installer[12459] : -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/JDK%208%20Update%2025/JDK%208%20Update%2025.pkg#javaappletplugin.pkgDec 29 12:10:59 buddy.fritz.box installer[12459] : Set authorization level to root for sessionDec 29 12:11:00 buddy.fritz.box installer[12459] : Will use PK sessionDec 29 12:11:00 buddy.fritz.box installer[12459] : Starting installation:installer: Preparing the disk….....Dec 29 12:11:00 buddy.fritz.box installer[12459] : Configuring volume "Macintosh HD"Dec 29 12:11:00 buddy.fritz.box installer[12459] : Preparing disk for local booted install.Dec 29 12:11:00 buddy.fritz.box installer[12459] : Free space on "Macintosh HD": 66.84 GB (66840113152 bytes).Dec 29 12:11:00 buddy.fritz.box installer[12459] : Create temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.12459GS2WWn"installer: Preparing JDK 8 Update 25….....Dec 29 12:11:00 buddy.fritz.box installer[12459] : IFPKInstallElement (2 packages)Dec 29 12:11:00 buddy.fritz.box installer[12459] : Using authorization level of root for IFPKInstallElementinstaller: Waiting for other installations to complete….....Dec 29 12:11:00 buddy.fritz.box installer[12459] : PackageKit: Enqueuing install with framework-specified quality of service (utility)installer: Configuring the installation….....installer:#installer: Writing files….....#installer: Writing files….....#installer: Writing files….....#installer: Writing files….....#installer: Writing files….....#installer: Writing files….....#installer: Moving items into place….....#installer: Running package scripts….....#installer: Running package scripts….....#installer: Running package scripts….....installer: Validating packages….....Dec 29 12:11:05 buddy.fritz.box installer[12459] : LSExceptions [0x7fcab0a52670] loadedDec 29 12:11:05 buddy.fritz.box installer[12459] : PackageKit: Registered bundle file:///Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/lib/missioncontrol/Java%20Mission%20Control.app/ for uid 0Dec 29 12:11:06 buddy.fritz.box installer[12459] : PackageKit: Registered bundle file:///Library/Internet%20Plug-Ins/JavaAppletPlugin.plugin/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/finish_installation.app/ for uid 0Dec 29 12:11:06 buddy.fritz.box installer[12459] : PackageKit: Registered bundle file:///Library/Internet%20Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/Java%20Updater.app/ for uid 0#installer: Running installer actions…Dec 29 12:11:06 buddy.fritz.box installer[12459] : Running install actionsinstaller:installer: Finishing the Installation….....Dec 29 12:11:06 buddy.fritz.box installer[12459] : Removing temporary directory "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//Install.12459GS2WWn"Dec 29 12:11:06 buddy.fritz.box installer[12459] : Finalize disk "Macintosh HD"Dec 29 12:11:06 buddy.fritz.box installer[12459] : Notifying system of updated componentsDec 29 12:11:06 buddy.fritz.box installer[12459] :Dec 29 12:11:06 buddy.fritz.box installer[12459] : **** Summary Information ****Dec 29 12:11:06 buddy.fritz.box installer[12459] : Operation Elapsed timeDec 29 12:11:06 buddy.fritz.box installer[12459] : -----------------------------Dec 29 12:11:06 buddy.fritz.box installer[12459] : disk 0.05 secondsDec 29 12:11:06 buddy.fritz.box installer[12459] : script 0.00 secondsDec 29 12:11:06 buddy.fritz.box installer[12459] : zero 0.01 secondsDec 29 12:11:06 buddy.fritz.box installer[12459] : install 6.08 secondsDec 29 12:11:06 buddy.fritz.box installer[12459] : -total- 6.14 secondsDec 29 12:11:06 buddy.fritz.box installer[12459] :installer:#installer: The software was successfully installed......installer: The install was successful.
我希望这对其他人来说也能成功
关于java - 无法在 Mac OS Yosemite 上安装 JDK 8u25,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27686593/
我想显示阿拉伯文字,但字符 المملك 显示。 例如,在 المملكة العربية السعودية 上显示单词 المملك٩ ا
我的应用程序正在 java + MSSQL 和 MySQL 上运行。下面的查询适用于 MSSQL,但不适用于 MySql。在 mysql 中,当我编写如下查询时,它给出了错误的结果 查询 select
根据 is_destructible 的定义( http://eel.is/c++draft/meta.unary.prop#lib:is_destructible ), is_destructib
我有一个数据库表,其中有一列我对波斯字母进行了分类,以便稍后使用 MySQL WHERE 选择。一切都适用于所有字母,但我在选择在数据库中存储为 (Ù†) 的字母 (?) 和存储为 (Ú†) 的 (?
我知道像这样的可选链接: someOptional?.someProperty 基本上是 someOptional.map { $0.someProperty } 但是,我发现同时做这两件事是不可能的
u-boot配置文件中的以下配置我看不懂 CONFIG_SYS_EXTRA_OPTIONS="SYS_SDRAM_SIZE=0x20000000" 好像在 u-boot 代码中设置 DRAM 大小。但
我对以下两个方法声明感到困惑: private T funWorks(T child, U parent) { // No compilation errors }
给定如下 API: class Bar { ... } class Foo extends Bar { ... } 在 Java 的 Optional 类型中,我们可以说: Optional fooO
我有一个文件,每行有两个字符: $ cat roman Ⅱ Ⅲ nut 当我用 sort -u 对这个文件进行排序时,只显示一行: $ sort -u roman Ⅱ Ⅱ是代码点U+2161,Ⅲ是代码
我正在尝试将 C 数组分配给 C++ std::array。 我该如何做到这一点,最干净的方式并且不制作不需要的拷贝等? 什么时候做 int X[8]; std::array Y = X; 我得到一个
我有以下案例类: case class [Q Length[T] 但是,我收到一条错误消息,说 需要三个参数,而我只给出了两个。我希望它像这样工作: type Area[T] = [Length[T
它是 well documented那个[T; n]可以强制到[T] .下面的代码也是well-formed : fn test(){ let _a: &[i32] = &[1, 2, 3];
我正在尝试使用 tweepy 在 Tkinter 窗口上显示我的 Twitter 时间线。这是代码 import tweepy import tkinter consumer_key = 'xxxxx
我正在使用以下包含 letter ü 的文本片段: test für fur test 代码如下: import re for m in re.finditer(r, line, re.IGNOREC
我对 USQL 很陌生,想知道如何在 select 语句中将“日期时间”转换为“日期”。另外,我如何摆脱毫秒和上午/下午?我真的很感激这方面的任何帮助。谢谢你们。 最佳答案 下面是有效的代码。注意括号
在 U-SQL 自定义代码(代码隐藏或程序集)中可以调用外部服务,例如bing搜索或 map 。 谢谢, 纳西尔 最佳答案 由于以下原因,目前不支持此功能: 想象一下,您编写了一个 UDF 或 UDO
我想 ping 出多个以太网端口。 u-boot 仅支持单个以太网端口是否存在固有限制? 最佳答案 Can u-boot support more than one ethernet port? 是的
我最近开始学习Prolog,但无法解决如何将三个列表合并的问题。 我能够合并两个列表: %element element(X,[X|_]). element(X,[_|Y]):-
我们使用 Beaglebone 黑色定制板。我编辑了一个链接器脚本文件以添加内存部分以在其中记录一些信息: . = ALIGN(4); .logging : { _log_begin
我们使用 Beaglebone 黑色定制板。我编辑了一个链接器脚本文件以添加内存部分以在其中记录一些信息: . = ALIGN(4); .logging : { _log_begin
我是一名优秀的程序员,十分优秀!