Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Applet Clubie...  (Read 2653 times)
0 Members and 1 Guest are viewing this topic.
Offline Dreamcatchermatt

Junior Duke





« Posted 2010-07-20 19:19:54 »

Hi all,

I've been going through the tutorials on Slick Wiki.

I'm working on Spin's applet tutorial. Like the basic app in the tut', I have a Slick clock application, that I want to display on my web page.

Image:


When running it locally, this works fine. However, after three restart-from-scratch attempts at following the applet tutorial, I'm getting the following error:

Image:


How do I find out what is going wrong here? I don't know how to debug this.

Halp!
Smiley
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #1 - Posted 2010-07-20 19:50:38 »

Can you provide the output of the java console?

Would also be really helpful if you could provided a link to the applet so as to allow a closer look. If you not then at least a copy of the html.
Offline Dreamcatchermatt

Junior Duke





« Reply #2 - Posted 2010-07-20 20:07:58 »

I've just uploaded the site it to my server.

gameworks.ravensbridge.com

It will hopefully be a development blog and graphics showcase... eventually Smiley

Edit:
It seems to work fine on my local host.... Let me have a look at that....
Can you provide the output of the java console?
Sorry, how do I do that?  Roll Eyes
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #3 - Posted 2010-07-20 20:17:36 »

according to the java console you seem to be missing

http://gameworks.ravensbridge.com/apps/lwjgl.jar.pack.lzma

tried to access that file directly, doesn't seem to be on the server.
Offline Dreamcatchermatt

Junior Duke





« Reply #4 - Posted 2010-07-20 20:19:17 »

Ahh, ok... let me go upload that

Edit:

Uploading that file (it seems to already be on the server however) didn't make a difference. I've decided to upload the whole 'app' directory from my local server, which seems to work ok.
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #5 - Posted 2010-07-20 20:22:01 »


*shock* and you call yourself a java developer Smiley

anyway when developing applets, usually useful to just show the java console always. This is done by enabling it in the java control panel (found in windows control panel on windows).

Once in the java control panel, click the advanced tab -> show java console -> and check java console.

now everytime you run a java applet in the browser the java console will pop up.

Alternatively to manually show it, you can right click the java icon in the system tray when running an applet, then just choose show java console.
Offline Dreamcatchermatt

Junior Duke





« Reply #6 - Posted 2010-07-20 20:26:39 »

Sorry, how do I do that?  Roll Eyes
*shock* and you call yourself a java developer Smiley

Haha, yeh... I thought you meant the Java Console in the browser (like firebug)  Grin

Cheers for that though, It will be helpfull
Offline Dreamcatchermatt

Junior Duke





« Reply #7 - Posted 2010-07-20 21:01:51 »

Ok, this is really weird...

Locally, this works fine.

On the remote server, it does not work because the file is missing.

Both directory structures and files are Exactly the same.

Could there be something happening that I don't know about?

This may be a 'duhh' moment, but I don't need to install anything on the server to allow it to give out applets right? Like PHP needs to be installed to allow parsing php scripts?
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #8 - Posted 2010-07-20 21:08:58 »

Ok, this is really weird...

Locally, this works fine.

On the remote server, it does not work because the file is missing.

Both directory structures and files are Exactly the same.

Could there be something happening that I don't know about?

This may be a 'duhh' moment, but I don't need to install anything on the server to allow it to give out applets right? Like PHP needs to be installed to allow parsing php scripts?

nope you don't need to do anything on the server.

however the link http://gameworks.ravensbridge.com/apps/lwjgl.jar.pack.lzma is still dead (as you can see by clicking it) and this is one of the files your applet is pointing to in the html (at http://gameworks.ravensbridge.com/apps/countdownTimerApp.html).
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 816
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #9 - Posted 2010-07-20 21:45:00 »

1  
2  
3  
4  
java.io.FileNotFoundExceptions for:

http://gameworks.ravensbridge.com/apps/apps/lwjgl_util_applet.jar
http://gameworks.ravensbridge.com/apps/apps/lzma.jar


Note: /apps/apps/

Some files exist in /apps/apps/ and some in /apps/

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Dreamcatchermatt

Junior Duke





« Reply #10 - Posted 2010-07-20 22:11:23 »

uuuh.. I cant believe that i did not spot that...

