Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 无法在Max OS X 10.7.5上启动javafx jar_Macos_Javafx_Executable Jar - Fatal编程技术网

Macos 无法在Max OS X 10.7.5上启动javafx jar

Macos 无法在Max OS X 10.7.5上启动javafx jar,macos,javafx,executable-jar,Macos,Javafx,Executable Jar,我正在VMware player上运行Mac OS X 10.7.5 我已经在我的系统上安装了这些- 我有jdk-7u12-ea-bin-b07-macosx-x86\u 64-27\u dec\u 2012.dmg jre-7u10-macosx-x64.dmg netbeans-7.2.1-ml-javase-macosx.dmg 我已经将JavaHome设置为指向Java1.7。在命令提示下,显示版本为- Java(TM)SE运行时环境(build 1.7.0_12-ea-b07) Jav

我正在VMware player上运行Mac OS X 10.7.5

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

  • 我有jdk-7u12-ea-bin-b07-macosx-x86\u 64-27\u dec\u 2012.dmg

  • jre-7u10-macosx-x64.dmg

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

  • 我已经将JavaHome设置为指向Java1.7。在命令提示下,显示版本为-

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

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

    当我试图运行从JavaFX应用程序创建的jar文件时。它会在commd提示符下抛出此致命错误-

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

    ex时发生致命错误的详细信息

    在启动netbeans时,它会产生此致命错误-

    从系统首选项打开Java首选项时,它会显示这一致命错误-


    我无法在Mac OS X上执行任何操作,如何才能消除此错误?

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

    我记录了一个关于此问题的问题:

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

    如果使用
    publicstaticvoidmain(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;
                }
            });
        }
    
    }
    
    公共类主{
    公共静态void main(字符串[]args){
    AccessController.doPrivileged(新的privilegedAction(){
    @凌驾
    公开募捐{
    Properties props=System.getProperties();
    道具放置(“棱镜命令”、“sw”);
    Application.launch(YourApplication.class);
    返回null;
    }
    });
    }
    }
    
    我在Mac OS X 10.8.2上尝试了相同的配置,但仍然遇到了相同的问题:(我也遇到了同样的问题,我认为这与OS X在VMWarehous中缺乏适当的视频支持有关,与EA无关,我尝试了几个版本。启动应用程序时,您也可以使用-Dprism.order=sw。
    # 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
    
    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;
                }
            });
        }
    
    }