Re: Ant and debian 5.0 version issues
Thanks man. Removing gcj does the trick. Sorry for the noise. --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Re: Ant and debian 5.0 version issues
On Mon, Mar 23, 2009 at 5:11 AM, Dan Beauchesne wrote: > > > Michael Wood writes: >> >> Are you sure it's not trying to use gcj instead of Sun java? >> >> What do "java -version" and "javac -version" give you? And does >> "update-alternatives --list java" or javac print anything? > > java -version: > OpenJDK Runtime Environment (build 1.6.0_0-b11) > OpenJDK Server VM (build 1.6.0_0-b11, mixed mode) > > javac -version: > javac 1.6.0_0-internal > > update-alternatives --list java: > /usr/bin/gij-4.3 > /usr/lib/jvm/java-gcj/jre/bin/java > /usr/lib/jvm/java-6-openjdk/jre/bin/java > > > I'm stumped, I don't see anything as version 1.4. I don't know that much about Java, but maybe you have some class files on your classpath that are compiled with Java 1.4 or something? See if it makes a difference if you uninstall gcj/gij. I don't know what version of Java gcj/gij implements and whether it comes with class files that could cause a problem. -- Michael Wood --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Re: Ant and debian 5.0 version issues
Michael Wood writes: > > Are you sure it's not trying to use gcj instead of Sun java? > > What do "java -version" and "javac -version" give you? And does > "update-alternatives --list java" or javac print anything? java -version: OpenJDK Runtime Environment (build 1.6.0_0-b11) OpenJDK Server VM (build 1.6.0_0-b11, mixed mode) javac -version: javac 1.6.0_0-internal update-alternatives --list java: /usr/bin/gij-4.3 /usr/lib/jvm/java-gcj/jre/bin/java /usr/lib/jvm/java-6-openjdk/jre/bin/java I'm stumped, I don't see anything as version 1.4. --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Re: Ant and debian 5.0 version issues
On Sat, Mar 21, 2009 at 1:34 AM, Dan Beauchesne wrote: > > > I'm trying to install clojure on Debian 5.0 and having some troubles. > > Typing "ant" in the clojure directory gives me the error: > > compile-java: > [javac] Compiling 119 source files to /home/dan/opt/clojure/classes > [javac] Compliance level '1.4' is incompatible with target level > '1.5'. A compliance level '1.5' or better is required > > > Now, there are a few solutions after searching google, but they all have > to do with ant finding the wrong java runtime. However, on my system: > > d...@latitude:~/opt/clojure$ ant -diagnostics | grep java.runtime.version > java.runtime.version : 1.5.0 > > and: > > d...@latitude:~/opt/clojure$ ant -diagnostics | grep 1.4 > d...@latitude:~/opt/clojure$ > > If I should be posting this to the debian/ant mailing lists please > accept my apologies. Are you sure it's not trying to use gcj instead of Sun java? What do "java -version" and "javac -version" give you? And does "update-alternatives --list java" or javac print anything? -- Michael Wood --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Ant and debian 5.0 version issues
I'm trying to install clojure on Debian 5.0 and having some troubles. Typing "ant" in the clojure directory gives me the error: compile-java: [javac] Compiling 119 source files to /home/dan/opt/clojure/classes [javac] Compliance level '1.4' is incompatible with target level '1.5'. A compliance level '1.5' or better is required Now, there are a few solutions after searching google, but they all have to do with ant finding the wrong java runtime. However, on my system: d...@latitude:~/opt/clojure$ ant -diagnostics | grep java.runtime.version java.runtime.version : 1.5.0 and: d...@latitude:~/opt/clojure$ ant -diagnostics | grep 1.4 d...@latitude:~/opt/clojure$ If I should be posting this to the debian/ant mailing lists please accept my apologies. --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---