“Prism-ES2错误:GL_VERSION (major.minor) = 1.4”的原因是什么?

时间:2022-12-20 17:05:45

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

我正在尝试使用eclipse IDE在Oracle Linux中开发简单的javafx程序。我已经安装了jdk 7,所有程序正常运行,只是它显示了。

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

in console.

在控制台。

For example,Following is the simple javaFX program

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

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");

}
}

and the output is

和输出

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

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

请也看一下截图,我也不能运行javaFX示例。当我试着表演合奏时。然后它显示以下错误。

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

请告诉我如何解决这个问题

“Prism-ES2错误:GL_VERSION (major.minor) = 1.4”的原因是什么?

1 个解决方案

#1


3  

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

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

Regarding FX8:

关于FX8:

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

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

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

来自样本的GThread-ERROR是另一个故事。这是一个可能还没有解决的问题。看到https://javafx - jira.kenai.com/browse/rt - 32436和https://javafx——jira.kenai.com/browse/rt - 28580 #评论- 358413

#1


3  

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

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

Regarding FX8:

关于FX8:

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

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

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

来自样本的GThread-ERROR是另一个故事。这是一个可能还没有解决的问题。看到https://javafx - jira.kenai.com/browse/rt - 32436和https://javafx——jira.kenai.com/browse/rt - 28580 #评论- 358413