Jeff Mesnil’s Weblog

Archive for the 'java' Category

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 […]

Monitoring Weblogic 9.2 with JMX and JRuby

Friday, April 18th, 2008

From Tim Koopmans:

After getting nowhere with lack luster HP support, I turned to the power of the Open Source community and got a very simple script up and running to remotely monitor Weblogic JVM Performance and JMS queues using JMX and JRuby.

[…]

This script will […]

jmx4r 0.0.5 is released with support for custom JMX URL

Monday, April 14th, 2008

jmx4r 0.0.5 has just been released (jmx4r is a JRuby library which makes it super easy to write simple Ruby scripts to manage Java applications using JMX).

There is only one enhancement to this release but it is an important one: you can now specify a custom JMX URL to connect to a MBean Server.

Before this […]

jmx4r moved to git

Thursday, April 10th, 2008

I use Subversion for my daily work (and CVS before that) but I’ve never used a distributed VCS before. One of my ex-colleagues, Marc, explained to me all the advantages of these systems but I never took the time to play with them. With all the increasing noise about Git and Mercurial, I’m now curious to learn […]