Re: Problem Running ClojureScript on OpenJDK

2011-07-20 Thread db
I had the same problem with open jdk on ubuntu. It looks like open jdk has the class, but drops the 'internal' from the package name. You can remove the 'internal' in two places in compiler.clj and it seems to work. Longer term, the implementation-specific internal package should be removed or so

Re: Problem Running ClojureScript on OpenJDK

2011-07-22 Thread db
gt;        at sun.org.mozilla.javascript.gen.c1710.exec(cljs/core.cljs) > >>        at > >> sun.org.mozilla.javascript.Context.evaluateString(Context.java:1104) > >>        at cljs.compiler$eval1.invoke(compiler.clj:921) > >>        at cljs.compiler$repl.doInvoke(compiler.clj:1001) &

Re: Problem Running ClojureScript on OpenJDK

2011-07-22 Thread db
o go the other way, and replace the javax.script code with rhino, and treat rhino as an explicit dependency. This could be the most flexible and consistent approach across jvms. On Jul 22, 10:34 pm, Sean Corfield wrote: > On Fri, Jul 22, 2011 at 7:08 PM, db wrote: > > I believe that the is

Re: Problem Running ClojureScript on OpenJDK

2011-10-02 Thread db
The changes I posted previously solved the problem for me on open-jdk 6 on ubuntu. All I had to do was fix the package name and add the optimization level and everything worked fine. I haven't checked to see if master has changed in a way that would affect this patch. As I mentioned above, there

Re: Problem Running ClojureScript on OpenJDK

2011-10-02 Thread db
Here's what the patch looks like for openjdk-6 with the latest master, where the mozilla-specific lines have moved to the rhino.js file: diff --git a/src/clj/cljs/repl/rhino.clj b/src/clj/cljs/repl/rhino.clj index cbe4f2a..15c5bf1 100644 --- a/src/clj/cljs/repl/rhino.clj +++ b/src/clj/cljs/repl/rh

Re: Problem Running ClojureScript on OpenJDK

2011-10-03 Thread db
t; On Oct 2, 11:07 pm, db wrote: > > > > > > > > > Here's what the patch looks like for openjdk-6 with the latest master, > > where the mozilla-specific lines have moved to the rhino.js file: > > > diff --git a/src/clj/cljs/repl/rhino.clj b/src/clj/clj