很蛋疼的Mac,终于安装完毕。、
myEclipse运行java程序完美通过。
本地运行java完全不行。
将class文件拷贝至JAVA_HOME/bin下完美运行。
将jar文件拷贝JAVA_HOME/bin下完全不行。
环境变量配置:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/HomeCLASSPATH=.:${JAVA_HOME}/lib:${JAVA_HOME}/jre/libexport CLASSPATHexport JAVA_HOMEexport PATH=${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin终端报错:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff935838b5, pid=405, tid=36871
#
# JRE version: 7.0_25-b15
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libGL.dylib+0x18b5]  glGetString+0xf
#
# 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:
# /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/myeclipse/myEclipse10/hs_err_pid405.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.
#
Abort trap: 6再查看错误日志:#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fff935838b5, pid=405, tid=36871
#
# JRE version: 7.0_25-b15
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [libGL.dylib+0x18b5]  glGetString+0xf
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# 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.
#---------------  T H R E A D  ---------------比较长。就不贴上来额,,,求大神们指教啊
 JavaMacJVM报错