Rajendra's Blog

Wednesday May 07, 2008

Building OpenJDK with New NIO.2 patch

Source code for NIO.2 is available as a patch. I have applied the NIO.2 patch to the clone of OpenJDK repository and built the OpenJDK source in Solaris-Sparc and Ubuntu 8.04 on x86 machine.

Here are the steps I have followed.

> Install Mercurial 0.9.5 and update hg configuration file ~/.hgrc with forest extension.
> To install forest extension to mercurial

                 > export http_poxy=your proxy
                 > hg clone http://hg.akoha.org/hgforest
set the forest configuration variable to the path of forest.py in extensions section of ~/.hgrc file to enable forest extension
                  [extensions]
                  forest=/home/rajendra/hgforest/forest.py
>clone the jdk7 mercurial repository
                  hg fclone http://hg.openjdk.java.net/jdk7/tl jdk7

> download nio2-b90 patch
> move to folder jdk7/jdk and apply the nio patch with following command
                    patch -p1 < nio2-b90.patch
> follow the instructions for building OpenJDK
Here I executed the sample code DiskUsage.java which exhibits as df utility with the new build as follows.
$ ~/jdk7/build/bin/java -version 
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-b27)
OpenJDK Client VM (build 12.0-b01, mixed mode)
$~/jdk7/mytl/build/bin/java DiskUsage

Filesystem                 kbytes         used        avail
/ (/dev/sda1)           113313700      5238532    102364464
/proc (proc)                    0            0            0
(output discarded)

Try yourself and send feed-back, comments and suggestions to NIO OpenJDK project. I hope you will enjoy.

Comments:

How about compiling in other OS like CentOS 5.x & Windows Vista?

Uday.

Posted by Uday on May 13, 2008 at 03:09 AM IST #

Hi,

I am trying to build it following your instructions.
clone, patch works file, but compiling jvm failed with error:
src/os/linux/vm/jvm_linux.cpp
cc1plus: warnings being treated as errors
/home/tigran/fix/jdk7/jdk7/hotspot/src/os/linux/vm/jvm_linux.cpp:179: warning: deprecated conversion from string constant to ‘char*’
...
make[5]: *** [jvm_linux.o] Error 1
..

My environment:

tigran@nairi:~> uname -a
Linux nairi 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC i686 i686 i386 GNU/Linux
tigran@nairi:~> make --version
GNU Make 3.81

tigran@nairi:~> gcc --version
gcc (GCC) 4.2.1 (SUSE Linux)

tigran@nairi:~> ant -v
Apache Ant version 1.7.0 compiled on December 13 2006

Thanks,
Tigran.

Posted by Tigran Mkrtchyan on June 18, 2008 at 02:26 PM IST #

Please see my post http://blogs.sun.com/rajendrag/entry/building_openjdk_in_ubuntu_8
I have mentioned about this issue.

Posted by 192.18.43.225 on June 20, 2008 at 01:25 PM IST #

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.

Posted by Christian Louboutin Boots on October 29, 2009 at 10:21 AM IST #

It was a very nice idea! Just wanna say thank you for the information you have shared. Just continue writing this kind of post. I will be your loyal reader. Thanks again.

Posted by Abercrombie clothes on November 08, 2009 at 01:58 PM IST #

yeah ,i think so

Posted by christian louboutin on November 15, 2009 at 12:35 PM IST #

I think I will try to recommend this post to my friends and family, cuz it’s really helpful.

Posted by ed hardy caps on November 17, 2009 at 06:58 AM IST #

Keep up the good work bro.Your article is really great and I truly enjoyed reading it.Waiting for some more great articles like this from you in the coming days.

Posted by abercrombie fitch sale on December 10, 2009 at 01:32 PM IST #

Great Overview on Crossbow Ben! And thanks everyone for
trying it out. You can find more details relating to architecture
or building advanced virtual networks aka Virtual Wire at
Christian Louboutin Shoes will be the nice presents

Posted by Christian Louboutin Boots on December 25, 2009 at 08:59 AM IST #