Now why is that happening?

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  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
 <applet code="org.lwjgl.util.applet.AppletLoader"
            archive="lwjgl_util_applet.jar, lzma.jar"
            codebase="./apps/"
            width="730" height="110">
 
      <!-- The following tags are mandatory -->
 
      <!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
      <param name="al_title"
             value="NixieTimer">
 
      <!-- Main Applet Class -->
      <param name="al_main"
             value="org.newdawn.slick.AppletGameContainer">
      <param name="game"
             value="DecoGame_NixieClock.NixieClockGame">
 
      <!-- logo to paint while loading, will be centered -->
      <param name="al_logo"
             value="appletlogo.png">
 
      <!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
      <param name="al_progressbar"
             value="appletprogress.gif">
 
      <!-- List of Jars to add to classpath -->
      <param name="al_jars"
             value="slick.jar, NixieClock.jar, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma">
 
      <!-- signed windows natives jar in a jar -->
      <param name="al_windows"
             value="windows_natives.jar.lzma">
 
      <!-- signed linux natives jar in a jar -->
      <param name="al_linux"
             value="linux_natives.jar.lzma">
 
      <!-- signed mac osx natives jar in a jar -->
      <param name="al_mac"
             value="macosx_natives.jar.lzma">
 
      <!-- signed solaris natives jar in a jar -->
      <param name="al_solaris"
             value="solaris_natives.jar.lzma">
 
      <!-- Tags under here are optional -->
 
      <!-- Version of Applet, important otherwise applet won't be cached, version change will update applet, must be int or float -->
      <!-- <param name="al_version" value="0.1">
 -->
 
      <!-- background color to paint with, defaults to white -->
      <!-- <param name="al_bgcolor" value="000000">
 -->
 
      <!-- foreground color to paint with, defaults to black -->
      <!-- <param name="al_fgcolor" value="ffffff">
 -->
 
      <!-- error color to paint with, defaults to red -->
      <!-- <param name="al_errorcolor" value="ff0000">
 -->
 
      <!-- whether to run in debug mode -->
      <!-- <param name="al_debug" value="true">
 -->
 
      <!-- whether to prepend host to cache path - defaults to true -->
      <param name="al_prepend_host"
             value="false">
     </applet>


I don't exactly understand what some of this is for, but the only time that directories are set is at
1  
2  
3  
4  
<applet code="org.lwjgl.util.applet.AppletLoader"
            archive="lwjgl_util_applet.jar, lzma.jar"
            codebase="./apps/"
            width="730" height="110">


so where does the 'apps/apps/' come from?

EDIT:
Ok, so I get the same error message locally, but the applet displays properly regardless... I'm going to try moving the files to the 'apps/apps/' directory to see if that makes any difference.

I don't really like to do that though.. I'd rather understand why it is so.
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #11 - Posted 2010-07-20 22:18:00 »

why not start with something simple first by just putting everything in one directory (including html) so you don't have to be look in other directories or paths. You can then move to something more complex like you have now by using the frame/javascript stuff. Should make it easier to get it all just working.
Offline Dreamcatchermatt

Junior Duke





« Reply #12 - Posted 2010-07-20 22:21:10 »

http://gameworks.ravensbridge.com/apps/countdownTimerApp.html

there's the page that I'm AJAXing in. I generally make my web pages that way out of habit. Navigating to that page directly has the same result.

I'm going to start again and throw together a bare bones test...
10 mins...
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #13 - Posted 2010-07-20 22:26:36 »

http://gameworks.ravensbridge.com/apps/countdownTimerApp.html

there's the page that I'm AJAXing in. I generally make my web pages that way out of habit. Navigating to that page directly has the same result.

well using that page it fails with an error about not finding slick.jar, this is looked for at
http://gameworks.ravensbridge.com/app/app/slick.jar due to the ./app/ bit in the applet tag and as thats not a valid link, it fails to load.

