Jeff Mesnil’s Weblog

Archive for May, 2008

Review of JavaScript: The Good Parts

Tuesday, May 27th, 2008

I admit: I don’t like JavaScript.

I have written and maintained very few scripts and it was a frustrating experience to have them working on several browsers. However this was many moons ago and I wanted to reevaluate JavaScript after using it in unexpected places (i.e. outside of the browser) like in CouchDB View API or […]

How to include JavaScript engine in Apple’s Java 6 VM

Wednesday, May 14th, 2008

After complaining in my previous post, here is a more constructive guide to use JavaScript with Apple’s Java 6 VM:

Download JSR 223’s engines Copy jsr223-engines/javascript/build/js-engine.jar to /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/ext/ Download Rhino Copy rhino1_7R1/js.jar to /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/ext/

You can now use a “JavaScript” engine from Apple’s Java 6 VM:

public class ScriptTest { public static void main(String[] args) throws Exception { […]

No JavaScript in Java 6 on Mac OS X

Wednesday, May 14th, 2008

I had an idea about using JavaScript from Java 6 and I wanted to give it a try on my MacBook. No such luck: Apple has recently released Java 6 for Mac OS X Leopard but somehow it does not include Rhino, the Mozilla’s JavaScript engine bundled in Sun Java 6 release.

Instead they provided only one […]