Revisions
-
briandealwis revised this gist
Nov 10, 2011 . 1 changed file with 6 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,7 @@ # turn a jar with a Main-Class into a stand alone executable (echo '#!/usr/bin/env java -jar'; cat blahblah.jar) > blah # turn a jar with a particular main clas into a stand alone executable (echo '#!/usr/bin/env java -jar package.MainClass'; cat blahblah.jar) > blah -
briandealwis revised this gist
Jan 17, 2011 . 1 changed file with 8 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,8 @@ #!/bin/bash # simple script for turning a jar with a Main-Class # into a stand alone executable # cat [your jar file] >> [this file] # then chmod +x [this file] # you can now exec [this file] exec java -Xmx1G -jar "$0" "$@" -
spullara revised this gist
Jan 17, 2011 . 1 changed file with 11 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,13 @@ #!/bin/bash # simple script for turning a jar with a Main-Class # into a stand alone executable # cat [your jar file] >> [this file] # then chmod +x [this file] # you can now exec [this file] commandToRun="$(printf "%q " "$@")" if test "$commandToRun" = "'' "; then eval "java -Xmx1G -jar $0" else eval "java -Xmx1G -jar $0 $commandToRun" fi exit -
spullara revised this gist
Jan 17, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,6 @@ # then chmod +x [this file] # you can now exec [this file] commandToRun="$(printf "%q " "$@")" eval "java -Xmx1G -jar $0 $commandToRun" exit -
spullara created this gist
Jan 17, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/sh # simple script for turning a jar with a Main-Class # into a stand alone executable # cat [your jar file] >> [this file] # then chmod +x [this file] # you can now exec [this file] commandToRun="$(printf "%q " "$@")" eval "java -jar $0 $commandToRun" exit