Autolocate & query jarsigner on Windows
Brought to you by:
james22
1) add option to switch jarsigner on in GUI
2) when turning the option on, just default to "jarsigner" on GNU/Linux (will probably work); on Windows, continue with next steps
3) if path not specified in propeties, look for newest jarsigner.exe in %ProgramFiles(x86)%\Java AND in %ProgramFiles%\Java. If it's there, present the location to user for acceptance.
4) if not found there, present a file query and let user choose jarsigner. If user cancels, default to "jarsigner" without an absolute path (might work also on some Windows installations).
Might also:
Instruct user to download and install the jdk (probably looking for jarsigner if signApk=true should be done at the start of Osm2GpsMid as otherwise the user will get the info after map has been done.)
In J2MEPolish there's code to locate jarsigner:
J2ME-Polish/j2mepolish-src/build/src/de/enough/polish/finalize/SignFinalizer.java