To test this, I built a simple HelloWorld.jar
file (using these instructions) and tested it like so:
java -jar HelloWorld.jar
Then I made an IExpress package with it. The Install program was exactly the command I used above. This worked exactly as it should.
Two possible causes of the error:
In the IExpress wizard, there's a checkbox Store files using Long File Name inside Package. You should definitely select this option; ignore the warning that appears, as it applies to Windows 95/98. In the
.sed
file, this is:UseLongFileName=1
Check that the
.exe
actually containsmyjarfile.jar
. 7-Zip will open the.exe
and show you the archive contents. (IExpress.exe
files are just a CAB file with a wrapper.) If the file is missing, then you'll need to check your.sed
file to see what went wrong.