Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: ClassNotFound error when running applet in browser? on: 2012-12-26 00:07:08
No luck Sad I tried moving everything to GAME-LIB and I tried putting all the JARS in the root of the folder with the HTML and nadda.
2  Game Development / Newbie & Debugging Questions / Re: ClassNotFound error when running applet in browser? on: 2012-12-25 07:25:58
Well Slick uses LWJGL's loader so I thought it would be the same? I followed a Slick tutorial this time and I had actually followed that same tutorial you linked previously and ended up with the same error. Frankly, I am starting to wonder if all this time trying to get this browser game running is worth it, with HTML 5 being the new cool kid now. Hell even Javascript looks trendier. Don't get me wrong, Java is still my language of choice and I think Slick+ Java is awesome for GameDev, but I think I might just hop on the HTML5 bandwagon for my next browser game.
3  Game Development / Newbie & Debugging Questions / Re: ClassNotFound error when running applet in browser? on: 2012-12-23 22:19:15
Hmmm nope. Another ClassNotFound exception, I tried using both main.class and org.myorg.SpaceWalk.main.class in case it didn't know which package to look in. I should note though, that this actually displays "Error: Class Not Found" on the screen whereas my HTML simply shows a blank. Thanks for the reply though

EDIT: To be clear though, it runs correctly when I run it from eclipse
4  Game Development / Newbie & Debugging Questions / ClassNotFound error when running applet in browser? on: 2012-12-23 22:02:14
Hi,
So I am trying to run a little game I made within a browser. I followed the Spin's tutorial in the wiki but I feel that it left out some important information. I have signed the jar I created from my game and I have all necessary files in the appropriate folder. The HTML is directly copied from the tutorial with the appropriate name changes. Yet I still receive this error
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
Sun Dec 23 15:41:43 EST 2012 INFO:Clear up
Sun Dec 23 15:41:43 EST 2012 ERROR:org.myorg.SpaceWalk
java.lang.ClassNotFoundException: org.myorg.SpaceWalk
   at java.net.URLClassLoader$1.run(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 java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Unknown Source)
   at org.newdawn.slick.AppletGameContainer.init(AppletGameContainer.java:124)
   at org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:1330)
   at org.lwjgl.util.applet.AppletLoader$2.run(AppletLoader.java:909)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$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)
This occurred while 'Initializing real applet'
Unable to create game container
java.lang.RuntimeException: Unable to create game container
   at org.newdawn.slick.AppletGameContainer.init(AppletGameContainer.java:148)
   at org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:1330)
   at org.lwjgl.util.applet.AppletLoader$2.run(AppletLoader.java:909)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$200(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.awt.EventQueue$3.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$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)


My HTML is here:http://pastebin.com/4fwaUsB1
And a snapshot of my GAME-LIB folder for sanity:

5  Game Development / Newbie & Debugging Questions / Error Running Applet in Browser on: 2012-11-27 06:43:34
So I am trying to run a Slick applet I made in browser (using local files, not uploaded to the net yet) and I keep getting an error that says 'an error occured while loading the applet. Please contact support. The error occured while 'Downloading packages'. I've got signed JARs for windows, mac and linux as well as the lwjgl.util.applet jar in the folder and my own game exported as a JAR in the file so I dont know why this is happening? This is my html
<applet code="org.lwjgl.util.applet.AppletLoader"
        archive="lwjgl_util_applet.jar"
        codebase="."
        width="800" height="600">
 
  <param name="al_title" value="myslickgame">
  <param name="al_main" value="org.newdawn.slick.AppletGameContainer">
  <param name="game" value="org.defaultpackage.main">
 
  <param name="al_jars" value="spacewalk.jar, lwjgl.jar, slick.jar">
 
  <param name="al_windows" value="windows_natives.jar">
  <param name="al_linux" value="linux_natives.jar">
  <param name="al_mac" value="macosx_natives.jar">
 
  <param name="separate_jvm" value="true">
</applet>
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (55 views)
2014-04-15 18:08:23

BurntPizza (53 views)
2014-04-15 03:46:01

UprightPath (66 views)
2014-04-14 17:39:50

UprightPath (49 views)
2014-04-14 17:35:47

Porlus (66 views)
2014-04-14 15:48:38

tom_mai78101 (90 views)
2014-04-10 04:04:31

BurntPizza (151 views)
2014-04-08 23:06:04

tom_mai78101 (247 views)
2014-04-05 13:34:39

trollwarrior1 (204 views)
2014-04-04 12:06:45

CJLetsGame (211 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!