2013-11-15 90 views
2

試圖在操作系統10.9上安裝Java EE 7/Glassfish 4小牛隊每次都會崩潰。我已經嘗試安裝Apple JDK和Oracle JDK,但都沒有工作。有沒有人遇到過這個?我記得在10.8上安裝,它工作得很好。謝謝!Java EE安裝程序在Mac OS X上崩潰小牛隊

環境變量:

$回聲$ JAVA_HOME

/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home

輸出:

$ chmod +x java_ee_sdk-7-jdk7-macosx-x64.sh 

$ ./java_ee_sdk-7-jdk7-macosx-x64.sh 

Extracting the installer archive... 
Extracting the installer runtime... Extracting the installer 
resources... Extracting the installer metadata... 

Welcome to GlassFish installer 

Using the user defined JAVA_HOME : 
/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home 
Entering setup... SwixML 1.5 (#144) 
# 
# A fatal error has been detected by the Java Runtime Environment: 
# 
# SIGSEGV (0xb) at pc=0x0000000119956af9, pid=5178, tid=50183 
# 
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18) 
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode bsd-amd64 compressed oops) 
# Problematic frame: 
# C 0x0000000119956af9 
# 
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again 
# 
# An error report file with more information is saved as: 
# /var/folders/4t/7dky_l096m1fdl5gncg_w__80000gn/T//hs_err_pid5178.log 
# 
# If you would like to submit a bug report, please visit: 
# http://bugreport.sun.com/bugreport/crash.jsp 
# The crash happened outside the Java Virtual Machine in native code. 
# See problematic frame for where to report the bug. 
# /tmp/install.111513141256/install/bin/engine-wrapper: line 139: 5178 Abort trap: 6   ${JAVA_HOME}/bin/java ${JAVA_OPTIONS} 
-Dinstall.engine=${theInstallEngine} -Dinstaller.resources.url=${MEDIALOC}/ -Ddefault.resources.url=file:${INSTALL_HOME}/lib/resources/ -classpath ${theCP} -Dsims.native-file-dir=${INSTALL_HOME}/lib 
org.openinstaller.core.EngineBootstrap ${INSTALLPROPS} 
+0

'/ var/folders/4t/7dky_l096m1fdl5gncg_w__80000gn/T // hs_err_pid5178.log'的內容是什麼? – admdrew

+0

