You are not logged in.
Pages: 1
Hi,
I've written a CLI utility in Clojure (it's a debut, yes). It's a very much in-house project too, so I did what occurred to me first.
/usr/bin/pcc:
#!/usr/bin/env bash
java -jar /home/alexey/spaces/clojure/pcc/target/uberjar/pcc-clojure-standalone.jar "$@"
It works, but doesn't look nice and proper. What are the basic guidelines for deploying Java based apps, especially scripts?
Offline
You mean the script doesn't look proper, or your ui? Have you checked existing java tools? Why do you specify bash? Here's /usr/bin/jabref:
#!/bin/sh
exec ${JAVA_HOME}/bin/java -jar /usr/share/java/jabref/JabRef-2.10.jar "$@"
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
You mean the script doesn't look proper, or your ui?
The very existence of this script looks outrageous. If you tell me this is really the Java way, I cannot but comply, though.
Offline
Pages: 1