Open brwe opened 11 years ago
While building a 1.6 version I realized I started using a class from java.nio.*
that isn't compatible. Perhaps we simple need to document that we support 1.7+? I can't think of a reason anyone would be stuck with 1.6 for this application.
I just tried downloading Java 1.7 from java.com in order to run this, and the installation failed for me.
@drewr I think a note in the documentation would suffice.
@timhaines what OS are you trying here? I mean google should take you far here, what's the error?
@s1monw OSX Mountain Lion. Just got it resolved. For some reason I was missing a /Library/PreferencePanes folder, so the Java installer was dying because of that. After I created that folder, the installer worked. Then I had to manually update ~/.bash_login to change JAVA_HOME from the 1.6 location to 1.7. Ugh. I'm excited to get back into hammertime now it's resolved.
@drewr I mean this is just because you use the FilePermissions that are new in Java 7 can't we use File.setReadable(boolean, boolean) etc. if those classes are not available ie. detecte / fallback to java 6 and do best effort?
@timhaines cool stuff :+1:
When running stream2es with java version "1.6.0_51" on mac (OS X 10.8.4), I get the call stack below. Works fine with 1.7 for me.
To reproduce, run
,to set the java version to 6 (mine says: java version "1.6.0_51" afterwards) an then
Message is:
Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) at clojure.lang.RT.loadClassForName(RT.java:2098) at clojure.lang.RT.load(RT.java:430) at clojure.lang.RT.load(RT.java:411) at clojure.core$load$fn5018.invoke(core.clj:5530) at clojure.core$load.doInvoke(core.clj:5529) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$load_one.invoke(core.clj:5336) at clojure.core$load_lib$fn4967.invoke(core.clj:5375) at clojure.core$load_lib.doInvoke(core.clj:5374) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invoke(core.clj:619) at clojure.core$load_libs.doInvoke(core.clj:5413) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:619) at clojure.core$require.doInvoke(core.clj:5496) at clojure.lang.RestFn.invoke(RestFn.java:551) at stream2es.auth$loading4910auto.invoke(auth.clj:1) at stream2es.authinit.load(Unknown Source) at stream2es.authinit.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at clojure.lang.RT.loadClassForName(RT.java:2098)
at clojure.lang.RT.load(RT.java:430)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn 5018.invoke(core.clj:5530)
at clojure.core$load.doInvoke(core.clj:5529)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5336)
at clojure.core$load_lib$fn4967.invoke(core.clj:5375)
at clojure.core$load_lib.doInvoke(core.clj:5374)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$load_libs.doInvoke(core.clj:5413)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$require.doInvoke(core.clj:5496)
at clojure.lang.RestFn.invoke(RestFn.java:482)
at stream2es.stream.twitter$loading4910auto.invoke(twitter.clj:1)
at stream2es.stream.twitterinit.load(Unknown Source)
at stream2es.stream.twitterinit.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at clojure.lang.RT.loadClassForName(RT.java:2098)
at clojure.lang.RT.load(RT.java:430)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn5018.invoke(core.clj:5530)
at clojure.core$load.doInvoke(core.clj:5529)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5336)
at clojure.core$load_lib$fn4967.invoke(core.clj:5375)
at clojure.core$load_lib.doInvoke(core.clj:5374)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$load_libs.doInvoke(core.clj:5413)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$require.doInvoke(core.clj:5496)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at stream2es.main$loading4910auto.invoke(main.clj:1)
at stream2es.maininit.load(Unknown Source)
at stream2es.maininit.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at clojure.lang.RT.loadClassForName(RT.java:2098)
at clojure.lang.RT.load(RT.java:430)
at clojure.lang.RT.load(RT.java:411)
at clojure.core$load$fn 5018.invoke(core.clj:5530)
at clojure.core$load.doInvoke(core.clj:5529)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:415)
at stream2es.main.(Unknown Source)
Caused by: java.lang.ClassNotFoundException: java/nio/file/attribute/PosixFilePermission
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at stream2es.util.io$loading4910auto.invoke(io.clj:1)
at stream2es.util.ioinit.load(Unknown Source)
at stream2es.util.io__init.(Unknown Source)
... 73 more