I just saw this thread and that (use of internal class) does seem to
be the problem.  I submitted a pull request for this problem a little
while ago:

https://github.com/clojure/clojurescript/pull/1


On Jul 20, 9:45 pm, db <donald.bl...@gmail.com> wrote:
> 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 some checks for different implementations
> added.
>
> diff --git a/src/clj/cljs/compiler.clj b/src/clj/cljs/compiler.clj
> index b1f2213..2f1a7ab 100644
> --- a/src/clj/cljs/compiler.clj
> +++ b/src/clj/cljs/compiler.clj
> @@ -916,11 +916,11 @@ goog.require = function(rule)
> {Packages.clojure.lang.RT[\"v
>              (print js))
>          (let [filename (.get jse javax.script.ScriptEngine/FILENAME)
>                linenum (or (:line (meta form)) Integer/MIN_VALUE)
> -              ctx (sun.org.mozilla.javascript.internal.Context/
> enter)]
> +              ctx (sun.org.mozilla.javascript.Context/enter)]
>            (try
>              (.evaluateString ctx (:global repl-env) js filename
> linenum nil)
>            (finally
> -            (sun.org.mozilla.javascript.internal.Context/exit))))
> +            (sun.org.mozilla.javascript.Context/exit))))
>          (catch Throwable ex
>            ;;we eat ns errors because we know goog.provide() will
> throw when rel
>            ;;TODO - file bug with google, this is bs error
>
> On Jul 20, 10:08 pm, David Soria <experimentalwo...@googlemail.com>
> wrote:
>
>
>
>
>
>
>
> > Okay, it's a GNU classpath problem, as they don't include sun.*
> > namespaces. Sadly javax.script.ScriptEngineManager is available and
> > returns an impl of javax.script.Scriptable, which refers to some rhino
> > engine that is in the classpath, but the concrete needed
> > sun.org.mozilla.internals.Context is not in GNU classpath.
>
> > Switching from OpenJDK to Oracle JDK solved the problem
>
> > On Jul 21, 2:37 am, David Soria <experimentalwo...@googlemail.com>
> > wrote:
>
> > > Hi, I try to run ClojureScript rev
> > > e4ad8ed60ca05645e0ac96362d4c6ef1e1a2bd6f
>
> > > my environment is:
> > > Fedora Linux 15
> > > java version "1.6.0_22"
> > > OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-
> > > x86_64)
> > > OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
>
> > > After bootstrapping, I try to run the repl and load the cljs compiler.
> > > I get this error:
>
> > > Clojure 1.3.0-beta1
> > > user=> (require '[cljs.compiler :as comp])
> > > CompilerException java.lang.RuntimeException:
> > > java.lang.ClassNotFoundException:
> > > sun.org.mozilla.javascript.internal.Context, compiling:(cljs/
> > > compiler.clj:919)
>
> > > Rhino is installed and correctly loaded into the classpath.
> > > $ yum info rhino
> > > Loaded plugins: langpacks, presto, refresh-packagekit
> > > Installed Packages
> > > Name        : rhino
> > > Arch        : noarch
> > > Version     : 1.7
>
> > > This looks like a problem with the sun.org.mozilla.javascript.internal
> > > package. This is part of sun-jdk and not of openjdk.

-- 
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

Reply via email to