the '.' means current path (http://gameworks.ravensbridge.com/app) plus "/app/"
Offline Dreamcatchermatt

Junior Duke





« Reply #14 - Posted 2010-07-20 22:51:55 »

ok, i'm putting everything in the root directory and setting the the codebase attribute to
1  
codebase=""


if that does not work, i'll try using an absolute url..
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #15 - Posted 2010-07-20 23:00:46 »

ok, i'm putting everything in the root directory and setting the the codebase attribute to
1  
codebase=""


if that does not work, i'll try using an absolute url..

you'll want to set it to

codebase="."
Offline Dreamcatchermatt

Junior Duke





« Reply #16 - Posted 2010-07-20 23:03:04 »

Thanks for all your help guys.

I'll give that a try.

Then I'm going to leave this for the moment - my FTP client is being an ass, my server keeps disconnecting and I'm getting pretty fed up with dealing with it rather than getting on with actual game work, so I'm going to call it a night and try again in the morning.

Cheers,
Matt
Offline Dreamcatchermatt

Junior Duke





« Reply #17 - Posted 2010-07-21 14:35:32 »

Ok, I've started again from scratch this morning.

My HTML page:
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  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>Test Applet</title>
  </head>
  <body>

  <applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar, lzma.jar" codebase="." width="640" height="480">
 
    <!-- The following tags are mandatory -->
   
    <!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
    <param name="al_title" value="TestApplet">
   
    <!-- Main Applet Class -->
    <param name="al_main" value="TestAmpplet.myApplet.Main">
   
    <!-- logo to paint while loading, will be centered -->
    <param name="al_logo" value="appletlogo.png">
   
    <!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
    <param name="al_progressbar" value="appletprogress.gif">
   
    <!-- List of Jars to add to classpath -->
    <param name="al_jars" value="lwjgl_applet.jar.pack.lzma, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma, res.jar.lzma">
   
    <!-- signed windows natives jar in a jar -->
    <param name="al_windows" value="windows_natives.jar.lzma">
   
    <!-- signed linux natives jar in a jar -->
    <param name="al_linux" value="linux_natives.jar.lzma">
   
    <!-- signed mac osx natives jar in a jar -->
    <param name="al_mac" value="macosx_natives.jar.lzma">

    <!-- signed solaris natives jar in a jar -->
    <param name="al_solaris" value="solaris_natives.jar.lzma">
     
     <param name="separate_jvm" value="true">
  </applet>

  <p>
    if <code>al_debug</code> is true the applet will load and extract resources with a delay, to be able to see the loader process.
  </p>

  </body>
</html>


My Applet's Main class:
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  
package myApplet;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.SlickException;


/**
 *
 * @author Administrator
 */


  public class Main {

    private static AppGameContainer app;

    private static TestApplet sg;
   
    public static void main(String[] args) throws SlickException
    {
       
       
        sg = new TestApplet();
        app = new AppGameContainer(sg);
       
        app.setDisplayMode(640, 480, false);
        app.start();


    }  
}


My Game Class:

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  
package myApplet;

import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;

/**
 * Class Name:
 * Description:
 * Author Administrator
 * Date Created: Jul 20, 2010
 * (See and of class for change-log)
 */

public class TestApplet extends BasicGame{

    public TestApplet()
    {
        super("Ravensbride Gameworks: Nixie Clock");
    }

    @Override
    public void init(GameContainer gc) throws SlickException {

    }

    @Override
    public void update(GameContainer gc, int i) throws SlickException {
        try {
            Thread.sleep(500);
        } catch (InterruptedException ex) {
            Logger.getLogger(TestApplet.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public void render(GameContainer gc, Graphics g) throws SlickException {
        g.drawString(new Date().toGMTString(), 10, 40);
    }
}


The console output i'm getting this time (different)
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletlogo.png
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletprogress.gif
This occurred while 'Switching applet'
java.lang.ClassNotFoundException: TestAppplet.myApplet.Main
   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:943)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:751)
   at java.lang.Thread.run(Unknown Source)


Can anyone shed any light on what is going on here?
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #18 - Posted 2010-07-21 14:43:42 »

your using Slick2D so this line is incorrect
1  
<param name="al_main" value="TestAmpplet.myApplet.Main">


When using slick2D the al_main should be "org.newdawn.slick.AppletGameContainer" and you should use the game parameter to tell Slick2D what is your main class.

So you should use
1  
2  
<param name="al_main" value="org.newdawn.slick.AppletGameContainer">
<param name="game" value="TestAmpplet.myApplet.Main">
Offline Dreamcatchermatt

Junior Duke





« Reply #19 - Posted 2010-07-21 15:11:09 »

Ahh, ok.

Now I get the following error...

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletlogo.png
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletprogress.gif
This occurred while 'Switching applet'
java.lang.ClassNotFoundException: org.newdawn.slick.AppletGameContainer
   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:943)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:751)
   at java.lang.Thread.run(Unknown Source)


I think the problem is that I just really don't understand what any of this means. Does anyone know of any Slick Applet tutorials that go into what is happening in more detail?
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #20 - Posted 2010-07-21 15:15:15 »

ok this problem is, if want to use Slick2D then you must also use the slick.jar Smiley

The following misses, slick.jar
1  
<param name="al_jars" value="lwjgl_applet.jar.pack.lzma, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma, res.jar.lzma">


You need to upload and include slick jar and add it to the above parameter.
1  
<param name="al_jars" value="lwjgl_applet.jar.pack.lzma, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma, res.jar.lzma, slick.jar">


There is a tutorial on the slick2d wiki i think.
Offline Dreamcatchermatt

Junior Duke





« Reply #21 - Posted 2010-07-21 15:20:30 »

AHHHHH...

so 'param name="al_jars"' needs to contain a reference to every library that I use?

(The code I have is copied straight from that very tutorial btw  Grin )

Ok, so now i'm getting:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletlogo.png
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletprogress.gif
Wed Jul 21 16:21:28 BST 2010 ERROR:TestApplet.myApplet.Main
java.lang.ClassNotFoundException: TestApplet.myApplet.Main
   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:954)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:751)
   at java.lang.Thread.run(Unknown Source)
