Yes, that Stuart Sierra. Thanks. :)
If you want a real Java main method in your compiled Clojure program, you
need to define a function in your namespace called "-main" (with a
preceding hyphen) in addition to using (:gen-class) in the ns declaration.
-S
--
You received this message because y
Oh sorry it is fine now: it's just because there is no output to print
with the last script "print("code sample") ", after deleting it, the
jar is working fine.
Thanks again.
If somebody else will need more information, the steps to compile this
project were:
Easy AOT Compile with Netbeans&Maven
Right I am finally getting closer: the generated jar finally works,
but it still gives a message "A java exception has occurred"
My code (not really mine...) look like this:
-
(ns com.yourcompany.de
Hi
had you seen my article on Clojure/Maven?
(http://alexott.net/en/clojure/ClojureMaven.html)
P.S. and you can look onto following project
(https://github.com/alexott/clojure-examples/tree/master/compojure-simple)
that uses multi-project maven setup
On Tue, Dec 6, 2011 at 11:35 PM, Riccardo wr
That Stuart Sierra? I am a fan of you :) and I have bought "Practical
Clojure" (but not read much yet).
Thanks, I'll try that solution!
On Dec 7, 8:13 pm, Stuart Sierra wrote:
> Adding the Main-Class attribute to a JAR manifest is handled, in Maven, by
> the Assembly Plugin. See here for example
Adding the Main-Class attribute to a JAR manifest is handled, in Maven, by
the Assembly Plugin. See here for examples:
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
-S
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to t
On Wed, 2011-12-07 at 13:41 +0200, Matteo Moci wrote:
> lein pom
>
> maybe setting up a fake simple lein project
> you can watch how the generated pom is different from yours.
Unfortunately, that pom is too fake to be useful as a comparison tool.
--
Stephen Compall
^aCollection allSatisfy: [:e
leiningen has a target you can call like this:
lein pom
maybe setting up a fake simple lein project
you can watch how the generated pom is different from yours.
On Wed, Dec 7, 2011 at 1:32 PM, Riccardo wrote:
> The error shown in Ubuntu, when I try to execute the jar file, is:
> "Failed to load
The error shown in Ubuntu, when I try to execute the jar file, is:
"Failed to load Main-Class manifest attribute from '...demo.jar' "
I suppose I am missing something in the main structure...
This is the pom:
http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instan
Can you provide the pom you're using?
By 'build' do you mean AOT?
-Rich
On Tue, Dec 6, 2011 at 3:35 PM, Riccardo wrote:
> Hello, I am doing my dissertation project with Clojure and I am using
> Maven to build. It works on REPL and it build successfully, but the
> JAR file doesn't work, it say
Hello, I am doing my dissertation project with Clojure and I am using
Maven to build. It works on REPL and it build successfully, but the
JAR file doesn't work, it says: "Java Exception" all the time. Any
suggestion?
--
You received this message because you are subscribed to the Google
Groups "Cl
11 matches
Mail list logo