What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Falling Sand Game batch file

Pages: (2): « First [ 1 ] 2 » Last »
Falling Sand Game batch file
Author: Message:
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
O.P. Falling Sand Game batch file
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

This post was edited on 12-07-2007 at 07:24 AM by ryxdp.
12-07-2007 07:23 AM
Profile PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Falling Sand Game batch file
uhh, why not use jar2exe or something?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
12-07-2007 07:34 AM
Profile PM Web Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
O.P. RE: Falling Sand Game batch file
doesn't seem to work.
I'm trying another jar to exe convertor now...
12-07-2007 07:54 AM
Profile PM Find Quote Report
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
RE: Falling Sand Game batch file
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 :)).
[Image: AndrewsStyle.png]
12-07-2007 03:06 PM
Profile E-Mail PM Web Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
O.P. RE: Falling Sand Game batch file
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"
12-07-2007 08:56 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Falling Sand Game batch file
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?
[Image: spartaafk.png]
12-07-2007 10:24 PM
Profile PM Web Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
O.P. RE: Falling Sand Game batch file
It works fine in the browser...:/

http://www.enigmasand.com/pyro2.html
http://www.enigmasand.com/PS.jar
12-07-2007 11:11 PM
Profile PM Find Quote Report
albert
Veteran Member
*****

Avatar

Posts: 2247
Reputation: 42
– / Male / Flag
Joined: Feb 2005
RE: Falling Sand Game batch file
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..
12-07-2007 11:57 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Falling Sand Game batch file
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.
[Image: spartaafk.png]
12-07-2007 11:57 PM
Profile PM Web Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
O.P. RE: Falling Sand Game batch file
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>


This post was edited on 12-22-2008 at 02:17 AM by ryxdp.
12-08-2007 12:00 AM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On