无法运行playn-showcase-java(playn示例)

时间:2012-05-31 09:43:02

标签: playn

我正在做:http://code.google.com/p/playn/wiki/GettingStarted

当我尝试这样做时: 在Package Explorer中单击playn-showcase-java 按Command-Shift-F11或右键单击并选择Run as→Maven test

我得到了这个:

结果:

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-antrun-plugin:1.6:run (default) @ playn-showcase-java ---
[INFO] Executing tasks

main:
     [java] Exception in thread "main" java.lang.IllegalStateException: Function is not supported
     [java]     at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58)
     [java]     at org.lwjgl.opengl.EXTFramebufferObject.glBindFramebufferEXT(EXTFramebufferObject.java:199)
     [java]     at playn.java.JavaGLContext.bindFramebufferImpl(JavaGLContext.java:150)
     [java]     at playn.core.gl.GLContext.viewWasResized(GLContext.java:250)
     [java]     at playn.java.JavaGLContext.initGL(JavaGLContext.java:174)
     [java]     at playn.java.JavaGraphics.init(JavaGraphics.java:155)
     [java]     at playn.java.JavaPlatform.run(JavaPlatform.java:218)
     [java]     at playn.core.PlayN.run(PlayN.java:37)
     [java]     at playn.showcase.java.ShowcaseJava.main(ShowcaseJava.java:28)
     [java] Java Result: 1
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] PlayN Showcase Metaproject ........................ SUCCESS [2.359s]
[INFO] PlayN Showcase Core ............................... SUCCESS [5.828s]
[INFO] PlayN Showcase Java ............................... SUCCESS [22.047s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.125s
[INFO] Finished at: Thu May 31 12:03:05 EEST 2012
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------

我没有更改代码中的任何内容。这个演示有默认代码。

1 个答案:

答案 0 :(得分:0)

您的显卡必须支持playn的OpenGL 2.0。