我在做: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] ------------------------------------------------------------------------
我没有更改代码中的任何内容。此演示有默认代码。