@admdrew哎呦應該發佈,[這是](http://pastebin.com/i5DksP04) – jccnu619

+0

找到了解決方案,並回答[這裏](http://apple.stackexchange.com/questions/115664/sigsegv - 當 - 試圖安裝的Java的-EE-SDK-7)。 –

回答

0

剛一個瘋狂的猜測,因爲我有一個類似的問題與另一個軟件:

嘗試使用sudo

sudo [your installer] 
0

我知道這是一個老問題運行安裝程序,但我只是碰到了同樣的問題,並認爲我的解決方案可以幫助別人的未來。

我找到了答案在這裏:https://apple.stackexchange.com/a/115708/89930

總之,你需要設置幾個變量,然後以靜默模式運行安裝程序。

開始通過創建一個新的文本文件名爲「silent_install_answer_file」,並添加以下內容,根據需要更新值:

ClusteredInstance.Configuration.CLUSTER_NAME=c1 
ClusteredInstance.Configuration.CREATE_CLUSTER=false 
ClusteredInstance.Configuration.DOMAIN_NAME=domain1 
ClusteredInstance.Configuration.INSTANCE_NAME=instance1 
ClusteredInstance.Configuration.SERVER_ADMIN_PORT=4848 
ClusteredInstance.Configuration.SERVER_HOST_NAME=localhost 
ConfigType.Option.CREATE_CLUSTEREDINSTANCE=CREATE_CLUSTEREDINSTANCE 
ConfigType.Option.CREATE_DOMAIN=CREATE_DOMAIN 
ConfigType.Option.CREATE_STANDALONEINSTANCE=CREATE_STANDALONEINSTANCE 
ConfigType.Option.NO_CONFIGURATION=NO_CONFIGURATION 
Domain.Configuration.ADMIN_PASSWORD=password 
Domain.Configuration.ADMIN_PASSWORD_REENTER=password 
Domain.Configuration.ADMIN_PORT=4848 
Domain.Configuration.ADMIN_USER=admin 
Domain.Configuration.CREATE_SERVICE=false 
Domain.Configuration.DOMAIN_NAME=domain1 
Domain.Configuration.HTTP_PORT=8080 
Domain.Configuration.SERVICE_NAME=domain1Service 
Domain.Configuration.START_SERVER=false 
InstallHome.directory.INSTALL_HOME=/usr/local/glassfish4 
InstallType.Option.CONFIG_ONLY=CONFIG_ONLY 
InstallType.Option.INSTALL_AND_CONFIG=INSTALL_AND_CONFIG 
InstallType.Option.INSTALL_ONLY=INSTALL_ONLY 
InstallUserType.Option.ADVANCED_USER=ADVANCED_USER 
InstallUserType.Option.BASIC_USER=BASIC_USER 
JDKSelection.directory.HIDDEN_JDK= 
JDKSelection.directory.JDK_FROM_LIST_CHOICE=false 
JDKSelection.directory.JDK_LIST= 
JDKSelection.directory.JDK_TYPE_IN= 
JDKSelection.directory.JDK_TYPED_IN_CHOICE=false 
RegistrationOptions.regoptions.CREATE_NEWACCT=CREATE_NEWACCT 
RegistrationOptions.regoptions.DUMMY_PROP= 
RegistrationOptions.regoptions.SKIP_REGISTRATION=SKIP_REGISTRATION 
RegistrationOptions.regoptions.USE_EXISTINGACCT=USE_EXISTINGACCT 
RegistrationOptions.regoptions.USERNAME= 
RegistrationOptions.regoptions.USERPASSWORD= 
SOAccountCreation.accountinfo.COMPANYNAME= 
SOAccountCreation.accountinfo.COUNTRY_DROP_DOWN= 
SOAccountCreation.accountinfo.COUNTRY= 
SOAccountCreation.accountinfo.EMAIL= 
SOAccountCreation.accountinfo.FIRSTNAME= 
SOAccountCreation.accountinfo.LASTNAME= 
SOAccountCreation.accountinfo.PASSWORD= 
SOAccountCreation.accountinfo.REENTERPASSWORD= 
StandaloneInstance.Configuration.INSTANCE_NAME=instance1 
StandaloneInstance.Configuration.SERVER_ADMIN_PORT=4848 
StandaloneInstance.Configuration.SERVER_HOST_NAME=localhost 
UpdateTool.Configuration.ALLOW_UPDATE_CHECK=true 
UpdateTool.Configuration.BOOTSTRAP_UPDATETOOL=true 
UpdateTool.Configuration.PROXY_HOST= 
UpdateTool.Configuration.PROXY_PORT= 

檢查JAVA_HOME環境變量設置正確:

export JAVA_HOME="$(/usr/libexec/java_home)"

創建/Users/username/temp目錄(如果它不存在的話)(mkdir /Users/username/temp)。

最後,使用sudo運行安裝程序。您可能還需要在同一時間設置DISPLAY變量:

$ sudo DISPLAY=:0 ./java_ee_sdk-7-jdk7-macosx-x64.sh -a silent_install_answer_file -l /Users/username/temp -s

安裝程序可能需要幾分鐘的時間才能完成,並且因爲它是在無聲模式下運行,你可能看不到過程中多輸出時間,所以要耐心等待。

如果以靜默方式運行安裝程序麻煩,GlassFish的安裝程序文件可能有些你有幫助:https://glassfish.java.net/docs/4.0/installation-guide.pdf

一個看似相關的問題:java ee install failing on OSX

希望幫助別人!