Workarounds for using ClojureScript with OpenJDK?

I am working on a project with Clojure and Noir, and I enjoy free hosting on Herekuโ€™s cedar sneakers. I recently added some UI work in ClojureScript to find that it works locally, but it crashes on Heroku due to the use of OpenJDK. OpenJDK has a Rhino JavaScript engine in a different namespace.

Has anyone heard of a workaround to this issue? Can a Rhino version with the correct namespace be installed as a project dependency? Or is there an alternative to Heroku that uses Oracle JDK?

+4
source share
2 answers

According to this post , problems with ClojureScript and OpenJDK should be resolved on the ClojureScript main branch .

+3
source

I think this is a feature request for the ClojureScript tracker. Many people have this problem (at least I know), so it should attract attention.

Heroku does not really intend to support ClojureScript (yet) and does much more in terms of hosting than the compiled ClojureScript program really needs. perhaps you can find a provider that will just host javascript and send them compiled.js instead of a java class that runs its own java interpreter.

I agree that not using Heroku is a pain because it has the best (from my experience) integration with git + clojure + leiningen. perhaps either Heroku or Clojure people will fix this soon: - /

+3
source

All Articles