Last updated January 17, 2011 15:01, by Jørgen Austvik
Feedicon  

Building JET Framework on Mac OS-X

This is how to build JET Framework on Mac OS-X (tested on 10.5) if you want the source code in ~/jet~framework/, and some additional downloads in ~/Downloads/.

First you must download and install:

NetBeans includes Maven, which is another dependency.

JET needs Java SE 6, but Mac OS-X has Java 5.0 as default. You can change this with Macintosh HD - Applications - Utilities - Java Preferences by dragging Java SE 6 to the top of the two lists. For more information, see http://www.gridshore.nl/2008/03/29/java-on-apples-mac-osx/.

Then you can pull the source code. You can either use NetBeans for this, as described in Get the JET source code (easiest), or you can do it from a command line.

If you choose to build JET from a command line in OS-X, this is how you do it:

To get the source code from the command line you can start Terminal and run:

 $ cd 
 $ LC_ALL=en_US.UTF-8 hg clone https://kenai.com/hg/jet~framework

(The LC-ALL part is described in http://const-cast.blogspot.com/2009/04/mercurial-on-mac-os-x-valueerror.html.)

Now you have the source code, but you have to install three extra dependencies into the maven repository.

Download JMX Remote API 1.0.1_04 Reference Implementation and JMX 1.2.1 Reference Implementation from http://java.sun.com/products/JavaManagement/download.html to ~/Downloads. If you use Safari, the .zip files will be extracted as default.

 $ cd Downloads
 $ mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=./jmx-1_2_1-bin/lib/jmxtools.jar
 $ mvn install:install-file -DgroupId=javax.management -DartifactId=jmxremote -Dversion=1.0.1_04 -Dpackaging=jar -Dfile=./jmxremote-1_0_1-bin/lib/jmxremote.jar
 $ mvn install:install-file -DgroupId=javax.management -DartifactId=jmxremote_optional -Dversion=1.0.1_04 -Dpackaging=jar -Dfile=./jmxremote-1_0_1-bin/lib/jmxremote_optional.jar

To build, you can run:

 $ cd ~/jet~framework
 $ MAVEN_OPTS=”-Xmx512m” mvn clean install site

If you have problems finding/running Java on OS-X, you can run maven like this:

 $ cd ~/jet~framework
 $ MAVEN_OPTS=”-Xmx512m” mvn clean install site -Djet.java.home=/usr/bin -Djetbatch.java.home=/usr/bin
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close