Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OpenJDK Cookbook
  • Table Of Contents Toc
OpenJDK Cookbook

OpenJDK Cookbook

By : Kobylyanskiy, Mironchenko
4 (2)
close
close
OpenJDK Cookbook

OpenJDK Cookbook

4 (2)
By: Kobylyanskiy, Mironchenko

Overview of this book

If you are an experienced Java developer using Java 7 platform and want to get your grips on OpenJDK for Java development, this is the book for you. JDK users who wish to migrate to OpenJDK will find this book very useful.
Table of Contents (15 chapters)
close
close
14
Index

Porting JamVM to use OpenJDK


Another Zero HotSpot alternative for non-JIT supported platforms is JamVM—an extremely small VM, which is the smallest among those supporting the blue book specification (one that was published in the book form) for Java VMs.

Getting ready

We may need a real or emulated ARM device that has Linux and any Java environment installed. We need Java to perform a javac compilation, which is a necessary part of IcedTea building process.

How to do it...

Though JamVM patches may be applied manually, we will use the more simple way:

  1. First, let's clone the source from the repository:

    git clone git://git.berlios.de/jamvm
    
  2. Then we configure it to use OpenJDK as Java runtime libraries:

    ./autogen.sh –with-java-runtime-library=openjdk
    
  3. Then we will actually build it from source using the make command:

    make && make install
    
  4. Next, we need to copy libjvm to lib:

    cp libjvm.so  /usr/local/jamvm/lib.
    
  5. Then let's copy the OpenJDK contents:

    cd /usr/lib/jvm
    cp -r java-7-openjdk jamvm-openjdk...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
OpenJDK Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon