我正在尝试使用 eclipse IDE 在 Oracle Linux 中开发简单的 javafx 程序。我已经安装了 jdk 7 并且所有程序都正常运行,除了它显示
Prism-ES2 Error : GL_VERSION (major.minor) = 1.4
在控制台中。
例如,下面是简单的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");
}
}
输出是
Prism-ES2 Error : GL_VERSION (major.minor) = 1.4
hi
请也查看屏幕截图我也无法运行 javaFX 示例。当我尝试运行 Ensemble.jar 时,它显示以下错误
Prism-ES2 Error : GL_VERSION (major.minor) = 1.4
GThread-ERROR **: GThread system may only be initialized once.
aborting...
Aborted (core dumped)
请告诉如何解决这个问题