On Mon, Aug 3, 2009 at 4:16 AM, Adie <adit...@gmail.com> wrote:

>
> Good Afternoon folks,
>
> I am a newbie to Clojure, coming from CL, with very little Java
> background.
> I am trying to use the 'javax.persistence' libraries, but i just cant
> seem to import it properly
>
> for e.g
> (import '(javax.persistence Persistence)
> gives a
> java.lang.ClassNotFoundException: javax.persistence.Persistence
> (NO_SOURCE_FILE:0) error


I don't see a javax.persistence package listed at
http://java.sun.com/javase/6/docs/api/ so it apparently doesn't come with
the JDK. You probably need (and probably already have) a jar for it
(probably one of those JSR jars, given the package name). You also need (and
probably don't have) the jar on the classpath.

If you're using Eclipse or Netbeans, edit the project to add a library, then
when prompted browse to that jar. Close and restart your REPL if you had it
open, so that the change takes effect. Then try executing the code again and
it should work if the jar is present and was added to the project libraries.

If you're using emacs, then may God have mercy on your soul.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to