Launcher (Windows): open the console upon fatal errors

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Launcher: be more quiet by default again

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Launcher: write an ImageJ.cfg when launched in ImageJ 1.x mode

As pointed out by Wayne Rasband, the Edit>Options>Memory & Threads... command relies on a valid ImageJ.cfg to be written into the ImageJ directory. So write one if one does not exist already.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Launcher (Windows): fix falling back to JAVA_HOME

Somehow the ability was lost to fall back to launching Java as specified by the environment variable JAVA_HOME.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Launcher: be more verbose about the amount of reserved heap

Hopefully this will help Wayne to diagnose the erroneous allocation on his laptop.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Launcher (Windows): fix annoying compiler warning

Somehow, MinGW compilers find it funny to be inconsistent about the execve() signature.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Launcher: when all else fails, look into JAVA_HOME or JRE_HOME

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>