Posts

Showing posts from June, 2011

Building the OpenJDK on Linux x86 with logs

Some have had difficulty building the OpenJDK. The OpenJDK build system is designed for different operating system platforms, different architectures, and different host configurations so there are some steps that aren't entirely intuitive. Here is a full listing of the commands I used to build on x86 Linux. Ubuntu 10.04 as of June 2011. sudo apt-get install gawk alsa alsa-base alsa-utils alsa-tools libasound2-dev sudo apt-get install libx11-dev libxt-dev x11proto-xext-dev libxext-dev x11proto-input-dev libxi-dev sudo apt-get install libxtst-dev libmotif-dev xutils-dev libfreetype6-dev sudo apt-get install libcups2-dev ant g++ libxrender-dev libfreetype6 libfreetype6-dev freetype2-demos sudo apt-get install x11proto-print-dev # Run these at the command line: export LANG=C export ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk export ALT_JDK_IMPORT_PATH=$ALT_BOOTDIR export ALLOW_DOWNLOADS=true make sanity make Using OpenJDK version: openjdk-6-src-b22-28_feb_2011.tar.gz Additional Comman...

Simple OpenJDK compiler build

If you are interested in a simple build for the open jdk compiler. See this mirror project: http://jvmnotebook.googlecode.com/svn/trunk/javac_compiler/JavaSource To build, type: mvn package To run the compile: mvn exec:java -e -Dexec.mainClass="berlin.com.sun.tools.javac.MainJavac" -Dexec.args="Test.java"