Compile compliance level: 1.6 Generated class files compatibility: 1.6 Source compatibility: 1.6
I think regardless of what jdk you use to run/compile them, these 3 (or at least the first 2) are affecting what you said. I got those from eclipse (but there should be command line equivalents of those: ie. in project.clj with leiningen *:javac-options ["-target" "1.6" "-source" "1.6" "-Xlint:-options" "-g:source,lines" "-encoding" "utf8"]* , I pasted the entire line, but only -target and -source are relevant) I think the usual errors when one project uses 1.7 (for the first 2) and the other uses like 1.6, is like: *java.lang.UnsupportedClassVersionError: Unsupported major.minor version*51.0 (where the number may differ) In eclipse, all 3 must be the same else it will not allow it, i see. Anyway, that's my 2 cents about it:) I may be wrong, corrections/additions are welcome. On Tue, Oct 16, 2012 at 1:27 AM, JvJ <kfjwhee...@gmail.com> wrote: > I just found out that my clojure project is using jre7, while the other > project is using jre6. That probably has something to do with it. > > In other words, you were right. In eclipse, by default, changing the jdk used changes all 3 of those automatically by default (unless you have Enable project specific settings for the Java Compiler section in project properties - but if you're using leiningen to uberjar this has no effect obviously, it's the above in project.clj you'd want) > > On Monday, 15 October 2012 19:17:26 UTC-4, JvJ wrote: >> >> I'm having a peculiar issue with Java interop. >> >> I'm running a program in 2 different ways: >> -Running the program directly >> -Calling the main function from Clojure >> >> Oddly, by calling main from Clojure, I get an exception that isn't there >> when I run normally: >> UnsupportedOperationException This parser does not support specification >> "null" version "null" javax.xml.parsers.**SAXParserFactory.setSchema >> (:-1) >> >> I was able to use the debugger using both running methods, and the >> parameters seem to be the same. I just don't get it. Does anyone have any >> ideas? >> > -- > 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 > -- 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