Shoutbox

Falling Sand Game batch file - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Falling Sand Game batch file (/showthread.php?tid=79708)

Falling Sand Game batch file by ryxdp on 12-07-2007 at 07:23 AM

I used to have a batch file and the .jar file for the falling sand game, so I could use it on my computer (without a browser). The batch file had something like "java -jar jarfile FSG.jar" and when i ran it, the game opened up in a special window.

I've found the first bit (i think) of it, shown above, and there obviously must be more to it, because that alone doesn't work.

Anyone with magical Java commandline powers can help me?

ty :P


RE: Falling Sand Game batch file by ShawnZ on 12-07-2007 at 07:34 AM

uhh, why not use jar2exe or something?


RE: Falling Sand Game batch file by ryxdp on 12-07-2007 at 07:54 AM

doesn't seem to work.
I'm trying another jar to exe convertor now...


RE: Falling Sand Game batch file by andrewdodd13 on 12-07-2007 at 03:06 PM

That "first bit" should be the whole thing. It tells the Java interpreter to run the JAR file.

Unless of course java.exe isn't in your path, in which case you'll need to explicitly call it (ie c:\program files\java\jre_1.6.0_03\bin\java.exe - might be different for your system and definitely different if you don't have Java 1.6 U3 :)).


RE: Falling Sand Game batch file by ryxdp on 12-07-2007 at 08:56 PM

So...must be a jar problem.

When I do this: "java -jar FSG.jar jarfile"

It says this:
"Failed to load Main-Class manifest attribute from FSG.jar"


RE: Falling Sand Game batch file by RaceProUK on 12-07-2007 at 10:24 PM

How big is the JAR file? Would it be possible to attach it, or host it somewhere so I can have a look at it?


RE: Falling Sand Game batch file by ryxdp on 12-07-2007 at 11:11 PM

It works fine in the browser...:/

http://www.enigmasand.com/pyro2.html
http://www.enigmasand.com/PS.jar


RE: Falling Sand Game batch file by albert on 12-07-2007 at 11:57 PM

If you have the JRE installed and that the jar is well compiled, you should be able to run it just by double clicking on it..


RE: Falling Sand Game batch file by RaceProUK on 12-07-2007 at 11:57 PM

The manifest file in the archive doesn't have a main class defined, which is why it doesn't work. However, I wasn't able to figure out how to get it to work.


RE: Falling Sand Game batch file by ryxdp on 12-08-2007 at 12:00 AM

So how come it's working in firefox?

EDIT:

* ryxdp goes to look in the page source

EDIT 2:

Source says PyroSandMain2, which is a class in the jar (I looked in there, but having no knowledge of java...).

HTML code:
<p>
    <applet code="PyroSandMain2" archive="PS.jar"  width="600" height="500">
        <param name="width" value="600">
        <param name="height" value="500">
    </applet>
</p>


RE: Falling Sand Game batch file by RaceProUK on 12-09-2007 at 12:49 AM

Paste that into an HTML file ;)