Hi peeps!
Exception in thread "main" java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(Unknown Source)
at org.lwjgl.opengl.GLContext.getSupportedExtensions(GLContext.java:190)
at org.lwjgl.opengl.ContextCapabilities.initAllStubs(ContextCapabilities.java:3442)
at org.lwjgl.opengl.ContextCapabilities.<init>(ContextCapabilities.java:3690)
at org.lwjgl.opengl.GLContext.useContext(GLContext.java:328)
at org.lwjgl.opengl.GLContext.useContext(GLContext.java:287)
The exception above refers me to the line of code in which I have:
public class someclass extends GLCanvas implements Runnable {
public someclass () {
setCurrent();
try {
GLContext.useContext(this);
} catch (LWJGLException e) {
e.printStackTrace();
}
}
public void run() {
...
}
}
Now, this exception happens when I test my application on Windows XP SP3 Virtual Machine inside Parallels Desktop. However, the same code works perfectly fine under Mac OS X (10.5 & 10.6). Suggestions in the IRC channel directed me to perhaps the lack of support for OpenGL in my Virtual Machine. Therefore I tested the LWJGL online demos and they all did indeed run perfectly fine under the Windows XP SP3 Virtual Machine. Next step was to look through the documentation APIs. Under the GLContext class documentation I gathered the following:
- Version:
$Revision: 3279 $ $Id: GLContext.java 3279 2010-03-11 21:06:49Z spasi $
- Author:
elias_naur
I would appreciate if the author, revisor or any other member of the LWJGL team could help me with this issue.
Regards,
multiHYP