Hey Guys,

I am trying to use a few of the cool clojure  contributed libraries, but it
seems i am not placing the libraries files in the directory where clojure
expects to find them.

Let say for example i decide to use the icanter library(
http://wiki.github.com/liebke/incanter), where should i place the icanter
files so that clojure can see them.

Thanks a mill guys



On Tue, May 5, 2009 at 9:54 AM, Sean Devlin <[email protected]>wrote:

>
> Okay, I've got code that works in Java but I can't get working in
> Clojure.  Here's the code in Java
>
> public class TutorialConnect1 extends Object {
>  JCO.Client mConnection;
>  public TutorialConnect1() {
>    try {
>      // Change the logon information to your own system/user
>      mConnection = JCO.createClient(...); //Connection parameters
>      mConnection.connect();
>      System.out.println(mConnection.getAttributes());
>      mConnection.disconnect();
>    }
>    catch (Exception ex) {
>      ex.printStackTrace();
>      System.exit(1);
>    }
>  }
>  public static void main (String args[]) {
>    TutorialConnect1 app = new TutorialConnect1();
>  }
> }
>
> It simply prints some connection attributes about my system.  Here's
> the same code in Clojure
>
> (let [sap-con (com.sap.mw.jco.JCO/createClient ... )] ;connection
> attributes
>                           (do
>                             (. sap-con connect)
>                             (println (. sap-con getAttributes))
>                             (. sap-con disconnect)))
>
> I can successfully create the connection object in Clojure, but I get
> an error in the following s-exp
>
> (. sap-con connect)
>
> The error I get is :
>
> #<CompilerException java.lang.NoClassDefFoundError: com/sap/jdsr/
> writer/DsrIPassport (NO_SOURCE_FILE:0)>
>
> The SAP library I'm using does rely on some native methods.  The only
> guess I have right now is that the native methods are being linked to
> properly.
>
> Can anyone give me a hand?
>
> Sean
> >
>


-- 
Leotis Buchanan
Manager/Electronic Design Systems Engineer
Exterbox.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to