As mentioned in numerous places on the forum, the standard fan.exe launcher for Windows don't work on 64-bit machines (or more specifically, with 64-bit Java installations).
The work around for this is to replace the fan.exe with a fan.cmd:
These window scripts (presumably) work on both 32 and 64 bit machines, but tomcl recently pointed out that the majority of Windows users are probably running 64 bit machines.
Question
So my question then is, why does the Fantom installation still ship with fan.exe and the other executables? Or rather, what is the advantage of using the .exe over a .cmd?
I've been using the .cmd versions for some time now, with no discernable problems.
brianTue 18 Nov 2014
The simple batch file script doesn't do all the stuff that the exe does. The exe does a ton of things for reading from etc/sys/config.props and handling bootstrap builds. Given its complexity I am not sure it could easily be fully created as a batch file, think it would be better to do it as powershell which is pretty widely deployed now
SlimerDudeThu 20 Nov 2014
Cool, so the .exe files are used for bootstrap builds.
Reading the Windows CMD Line Syntax it seems .cmd files can do conditionals, loops and functions but the syntax looks brittle and awkward. PowerShell may well be the way forward.
Is this bit of work ear-marked for the next Fantom release? It strikes me as being quite beneficial to a lot of users.
SlimerDudeSat 10 Jan 2015
To make it easy for 64-bit Windows users to get started, I've created a 64-bit compatible version of the Fantom 1.0.67 distribution with:
SlimerDude Tue 18 Nov 2014
As mentioned in numerous places on the forum, the standard
fan.exelauncher for Windows don't work on 64-bit machines (or more specifically, with 64-bit Java installations).The work around for this is to replace the
fan.exewith afan.cmd:The other Fantom
.exefiles can then also be converted to.cmdfiles. Example,fanr.exebecomesfanr.cmd:or just:
These window scripts (presumably) work on both 32 and 64 bit machines, but
tomclrecently pointed out that the majority of Windows users are probably running 64 bit machines.Question
So my question then is, why does the Fantom installation still ship with
fan.exeand the other executables? Or rather, what is the advantage of using the.exeover a.cmd?I've been using the
.cmdversions for some time now, with no discernable problems.brian Tue 18 Nov 2014
The simple batch file script doesn't do all the stuff that the exe does. The exe does a ton of things for reading from etc/sys/config.props and handling bootstrap builds. Given its complexity I am not sure it could easily be fully created as a batch file, think it would be better to do it as powershell which is pretty widely deployed now
SlimerDude Thu 20 Nov 2014
Cool, so the
.exefiles are used for bootstrap builds.Reading the Windows CMD Line Syntax it seems
.cmdfiles can do conditionals, loops and functions but the syntax looks brittle and awkward. PowerShell may well be the way forward.Is this bit of work ear-marked for the next Fantom release? It strikes me as being quite beneficial to a lot of users.
SlimerDude Sat 10 Jan 2015
To make it easy for 64-bit Windows users to get started, I've created a 64-bit compatible version of the Fantom 1.0.67 distribution with:
.exefiles replaced with.cmdfilesswt.jarfile for FWTcontrolsforall Sat 10 Jan 2015
Thank you for the effort SlimerDude.