EXE launcher for Windows users

On this thread (vassalengine.org/forums/viewtopic.php?p=264#264), we
started discussing difficulties with launching VASSAL on various platforms,
becuase we were having said difficulties with my development build.

I had a idea, which I’ve tried out in svn2729:

nomic.net/~uckelman/tmp/vass … vn2729.zip

If you’re not using Windows, there’s nothing new to see in this build
beyond what was in svn2727. If you are using Windows, of potential
interest is the VASSAL.exe which is now present, along with VASSAL.sh
and VASSAL.bat.

VASSAL.exe is a JAR launcher I created using JSmooth:

jsmooth.sourceforge.net/

Getting this to work correclty was a five-minute job, and now I
have a configuration file which I can put into the repo if we
end up distributing the Windows executable created this way.

One nice thing which I haven’t tested is that that executable can
download and install Java for you if you don’t already have it,
apparently.

This is the best way I’ve yet seen for handling VASSAL startup for
Windows users. There’s no messing with a batch file, or the classpath
or anything, which means happier users and fewer questions for us to
answer.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Works beautiful - just like mine

Biggest issue will be if users move the exe instead of creating a shortcut or manually unzip the package and dont create the correct folder structure as a result.

Then youll get the darn “Can not find Main Class error” which is not a biggie as we will know exactly what that means :slight_smile:

Thus spake “Tim M”:

Do people really do that?—move the binary and expect it to work, I mean.

Which exe wrapper do you use? I found two open-source ones which look
promising: JSmooth (the one I tried) and Launch4j.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

With jokers like me about - yes :slight_smile: We like to think we know what we are doing but we’re really just stumbling in the dark and get lucky sometimes…
besides there are still some people that can’t find the ‘any’ key! I dont feel so bad :smiley:

I just used a simple bat to exe converter that I got from here
f2ko.de/English/index.php
Im not ready to jump into the coding stuff yet - only just finished chapter 4 of Introducing Java, 2 more chapters and I graduate to fundamentals :slight_smile: :blush:

I haven’t tried it yet myself but it sounds like a good solution. I’m not sure I agree with Tim’s assertion that someone other than himself would try moving the exe file. Having said that, it’s probably safer to assume users will do whatever is required to break it :smiley:

Thus spake “Tim M”:

That site looks a bit… sketchy… to me.

You realize that the day I joined this project is the day I started
coding in Java, right? :slight_smile:

(Of course, I already knew C, C++, Perl, Python, PHP…)


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Does the EXE method allow for modules to be specified on the
commandline? How about the “-edit” switch? I’m away from my
computers most of this week so I havent been able to test.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake Tim Byrne:

It is supposed to pass on any command-line arguments to VASSAL, but
I haven’t tested this. (It’s also still possible to adjust the initial
and max heap sizes from the command line, also.)


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

sketchy? nah - its just plain :slight_smile:
You can find that converter anywhere even on c|net