Thanks for all the help, guys.
Because Laurent's suggesting of calling sample/bar.clj instead of
sample.bar.clj in loadResourceScript() seemed the easiest, I tried
that first and it worked. So it looks like in that method you have to
specify the path the file, relative to the src directory,
I'm fairly new to Clojure and Java. When I try to call Clojure code
from Java, I get an error java.io.FileNotFoundException: Could not
locate Clojure resource on classpath: bar.clj.
I've created a simple project in Eclipse with one Java file:
package sample;
import clojure.lang.*;
public class
On Tue, Jun 12, 2012 at 8:50 AM, Denis Vulinovich
denis.vulinov...@ihug.co.nz wrote:
My Java classpath (in Windows) is C:\dev\vaadin\sample.
It misses classes subdirectory.
Also, I don't think you need lein for the example. Write a clj script
and have it loaded/compiled by
If your namespace is sample.bar, shouldn't the load() call
sample/bar.clj instead of bar.clj ?
Le 12 juin 2012 à 12:39, Denis Vulinovich
denis.vulinov...@ihug.co.nz a écrit :
I'm fairly new to Clojure and Java. When I try to call Clojure code
from Java, I get an error
On Mon, Jun 11, 2012 at 11:50 PM, Denis Vulinovich
denis.vulinov...@ihug.co.nz wrote:
RT.loadResourceScript(bar.clj);
You talk about putting the .class files on your classpath (modulo the
correction to add the classes subdirectory as Jacek noted) but you are
trying to load a
On Tue, Jun 12, 2012 at 8:41 PM, Sean Corfield seancorfi...@gmail.com wrote:
As your Clojure code grows and depends on other libraries, you'll need
to ensure those are also on your classpath (lib/*.jar from your
Leiningen project).
lein2 doesn't use lib/* anymore. All's in ~/.m2/repository.