This occurred while 'Initializing real applet'
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:954)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:751)
   at java.lang.Thread.run(Unknown Source)


Does my <param name="al_main" value="TestApplet.myApplet.Main"> have to reference my applications Main method, or the actual game method?

EDIT: also, does my Main method have to create an AppGameContainer or an AppletGameContainer?
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #22 - Posted 2010-07-21 15:36:30 »

so 'param name="al_jars"' needs to contain a reference to every library that I use?
Yup i'm afraid so, its not yet advanced enough to automatically guess and obtain the needed jars Smiley

EDIT: also, does my Main method have to create an AppGameContainer or an AppletGameContainer?
You only use AppletGameContainer in the html when using applets with Slick2D. Also remember when running slick java applets the main method is never called or used, so you can leave AppGameContainer in the main method and use the same code for both slick applets and applications.

right now the next error you are getting is because your missing the jar containing your games code, so what you need to do is put your code in a jar and add it to al_jars.
Offline Dreamcatchermatt

Junior Duke





« Reply #23 - Posted 2010-07-21 15:46:06 »

To carry on the nubie questions ...

1  
2  
3  
<!-- Main Applet Class -->
    <param name="al_main" value="org.newdawn.slick.AppletGameContainer">
    <param name="game" value="TestApplet.myApplet.Main">


My application is in TestApplet.jar. does this mean that i need the game classpath to be 'TestApplet.myApplet.Main' or just 'myApplet.Main'?

EDIT:

Ahh, the second one seems to work (sorta...)

At least it seems to be finding everything now. I'm thinking that maybe I should have the actual 'TestApplet extends BasicGame' class in the 'game' parameter, rather than the applications main class, right?
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletlogo.png
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletprogress.gif
Wed Jul 21 16:46:18 BST 2010 ERROR:myApplet.Main cannot be cast to org.newdawn.slick.Game
java.lang.ClassCastException: myApplet.Main cannot be cast to org.newdawn.slick.Game
   at org.newdawn.slick.AppletGameContainer.init(AppletGameContainer.java:124)
   at org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:954)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:751)
   at java.lang.Thread.run(Unknown Source)
This occurred while 'Initializing real applet'
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:954)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:751)
   at java.lang.Thread.run(Unknown Source)


EDIT-EDIT:

 Grin



Finaly!

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletlogo.png
Loaded image: jar:http://localhost/gameworks/apps/testApp/lwjgl_util_applet.jar!/appletprogress.gif
Wed Jul 21 16:48:43 BST 2010 INFO:Slick Build #274
Wed Jul 21 16:48:45 BST 2010 INFO:Starting display 640x480
Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
Failed to initialize device Wacom Virtual Hid Driver because of: java.io.IOException: Failed to acquire device (8007001e)
Wed Jul 21 16:48:45 BST 2010 INFO:Found 4 controllers
Wed Jul 21 16:48:45 BST 2010 INFO:0 : Comfort Curve Keyboard 2000
Wed Jul 21 16:48:45 BST 2010 INFO:1 : Wacom Virtual Hid Driver
Wed Jul 21 16:48:45 BST 2010 INFO:2 : Wacom Virtual Hid Driver
Wed Jul 21 16:48:45 BST 2010 INFO:3 : Virtual Keyboard Driver

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 78
Projects: 15


★★★★★


« Reply #24 - Posted 2010-07-21 15:49:51 »

To carry on the nubie questions ...

1  
2  
3  
<!-- Main Applet Class -->
    <param name="al_main" value="org.newdawn.slick.AppletGameContainer">
    <param name="game" value="TestApplet.myApplet.Main">


My application is in TestApplet.jar. does this mean that i need the game classpath to be 'TestApplet.myApplet.Main' or just 'myApplet.Main'?



jar file name has nothing to do with specifying the class name to use. You only need to put the names of the packages (folders in the jar) before the name of the your Main class.
Offline Dreamcatchermatt

Junior Duke





« Reply #25 - Posted 2010-07-21 15:54:21 »

Yeh, I tried that and it works. (Edited my last post)

Thanks all Smiley I'm slowly getting there. Now I just need to figure out why it works and I'll be happy.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Longarmx (52 views)
2014-10-17 03:59:02

Norakomi (42 views)
2014-10-16 15:22:06

Norakomi (32 views)
2014-10-16 15:20:20

lcass (37 views)
2014-10-15 16:18:58

TehJavaDev (68 views)
2014-10-14 00:39:48

TehJavaDev (66 views)
2014-10-14 00:35:47

TehJavaDev (59 views)
2014-10-14 00:32:37

BurntPizza (73 views)
2014-10-11 23:24:42

BurntPizza (45 views)
2014-10-11 23:10:45

BurntPizza (85 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!