Macos 无法在Max OS X 10.7.5上启动javafx jar
我正在VMware player上运行Mac OS X 10.7.5 我已经在我的系统上安装了这些-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
我无法在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;
}
});
}
}