Skip to main content
gamedev.net
🔒 Locked 🤖 Godot

JAVA Active Rendering article

Started by RawBeen 1 reply 1.3k views
Original Post
RawBeen
RawBeen
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.
gimbal_
gimbal_
try

javac -cp . SimpleWindowedGame.java
RawBeen
RawBeen
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


Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.