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
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:
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://
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 riccardo.novie...@gmail.com wrote:
The error shown in Ubuntu, when I try to execute the jar
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:
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
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 the.stuart.sie...@gmail.com wrote:
Adding the Main-Class attribute to a JAR manifest is handled, in Maven, by
the Assembly
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
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
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 NetbeansMaven
1-
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
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 riccardo.novie...@gmail.com 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
11 matches
Mail list logo