Look at the rhino-eval branch of ClojureScript. David
On Sun, Oct 2, 2011 at 1:59 PM, db <donald.bl...@gmail.com> wrote: > 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 is a deeper issue at play here, because the > compiler uses a combination of the scripting API and exposes some > implementation details. The Java scripting API uses an SPI (service > provider interface), which means that the JVM has a public interface > that applications use, and a separate interface that can be used to > register different implementations of the interface outside of the > application. If ClojureScript was to continue using the javax.script > package, it would require removing the exposed implementation > mozilla.*, and relying on whatever version of a javascript engine was > registered on a given JVM, or requiring some messy and complex task of > registering a specific implementation of Rhino with the JVM itself. > The way around this mess is to declare rhino as an explicit dependency > and use the APIs directly, which would make it more difficult to > switch the javascript engine. > > From what David mentions, it sounds like this is the direction taken, > if a new version of Rhino will be provided with ClojureScript soon. > > David, > > Do you have any more details on how the new version of Rhino will be > supplied with ClojureScript, and if there's a branch that could be > checked out to kick the tires before it's merged into master? > > On Oct 1, 11:23 am, Volker Schlecht <volker.schle...@gmail.com> wrote: > > Has anyone succeeded in solving this issue for OpenJDK yet? > > So far all solutions I've seen discussed boiled down to using Oracle's > > JDK ... > > > > On Aug 14, 6:44 pm, Tzach <tzach.livya...@gmail.com> wrote: > > > > > > > > > > > > > > > > > I have a similar problem, but I could not solve it like you did: > > > running on Ubuntu 11.04, > > > $JAVA_HOME set to /usr/lib/jvm/default-java, and default-java soft > > > link to java-6-sun > > > > > Still when I run script/repl, and > > > (require '[cljs.compiler :as comp]) > > > (def jse (comp/repl-env)) > > > (comp/repl jse) > > > CompilerException java.lang.RuntimeException: > > > java.lang.ClassNotFoundException: > > > sun.org.mozilla.javascript.internal.Context, compiling:(cljs/ > > > compiler.clj:971) > > > user=> CompilerException java.lang.RuntimeException: No such > > > namespace: comp, compiling:(NO_SOURCE_PATH:2) > > > user=> CompilerException java.lang.RuntimeException: No such > > > namespace: comp, compiling:(NO_SOURCE_PATH:3) > > > > > Any idea? > > > > > Thanks > > > Tzach > > > > > On Jul 23, 9:38 am, Sean Corfield <seancorfi...@gmail.com> wrote: > > > > > > On Fri, Jul 22, 2011 at 7:34 PM, Sean Corfield < > seancorfi...@gmail.com> wrote: > > > > > I may just switch to the Sun, er, Oracle JVM since I've a feeling > one > > > > > of my other projects (not yet migrated to my netbook) will require > > > > > that JVM anyway... > > > > > > Just an update: I installed Oracle'sJDKand everything is working > > > > perfectly on myUbuntunetbook :) > > > > -- > > > > Sean A Corfield -- (904) 302-SEAN > > > > An Architect's View --http://corfield.org/ > > > > World Singles, LLC. --http://worldsingles.com/ > > > > Railo Technologies, Inc. --http://www.getrailo.com/ > > > > > > "Perfection is the enemy of the good." > > > > -- Gustave Flaubert, French realist novelist (1821-1880) > > -- > 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