java applets and google page creator
hi,
i've built a site with google page creator (i'm a beginner), but i want to include this java applet in the site somehow:
http://zmpp.sourceforge.net/ (the z-machine preservation project - basically a player for z-code files, where z-code files are a format for text adventure games like zork etc)
what is the miminum i would need in order to be able to set up and run such a thing? do i need ftp access to the web server? do i need shell access? is google page creator even capable of it?
thanks!
RENDITION - http://renditiongame.tk http://www.renditiongame.tk http://renditiongame.googlepages.tk - a political art experiment in text adventure game form
RandomCake posted this at 14:37 — 30th April 2008.
They have: 1 posts
Joined: Apr 2008
Hi, sorry to let you know, but from what I've read about Google Page Creator it's not able to handle anything like this!
JeevesBond posted this at 15:25 — 30th April 2008.
He has: 3,956 posts
Joined: Jun 2002
You would need access to the HTML source code, as it's a Java applet it runs client-side so all you need to do is embed it in the HTML. You'll also need to be able to upload the Java applet file to the Web space.
Have a look at the source code of: http://zmpp.sourceforge.net/games/play.php?name=Zork%20III&storyfile=zor... see the
<embed>
statement. Thearchive="zmpp-1.02-signed.jar"
is the Java file that will be loaded by the browser. It needs to be on the server.What a way to get eaten by a Grue.
a Padded Cell our articles site!
zelazn posted this at 23:47 — 4th May 2008.
They have: 9 posts
Joined: Apr 2008
thanks for the info.... i've now had a go at implementing it, uploading the applet and a zcode datafile, and editing the source html, but no luck. the jzmpp window just remains a white box. the sun java console gives the following (incomprehensible to me) errors:
java.lang.NullPointerException
at org.zmpp.vm.GameDataImpl.reset(GameDataImpl.java:77)
at org.zmpp.vm.GameDataImpl.(GameDataImpl.java:69)
at org.zmpp.vm.MachineFactory.buildMachine(MachineFactory.java:77)
at org.zmpp.swingui.ZmppApplet.init(ZmppApplet.java:139)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-252" java.lang.NullPointerException
at org.zmpp.swingui.GameThread.run(GameThread.java:47)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at org.zmpp.vm.GameDataImpl.reset(GameDataImpl.java:77)
at org.zmpp.vm.GameDataImpl.(GameDataImpl.java:69)
at org.zmpp.vm.MachineFactory.buildMachine(MachineFactory.java:77)
at org.zmpp.swingui.ZmppApplet.init(ZmppApplet.java:139)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-290" java.lang.NullPointerException
at org.zmpp.swingui.GameThread.run(GameThread.java:47)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
APPLET tag missing CODE parameter.
java.lang.NullPointerException: name
at sun.applet.AppletClassLoader.getResourceAsStream(Unknown Source)
at sun.applet.AppletPanel$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
http://renditiongame.googlepages.com/reviews2 is the page i'm testing. one thing i noticed is that google page creator keeps changing the " character to " - could this be breaking it?
RENDITION - http://renditiongame.tk http://www.renditiongame.tk http://renditiongame.googlepages.tk - a political art experiment in text adventure game form
JeevesBond posted this at 22:52 — 6th May 2008.
He has: 3,956 posts
Joined: Jun 2002
All I get, looking at that page, is:
applet code="org.zmpp.swingui.ZmppApplet" codebase="." archive="zmpp-1.02-signed.jar" width="640" height="400">
Looking at the source, Googlepages is definitely messing it up. Maybe time to move to another hosting provider?
Let us know if you do get it going though, I'd like to try that game out.
a Padded Cell our articles site!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.