Hi Sunil,
I just tried your isomorphism project.clj with the following code in
src/isomorphism/gogoi.clj:
(ns isomorphism.gogoi
(:gen-class))
(defn -main [& args]
(prn "hello"))
Everything worked as expected. I was able to do:
fallout:test $ cake bin
[compile] Compiling namespace isomorphism.gogoi
[jar] Building jar: /Users/justin/projects/test/
isomorphism-0.0.1-SNAPSHOT.jar
[uberjar] Building jar: /Users/justin/projects/test/
isomorphism-0.0.1-SNAPSHOT-standalone.jar
[bin] Creating standalone executable: /Users/justin/projects/
test/isomorphism
fallout:test $ ./isomorphism
"hello"
Perhaps you forgot to add the (:gen-class) to src/isomorphism/
gogoi.clj?
:justin
On Feb 9, 2:13 am, Sunil S Nandihalli <[email protected]>
wrote:
> Hello everybody,
> I am trying to use cake bin to build a standalone exe ... and I am having
> trouble with it .. I when I try to do it in a simple project .. It works
> fine .. And I closely followed the same project file in the one that I
> actually wanted to build an exe of and it was not working
> However I notice the problems seems to be that the following line appears in
> the one that works and does not in the one that does not..
>
> [compile] Compiling namespace trycakebin.hello
>
> which means it is not doing an AOT on the file containing the main class
> file.
> can anybody probably tell me what is going on?
>
> working project file
>
> (defproject trycakebin "0.0.1-SNAPSHOT"
> :description "TODO: add summary of your project"
> :dependencies [[clojure "1.2.0"]
> [clojure-contrib "1.2.0"]
> [clj-stacktrace "0.1.2"]]
> :dev-dependencies [[swank-clojure "1.2.1"]
> [org.thnetos/cd-client "0.2.0"]]
> :main trycakebin.hello)
>
> non working project file
>
> (defproject isomorphism "0.0.1-SNAPSHOT"
> :description "TODO: add summary of your project"
> :dependencies [[org.clojure/clojure "1.2.0"]
> [org.clojure/clojure-contrib "1.2.0"]
> [incanter/parallelcolt "0.9.4"]]
> ; :aot [isomorphism.gogoi]
>
> ; :hooks [leiningen.hooks.cdt]
>
> ; :dev-dependencies [[swank-clojure "1.2.1"]
>
> ; [org.thnetos/cd-client "0.2.0"]
>
> ; #_[lein-cdt "1.0.0"]]
>
> :main isomorphism.gogoi)
>
> I commented those lines hoping for it to magically fix my problem..
> can anybody help..
>
> Sunil.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en