fixed EXEs

so the installers don't work; or rather you can install the program just fine but when you try to start the program you get "Class apps/MapDesignerVector not found" or whatever.  I figured out why EXEs weren't working (the version of Inno Setup) and changed it back to EXE in the hope of fixing it, but it's the same problem still.  but since that's one thing figured out I'm committing it here.
This commit is contained in:
Justin Kunimune 2023-12-20 17:44:40 -08:00
parent 56f85a35a8
commit c7871be46b
2 changed files with 11 additions and 4 deletions

View File

@ -66,8 +66,15 @@ As with running the .jar file, the syntax might be somewhat platform-dependent;
To build the JAR and MSI files, you use the Ant file `build.xml`.
I don't know what commands are used for that; IntelliJ IDEA does it for me.
The last step, the Javapackager, often has problems but doesn't have useful error messages (every failure mode appears to be "builder did not produce a bundle").
The main trick here is you have to install the Java 8 JDK because Javapackager was dropped in 9.
This is fine because the Javapackager itself is version-neutral and will use whichever JDK you used to compiled the JAR;
just make sure `javapackager.exe` is on your PATH.
You may have to install the WiX Toolset 4 and Inno Setup 5 (not Inno Setup 6!).
Javapackager does often have problems but doesn't have useful error messages (every failure mode appears to be "builder did not produce a bundle"),
so I apologie about that.
Make sure you set the directories at the top of the file according to your file system, make sure the compiled Java is in the `bin/` directory, make sure none of the jar files have restricted read access or are being used by any other programs.
It seems like maybe what I'm supposed to do is switch to Jpackage?
But that wasn't giving me useful error messages when I tried it either.
There are also some Python files used to generate SVG inputs for MapDesignerVector in the src/zupplemental directory.
To run those, you'll need a few packages from [PyPI](https://pypi.python.org/pypi).

View File

@ -44,19 +44,19 @@
<target name="deploy" depends="build">
<exec executable="javapackager">
<arg line="-deploy -native msi -srcdir ${dir.jarfile} -srcfiles MapDesignerRaster.jar;LICENSE.md;res;input -appclass apps.MapDesignerRaster -outdir build -outfile MapDesignerRaster"/>
<arg line="-deploy -native exe -srcdir ${dir.jarfile} -srcfiles MapDesignerRaster.jar;LICENSE.md;res;input -appclass apps.MapDesignerRaster -outdir build -outfile MapDesignerRaster"/>
<arg line="-name &quot;Map Designer Raster&quot; -title &quot;Map Designer (Raster)&quot; -description &quot;Design oblique raster world maps in different projections&quot;"/>
<arg line="-vendor &quot;Justin Kunimune&quot; -Bcopyright=&quot;Copyright (c) ${year} Justin Kunimune&quot;"/>
<arg line="-BappVersion=${version} -Bicon=res\raster.ico -BlicenseFile=LICENSE.md -Bruntime=&quot;${dir.jre}&quot; -BjvmOptions=-Xmx8g"/>
</exec>
<exec executable="javapackager">
<arg line="-deploy -native msi -srcdir ${dir.jarfile} -srcfiles MapDesignerVector.jar;LICENSE.md;res;input -appclass apps.MapDesignerVector -outdir build -outfile MapDesignerVector"/>
<arg line="-deploy -native exe -srcdir ${dir.jarfile} -srcfiles MapDesignerVector.jar;LICENSE.md;res;input -appclass apps.MapDesignerVector -outdir build -outfile MapDesignerVector"/>
<arg line="-name &quot;Map Designer Vector&quot; -title &quot;Map Designer (Vector)&quot; -description &quot;Design oblique vector world maps in different projections&quot;"/>
<arg line="-vendor &quot;Justin Kunimune&quot; -Bcopyright=&quot;Copyright (c) ${year} Justin Kunimune&quot;"/>
<arg line="-BappVersion=${version} -Bicon=res\vector.ico -BlicenseFile=LICENSE.md -Bruntime=&quot;${dir.jre}&quot;"/>
</exec>
<exec executable="javapackager">
<arg line="-deploy -native msi -srcdir ${dir.jarfile} -srcfiles MapAnalyzer.jar;LICENSE.md;res -appclass apps.MapAnalyzer -outdir build -outfile MapAnalyzer"/>
<arg line="-deploy -native exe -srcdir ${dir.jarfile} -srcfiles MapAnalyzer.jar;LICENSE.md;res -appclass apps.MapAnalyzer -outdir build -outfile MapAnalyzer"/>
<arg line="-name &quot;Map Analyzer&quot; -title &quot;Map Analyzer&quot; -description &quot;Compare distortion graphs and metrics for different map projections.&quot;"/>
<arg line="-vendor &quot;Justin Kunimune&quot; -Bcopyright=&quot;Copyright (c) ${year} Justin Kunimune&quot;"/>
<arg line="-BappVersion=${version} -Bicon=res\analyz.ico -BlicenseFile=LICENSE.md -Bruntime=&quot;${dir.jre}&quot;"/>