I've got a game .jar - how to put it on my site?
Hello, I have both a jar file for my game and the class uploaded to a server and the following code:
<applet>
code = "RammusRunClean.class"
archive = "RammusRun.jar"
width = 1000
height = 300
<applet/>
but it is not working for some reason. Does anyone have suggestions on how to get .jar games on your website?
Re: I've got a game .jar - how to put it on my site?
Code, archive etc are atributes of the applet tag.
Re: I've got a game .jar - how to put it on my site?
Rammus Run new error any suggestions?
Re: I've got a game .jar - how to put it on my site?
Copy and paste the error message here.
Re: I've got a game .jar - how to put it on my site?
java.lang.reflect.InvocationTargetException
at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Un known Source)
at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: RammusRunClean cannot be cast to java.applet.Applet
at sun.plugin2.applet.Plugin2Manager$12.run(Unknown Source)
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.doIntersectio nPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception: java.lang.reflect.InvocationTargetException
Re: I've got a game .jar - how to put it on my site?
It would seem that your code is not an Applet.
Re: I've got a game .jar - how to put it on my site?
Correct, is there an easy fix to that?
Re: I've got a game .jar - how to put it on my site?
Quote:
Originally Posted by
TrivialFate
Correct, is there an easy fix to that?
That depends- what do you want to happen? Do you want to convert it to an Applet? Do you want the user to download the Jar? Do you maybe want to use Java Webstart?