First Run Of Openjdk 1.7 For Mac

Posted on by  admin

As, Apple's involvement with the OpenJDK project began in earnest in November 2010. The first fruits of this labour became available last week, with the available to run OpenJDK on OSX. The builds a JDK bundle (as understood by the new layouts in OSX) as well as hotspot support, networking and X11. Not only that, you can already thanks to the cross-platform SWT support being bound to the native code already. Since some of the graphical aspects of Apple's JDK implementation were significantly different from the way that other platforms are implemented, there are some missing parts in that regard at the moment. This means that the WebStart, Applet and the Java preferences aren't part of OpenJDK on OSX yet; nor are some of the other aspects like clipboard and printing.

Running Java headless applications (or SWT-based Eclipse applications) are likely to work well and gives OSX a breath of life in the JDK space. As this depends on 10.6, the OpenJDK package only supports Intel processors; PPC processors will not be supported. The current build requires a 64-bit processor to compile and build the package, although the compiled result will run on either a 64-bit or 32-bit platform. There is a community supported which provides pre-built versions of the OSX OpenJDK tree; so a compiled installer for is available. Rate this Article.

I currently have a project that I’m evaluating using JRuby for. The first step in the evaluation is of course to set everything up. While I could have installed JRuby and let it run with the version of Java already available on Mac OS X Lion, I opted to be on the edge. That means installing the latest OpenJDK Mac OS X port of Java 7 and installing JRuby on top of it. These are the directions of how I did that.

These steps can be found in other places, but my hope is that by collecting them all in one place I make it easier for others. First stop, Java. Java 7 is not yet officially out for Lion, but it is possible to install a Mac OS X port early release version without too much trouble. The directions are available on the.

First make sure you meet the prerequisites, such as having a 64 bit capable machine, having Lion, having the latest Xcode installed (Version 4.1, ). Once you’ve verified the prerequisites and installed Xcode 4.1 if you need it, you’ll need to download Apple’s preview of Java 7. This doesn’t install Java 7, but it is necessary so that you have the proper APIs for Java 7 to work on the Mac. To download it, go to. You will need to log in using your Apple Id and password. You can register if you don’t have one.

Once in, navigate to the Java section. You’ll then want to download the latest disk image for Lion, which as of this writing is Java for 10.7 – 11M3504 (Disk Image). Once the download is complete, run the disk image and install it. Next you’ll need to follow further directions from the Mac OS X Ports page, found. The directions will tell you how to install a preview version of Java 7 on Lion. You can either build it from source or download an unofficial build.

I opted to download the, which is OpenJDK-OSX-1.7-universal-20110822.dmg at the time of this writing. Once downloaded, install it. Now Java 7 is on your system, but it won’t be the default Java. To make it the default Java, launch: /Applications/Utilities/Java Preferences.app and drag both of the OpenJDK 7 entries to the top of the list. Then close the Java Preferences app. Java 7 is now installed on your system and is the default. To make sure Java 7 is the default, launch a terminal and run java -version.

First Run Of Openjdk 1.7 For Mac Pro

You should see output that looks similar to this: openjdk version '1.7.0-internal' OpenJDK Runtime Environment (build 1.7.0-internal-b00) OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) It’s onto JRuby. Download the latest JRuby from (as of this writing, it is 1.6.4).

I downloaded the tar ball. It will place a jruby-1.6.4 folder wherever you extracted it to. Move the folder to the location you want it on your system, if it isn’t already there. Add the bin folder from the jruby folder you extracted to your system path. Good directions can be found at. Note that those directions modify the path for every user on the system, not just a single user.

First Run Of Openjdk 1.7 For Mac

First run of openjdk 1.7 for mac free

Once that is done, close and restart any terminals you have open. Then type jruby -v and you should see this: jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (OpenJDK 64-Bit Server VM 1.7.0-internal) darwin-x8664-java Success. You’re now running JRuby with Java 7 on Mac OS X Lion. Since the Java 7 isn’t an official version, I can’t promise there won’t be bugs or other weirdness, but that’s the fun of living on the edge. Things have changed a bit. While Oracle has not yet released Java 7 for the Mac, they have announced plans to do so in Q2 of 2012.

See: Oracle has also released a preview version of Java 7, which you can download from here: That will be simpler than above, but I don’t know what it contains. As for the above instructions, even if you did screw something up, it’s just a matter of telling the system to use the old system Java by putting it back at the top of the Java Preferences app (look for those steps in the blog post). I should also note that the version numbers have likely changed since I made this post, as I haven’t checked recently.

First Run Of Openjdk 1.7 For Mac Free

Msi pc54g2 driver for mac. Hope that helps. Hi Mark, thank you for the fast response. Actually I was a bit surprised as it seems it worked fine for everyone but me.

Comments are closed.