2009/12/13 rebcabin <bc.beck...@gmail.com>: > I got a lot closer thanks to the great hints above; the current state > is this > > C:\usr\local\bin>java -cp clojure-1.0.0.jar;clojure-contrib.jar;j3d- > core-1.3.1.j > ar;j3dcore-ogl.dll;vecmath.jar;j3dutils.jar;j3dcore-d3d.dll > clojure.lang.Repl
By the way, clojure.lang.Repl is deprecated, I believe. Just use "clojure.main" instead. > Clojure 1.0.0- > user=> (load-file "/Users/Reb/workspace/2dplot/src/2dplot.clj") > java.lang.UnsatisfiedLinkError: no J3D in java.library.path > (2dplot.clj:0) > > down to one missing thing That sort of thing happens when you use a Java library that uses native code. So you will have a dll that's used by one of the .jar files. You can't just add the dlls to your classpath. Actually I think java probably realises they are not directories or jar files and therefore ignores them in the classpath. On Linux/UNIX you'd add them to the shared library search path (LD_LIBRARY_PATH or /etc/ld.so.conf etc.). On Windows, I believe the PATH environment variable doubles as the DLL search path, and that the current directory is hard coded into the PATH. From your classpath above it looks like the DLLs were in your current directory, though, so I'm not sure what the story is. Unless there's another DLL that was needed and wasn't in your current directory or PATH. > btw, I scroungd around Eclipse looking for a place to set the > CLASSPATH but didn't spot it. Anyone happen to know offhand? > > thanks again for helping me get started :) -- Michael Wood <esiot...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en