JAVA Active Rendering article

Started by
1 comment, last by RawBeen 15 years, 4 months ago
http://www.gamedev.net/reference/programming/features/javarender/ This looks super, right? I tried to compile it( javac SimpleWindowedGame.java ) but I just got these errors: Exception in thread "main" java.lang.NoClassDefFoundError: SimpleWindowedGame Caused by: java.lang.ClassNotFoundException: SimpleWindowedGame at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: SimpleWindowedGame. Program will exit.
Advertisement
try

javac -cp . SimpleWindowedGame.java
I guess it looks better:

SimpleWindowedGame.java:29: cannot find symbol
symbol : class BufferStrategy
location: class SimpleWindowedGame
BufferStrategy buffer = canvas.getBufferStrategy();
^
SimpleWindowedGame.java:38: cannot find symbol
symbol : class BufferedImage
location: class SimpleWindowedGame
BufferedImage bi = gc.createCompatibleImage( 640, 480 );
^
2 errors


This topic is closed to new replies.

Advertisement