4

我在 VMware 播放器上运行 Mac OS X 10.7.5。

我已经在我的系统上安装了这些 -

  1. 我有 jdk-7u12-ea-bin-b07-macosx-x86_64-27_dec_2012.dmg

  2. jre-7u10-macosx-x64.dmg

  3. netbeans-7.2.1-ml-javase-macosx.dmg

我已将 java Java Home 设置为指向 java 1.7。在命令提示符下,它显示版本为 -

Java(TM) SE 运行时环境 (build 1.7.0_12-ea-b07)

Java HotSpot(TM) 64 位服务器 VM(构建 24.0-b28,混合模式)

Whenener 我正在尝试运行从我的 JavaFX 应用程序创建的 jar 文件。它在命令提示符下抛出这个致命错误-

# A fatal error has been detected by the Java Runtime Environment:

#  SIGSEGV (0xb) at pc=0x00007fff88a54fdf, pid=404, tid=18947

# JRE version: Java(TM) SE Runtime Environment (7.0_12-b07) (build 1.7.0_12-ea-b07)

# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b28 mixed mode bsd-amd64 compressed oops)

# Problematic frame:

# C  [libobjc.A.dylib+0x9fdf]  objc_msgSend_fixup+0x5f

# 无法写入核心转储。核心转储已被禁用。要启用核心转储,请在再次启动 Java 之前尝试“ulimit -c unlimited”

# An error report file with more information is saved as:

# /Users/User/Desktop/JavaFX/hs_err_pid404.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

前http://neelamsharma.s3.amazonaws.com/jarerrorlog.log时致命错误的详细信息

在启动 netbeans 时,它会产生这个致命错误 - http://neelamsharma.s3.amazonaws.com/hs_err_while%20_running_netbeans.log

在从系统偏好设置打开 Java 偏好设置时,它显示了这个致命的错误 - http://neelamsharma.s3.amazonaws.com/javapreferences.log

我无法在 Mac OS X 上做任何事情,我怎样才能摆脱这个错误?

4

3 回答 3

0

我为这个问题记录了一个问题:http: //javafx-jira.kenai.com/browse/RT-28144

于 2013-02-02T18:38:14.487 回答
0

卸载 EA jdk 并使用已发布的版本。

于 2013-01-29T20:53:57.077 回答
0

Neelam,您只需要prism.order在 JavaFX 加载您的javafx.application.Applcation类之前更改系统属性。

例如,如果您的类public static void main(String[])扩展了javafx.application.Application该类,则将该main(String[])方法移至另一个类Main.java

2)向您的main(String[])方法添加一些将prism.order属性更改为"sw"(软件渲染)的代码,例如:

public class Main {

    public static void main(String[] args) {
        AccessController.doPrivileged(new PrivelegedAction<Void>() {
            @Override
            public Void run() {
                Properties props = System.getProperties();
                props.put("prism.order", "sw");
                Application.launch(YourApplication.class);
                return null;
            }
        });
    }

}
于 2015-06-23T12:42:37.023 回答