可能是什么原因导致“Prism-ES2错误:GL_VERSION(major.minor)= 1.4”? [英] What could be reason for "Prism-ES2 Error : GL_VERSION (major.minor) = 1.4"?

查看:608
本文介绍了可能是什么原因导致“Prism-ES2错误:GL_VERSION(major.minor)= 1.4”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用eclipse IDE在Oracle Linux中开发简单的javafx程序。
i安装了jdk 7并且所有程序都正常运行,除了它显示

I am trying to develop simple javafx programs in Oracle Linux using eclipse IDE. i have installed jdk 7 and all programs runs properly except it shows

Prism-ES2 Error : GL_VERSION (major.minor) = 1.4

在控制台中。

例如,以下是简单的javaFX程序

For example,Following is the simple javaFX program

import javafx.application.*;
import javafx.scene.Group;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.paint.Paint;
import javafx.stage.Stage;
public class practiceFX extends Application{
public static void main(String args[])
{
    Application.launch(args);
}

@Override
public void start(Stage primaryStage) throws Exception {
    // TODO Auto-generated method stub
    Group root =new Group();
    Scene scene =new Scene(root,200,300);
    primaryStage.setTitle("PRACTICE");
    primaryStage.setScene(scene);
    primaryStage.setResizable(true);
    primaryStage.setScene(scene);
    primaryStage.show();
    System.out.println("hi");

}
}

,输出为

Prism-ES2 Error : GL_VERSION (major.minor) = 1.4
hi

请参见截图
此外,我无法运行javaFX示例。
当我试图运行Ensemble.jar然后它显示以下错误

Please see the screenshot too Also I can not run the javaFX samples. When i am trying to run Ensemble.jar then it shows following error

Prism-ES2 Error : GL_VERSION (major.minor) = 1.4

GThread-ERROR **: GThread system may only be initialized once.
aborting...
Aborted (core dumped)

请告诉我们如何解决此问题

Please tell how to fix this issue

推荐答案

您使用的是哪个版本的JavaFX?请注意,RedHat / OEL不支持FX2.x.但FX8是,您可能想尝试开发FX8: https://jdk8.java.net/download .html

Which version of JavaFX are you using? Please, note FX2.x is not supported on RedHat/OEL. But FX8 is, you may want to try dev releases of FX8: https://jdk8.java.net/download.html

关于FX8:

Prism-ES2错误: GL_VERSION(major.minor)= 1.4 消息不是错误,而是通知消息。它将在jdk8版本中删除: https://javafx-jira.kenai.com/browse来自样本的/ RT-29273

Prism-ES2 Error : GL_VERSION (major.minor) = 1.4 message is not an error but notification message. It will be removed in jdk8 release: https://javafx-jira.kenai.com/browse/RT-29273

GThread-ERROR 是另一回事。这是一个可能尚未解决的问题。请参见 https://javafx-jira.kenai.com/browse/RT-32436 https://javafx-jira.kenai.com/browse/RT -28580#comment-358413

GThread-ERROR from samples is another story. It's an issue which may be not yet fixed. See https://javafx-jira.kenai.com/browse/RT-32436 and https://javafx-jira.kenai.com/browse/RT-28580#comment-358413

这篇关于可能是什么原因导致“Prism-ES2错误:GL_VERSION(major.minor)= 1.4”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