Here is my code. (http://www.mediafire.com/?wazye8jvx9fa5z2)
After setting it with applet loader I can see only plain, black screen instead of boxes which I can see in eclipse preview. Can this be caused by using slick-util or this version of jdk (https://aur.archlinux.org/packages.php?ID=51906)?
Hard to tell from the information provided, you need to get the output of the java console. Is there anything output on the Java console?
Mon May 14 13:11:19 CEST 2012 INFO:Use Java PNG Loader = true
This is what I get from eclipse console. Nothing from applet. Here is my applet uploaded (http://jakobeks.net/3d-lwjgl-test/).
Here is the output that I get in the java console
This occurred while 'Switching applet'
net.jakobeks.applet.MainApplet
java.lang.ClassNotFoundException: net.jakobeks.applet.MainApplet
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 java.lang.ClassLoader.loadClass(Unknown Source)
at org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:1309)
at org.lwjgl.util.applet.AppletLoader$2.run(AppletLoader.java:912)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
network: CleanupThread used 51575563 us
It seems that the class "net.jakobeks.applet.MainApplet" can not be found as specified in your al_main parameter <param name="al_main" value="net.jakobeks.applet.MainApplet">.
Looking inside the damatic.jar I don't see this class at this location, but do see it at "net.jakobeks.damatic.MainApplet".
Ok, this is fixed, but I still see black screen after applet loads up.
Now getting the following error, seems like you compiled for Java 7, currently still on Java 6 on this computer.
This occurred while 'Switching applet'
null
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(Unknown Source)
at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:909)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsupportedClassVersionError: net/jakobeks/applet/MainApplet : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
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 java.lang.ClassLoader.loadClass(Unknown Source)
at org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:1309)
at org.lwjgl.util.applet.AppletLoader$2.run(AppletLoader.java:912)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Hm... Ok, I'll jump to Windows and try to compile with sun-6 and oracle-7 JDK. Will update in ~30min.
Ok, there is same problem if I compile it with Windows Java. Should it work with OpenJDK?
You can build for older versions of Java when compiling with Java 7, just set the build target to Java 5 or something in the IDE settings.
I know, but I have problems with oracle jdk and jre on Arch with lwjgl applets - they don't work. I think I might use jogl, it causes no problems with applets.
that linux/java 7 applet issue is fixed in the nightly builds and will be part of the next release.
JOGL tutorial base is too poor for me to make something, Ill stick to lwjgl which I know a little. I tried nightly build of LWJGL but it still doesn't work. I have no idea where error can be. Here is whole applet pack (http://www.mediafire.com/?59o3aykdyl7ta58) which doesn't work with source in applet.jar.
The current error I'm getting on your applet found here (http://jakobeks.net/3d-lwjgl-test/). Is that it can not find slick-util.jar (as specified in the html of your applet tag), indeed I have looked at the following location:
http://jakobeks.net/applet/slick-util.jar
And that file is not there, maybe you forgot to upload that?
I removed slick-util from project when I used new LWJGL, but I forgot to remove it from site, now it's removed and it still doesn't work. Have you tried to run it local from basicapplet.html? It give me same error like on site - white screen after loading resources.
ok, after your latest change, the uploaded applet starts LWJGL and runs (so some progress) but all I see is a cyan color applet box.
The applet download that you linked to at http://www.mediafire.com/?59o3aykdyl7ta58 doesn't work because the al_main in the html is wrong again it says "net.jakobeks.MainApplet" when it should be "net.jakobeks.applet.MainApplet"
Yeah, some little progress. In local file, after fixing I still see white plane, like on my site, I think there can be something wrong in my applet class, so it can't be loaded to LWJGL applet loader, but can be launched in Eclipse.
I get a white screen too but after waiting for a few seconds it turns cyan.
Do try something a bit more simpler to just get applet working first like just drawing a quad before trying something more advance like 3d.
Ok, I will, but you see no errors in MainApplet.java?
Yeah! I made it work! There is need to make 4 buffers and flip them to AppletLoader "see" this.
Good job, glad you finally got it to work.