I found the problem. It turns out that uberjar doesn't like .au
files; when I converted the audio file into a .wav, the standalone
jar works fine. Weird.
On Sep 17, 8:51 am, loonster wrote:
> Dave: I tried adding .core, but to no avail. Still get null pointer
> exception. This is very puzzli
Dave: I tried adding .core, but to no avail. Still get null pointer
exception. This is very puzzling; thanks for the effort...Tim
On Sep 17, 8:06 am, Dave Ray wrote:
> Ah. I think there are issues with single-segment namespaces and AOT.
> See comment on first answer here [1]. Maybe converting t
Ah. I think there are issues with single-segment namespaces and AOT.
See comment on first answer here [1]. Maybe converting to depExp.core
would help.
Dave
[1]
http://stackoverflow.com/questions/3390268/how-to-setup-the-classpath-when-running-the-jar-made-from-lein-uberjar
On Sat, Sep 17, 2011
Nope. The project.clj is:
(defproject depExp "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.2.1"]
[org.clojure/clojure-contrib "1.2.0"]]
:main depExp)
Tim
On Sep 17, 5:05 am, Dave Ray wrote:
> Did you forget to set the name of the mai
Did you forget to set the name of the main class/namespace in project.clj?
that would cause the behavior you're seeing.
Dave
On Saturday, September 17, 2011, loonster wrote:
>
>
> On Sep 16, 1:24 am, Joost wrote:
>> On Sep 16, 7:20 am, loonster wrote:
>>
>> > Sound or image files will show up
On Sep 16, 1:24 am, Joost wrote:
> On Sep 16, 7:20 am, loonster wrote:
>
> > Sound or image files will show up in the resulting uberjar if they
> > reside in a /resources subdirectory of a Leiningen home project
> > directory. I can't find any documentation for how to refer to and
> > load suc
Great. I can eliminate another function from my general purpose
utilities file. Thanks. I need to comb the docs more.
On Sep 16, 9:21 am, Dave Ray wrote:
> Note that this implementation is the same as (clojure.java.io/resource) [1].
>
> Dave
>
> [1]https://github.com/clojure/clojure/blob/3a3374f
Note that this implementation is the same as (clojure.java.io/resource) [1].
Dave
[1]
https://github.com/clojure/clojure/blob/3a3374f714e5a755b7de2a761f37696f07a74e80/src/clj/clojure/java/io.clj#L422
On Fri, Sep 16, 2011 at 8:58 AM, willyh wrote:
> I use the following helper function:
>
> (de
I use the following helper function:
(defn getResource
"Load resource. This is guaranteed to work with JNLP'd jars."
[resource-string]
(.getResource (.getContextClassLoader (Thread/currentThread))
resource-string))
Note the comment. I had a lot of trouble loading resources when my
uberjars
On Sep 16, 7:20 am, loonster wrote:
> Sound or image files will show up in the resulting uberjar if they
> reside in a /resources subdirectory of a Leiningen home project
> directory. I can't find any documentation for how to refer to and
> load such resource files within a project.clj and/or a s
Sound or image files will show up in the resulting uberjar if they
reside in a /resources subdirectory of a Leiningen home project
directory. I can't find any documentation for how to refer to and
load such resource files within a project.clj and/or a source clj file
so that that the resources can
11 matches
Mail list logo