Hi Miki,
Thats an interesting idea that I had not thought of. It nicely
encapsulates everything in one package.

Thanks!
Damon

On Jun 16, 6:15 pm, Miki <miki.teb...@gmail.com> wrote:
> One more option is to embed the jar in base64 encoding in a script, extract
> the jar to a temp location and run it.
> The following Perl script does that (it uses the base64 executable, but you
> can probably use MIME::Base64 as well).
>  #!/usr/bin/env perl
>
> $jar = "/tmp/lp-$ENV{USER}.jar";
> unless (-e $jar) {
>     open DECODE, "|base64 -d > $jar" or die "can't open base64 pipe";
>     print DECODE <DATA>;}
>
> exec "java", "-jar", $jar, @ARGV
>
> __DATA__
> <YOUR BASE64 ENCODED JAR GOES HERE>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to