Could you please tell how to build a jar file from clojure source code on window xp,
Wihout using maven or such software? Only clojure and Windows XP
Could you please tell how to build a jar file from clojure source code
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Without any tool, you’re bound to do some quirky steps manually. Say you have
clojure.jarin the current directory, along with a target folder for compilation namedclassesand a clojure source file insrc/awesome.cljwith the following code:In order to compile it you will issue the following commands on the command line:
EDIT: use semicolon instead of colon to separate classpath elements in Windows environments
This will produce the compiled classes into the
classesfolder. Please note that if your code depends on any library, you need to adapt the-cpparameter values when starting the JVM.Than, you will create the JAR file using:
Finally, to call your function:
I’d also advise you to read the official documentation.