<p>Not only does the style recall the patent leather, peeptoe pump that the brilliant <a href="http://www.christianlouboutinshoesdirect.com/" target="_blank">louboutin shoes</a><b></b> designer Christian Louboutin elevated to fashion ubiquity over the last few seasons (see both platform and standard versions below), but Christian louboutin has imitated the red Louboutin sole as well. Ay! The worst part of this affront is that the <b><a href="http://www.christianlouboutinshoesdirect.com/" target="_blank">Christian louboutin&nbsp; shoes</a> </b>version does not look on half as good as the Louboutin.Look, here are the two shoes together, the <b><a href="http://www.christianlouboutinshoesdirect.com/" target="_blank">louboutin</a></b> on the left.

Posted by christian louboutin boots on December 26, 2009 at 12:01 PM IST #

Just one question: how to add your blog into my rrs reader, thanks so much.

Posted by christian louboutin on January 03, 2010 at 12:14 PM IST #

Welcome to our website,and you will enjoy the sunshine service. Let's

abandon all the worry,and enjoy the happy shopping travel.All the

replica watches paypal and replica watches are most in fashion

boutique this year.rolex replica and rolex replica paypal and the

replica rolex paypal show your chaming temperament. In addtin, the

fake watches paypal and the other fake rolex paypal make you mold

your unique glamour this winter.The swiss rolex replica have the high

quality but low price. replica watch paypal and replica rolex have

all the style and cheapest price replica rolex watches. Enjoying the

fun of net purchase! replica rolex We will supply you the perfect

service and after sale support system. Our honest will bring you

absolute satisfaction.

Posted by replica watches on January 05, 2010 at 01:26 PM IST #

Thank you for the sensible critique. Me & my neighbour were preparing to do some research about that. We got a good book on that matter from our local library and most books where not as influensive as your information. I am very glad to see such information which I was searching for a long time.This made very glad Smile

Posted by christian louboutin on January 07, 2010 at 01:17 PM IST #

thank you for sharing it.

Posted by christian louboutin shoes on January 08, 2010 at 09:34 AM IST #

Thank you.Hot Shoes Cheap Jordan shoes michael jordan shoes and are on sale-Free shipping.

Posted by michael jordan shoes on January 09, 2010 at 12:30 PM IST #

it is so cool~! thanks~!

Posted by Louis Vuitton bags on January 24, 2010 at 08:11 AM IST #

[URL=http://www.christianlouboutinshoes.me]Christian Louboutin Shoes[/URL]
[URL=http://www.christianlouboutinshoesstore.com]Christian Louboutin Shoes[/URL]
[URL=http://www.christianlouboutinshoesmart.com]Christian Louboutin Shoes[/URL]

Posted by may on February 01, 2010 at 01:55 PM IST #

Well thanks for the information ..but still i am facing some troubles in copying the embedded jvm files to my setup in vista ..i need a tutorial or a guide perhaps to get the better command of the subject.

I have used the extensions [extensions]
forest=/home/rajendra/hgforest/forest.py but gain i thibnk some important file is missing in my vista.

Posted by fake watches on February 01, 2010 at 03:56 PM IST #

Thank you for your share!It is wonderful!!
http://www.nike-star-shoes.net/ Adidas basketball shoes
http://www.nike-star-shoes.net/Nike_Zoom_Kobe_V.html Nike Zoom Kobe V
http://www.nike-star-shoes.net/Allen_Iverson_Shoes.html Allen Iverson Shoes
http://www.nike-star-shoes.net/Reebok_Answer_XII.html Reebok Answer XII

Posted by Adidas basketball shoes on February 05, 2010 at 01:14 PM IST #

Thank you for your sharing. Supposed to attack these head-on and you will find a deep sense of gratification thatwill fuel your happiness. Maybe you are also interested in manolo blahnik. I'm just hearing the curiosity behind it.

Posted by manolo on February 06, 2010 at 04:45 PM IST #

Post a Comment:
  • HTML Syntax: NOT allowed

Calendar

Feeds

Search

Links

Navigation

Referrers