Closed GoogleCodeExporter closed 9 years ago
Workaround: mark the launcher as executable then run
Original comment by olivier....@gmail.com
on 21 Jul 2011 at 3:28
Original comment by alex.bel...@gmail.com
on 22 Jul 2011 at 4:03
I searched a bit for the best way(tm) to do this cross-platform and I couldn't
find anything better than people suggesting a wrapper shell script.
Assuming one has already java installed and in its $PATH, a shell script can be
as simple as the one attached.
However, with the shell script you have the exact same problem as before: if
distributed in a zip file it will not be executable (zip doesn't store file
permissions). Clicking on a non-executable shell script from linux opens it as
a text file which is not what you want.
Could you generate tarballs (.tar.gz) in your build/release process? You could
release both .zip and .tar.gz versions simultaneously. .tar.gz have permission
information embedded so you mark both the main .jar and the attached launch.sh
as executable and you have it pretty much covered.
Original comment by olivier....@gmail.com
on 6 Sep 2011 at 3:33
Attachments:
Added an even better unix launcher to issue #44.
Original comment by olivier....@gmail.com
on 6 Sep 2011 at 4:40
Original comment by alex.bel...@gmail.com
on 9 Sep 2011 at 9:08
Original comment by alex.bel...@gmail.com
on 9 Sep 2011 at 9:09
Original issue reported on code.google.com by
olivier....@gmail.com
on 21 Jul 2011 at 1:55