Build JNode from source package on GNU/Linux totally by hand (distribution independent)

Q:What does "totally by hand" mean ?
A:It means you build JNode iso image under condition that you don't have any necessary software on hand available.

*Necessary Software*
------------------------------------------------------------------
@Tools-->Please check if these below tools are installed already

*coreutils* --Core package built-in any GNU/linux distribution
http://directory.fsf.org/coreutils.html

*tar*--A GNU file archiving program
http://www.gnu.org/software/tar/

*bzip2*--A block-sorting file compressor
http://www.bzip.org/downloads.html

*nasm*--The famous Netwide Assembler
http://sourceforge.net/project/showfiles.php?group_id=6208

*mkisofs*--CD creation tools
http://directory.fsf.org/xcdroast.html

*bash*-- The GNU Bourne Again shell
http://directory.fsf.org/bash.html

*JDK*--Java Development Kit (1.4 or higher recommended)
http://java.sun.com/javase/downloads/index.jsp

*Ant*--Apache-ant
http://ant.apache.org/bindownload.cgi

@Materials

*JNode*--JNode source package
http://jnode.org/releases/
------------------------------------------------------------------
OK,since you have got all those software needed,let's start going:)
Firstly and also the most important thing to do is set up the environment for building JNode.Here,JDK & Ant is the key.So,check their environment variables settings by using commands:
$javac -version ; java -version
$ant
*if command not found,then you need to set environment variables
HOWTO:
General: edit ~/.bashrc(for users only) or /etc/profile(for global wide) to set JDK/ANT into your PATH.
Format:
#For JDK
JAVA_HOME=/PATH/TO/JAVA/ROOT/DIRECTORY
export PATH=${PATH}:${JAVA_HOME}/bin
#Fo ANT
Assume Ant is installed in /usr/local/ant. The following sets up the environment:

export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/local/jdk-1.5.0.05
export PATH=${PATH}:${ANT_HOME}/bin
*Note*:
if you don't want to keep the environment variables active forever,you can just set them temporarily by inputting those statements in bash.
------------------------------------------------------------------
@Build JNode from source
Everything preparatory is done,it's time to build JNode from source

*Step 1*--uncompress JNode source package
$tar xjvf jnode_source_package.tbz

*Step 2*--generate iso image for 32-bit x86 platform
$cd jnode
$./build.sh cd-x86-lite > buildlog.txt
*Note* if no errors output,then successfully Smiling
If failed,check buildlog.txt please.
*Step 3*--Check it out
$cd all/build/cdroms
$ls
jnode-x86-lite.iso jnode-x86-lite.iso.vmx
*Cheers:D*
------------------------------------------------------------------
Summary:
This GUIDE is distribution independent,rpm deb(etc.)based distributions are much easier to install convenient and powerful software.For example,on Redhat/Fedora,JPackage project software are recommeded to use.
Correctly set the environment variables is the way to home.So try your best to make it,otherwise you will spend too much time in being puzzled why the cdroms folder is empty :S
Of course you may want to write a shell script to get everything done in less then 5 seconds by running,say: sh super_script.sh,why not have a try?
*If there still has any questions ,please ask in the forum or IRC/JNode channel*
Good luck!

about requirements

there is few errors :
- bzip2 and tar are not needed
- jdk 1.5 is the minimum since we use : generics ...

Fabien

my blog (in english and french)

Actually, Java 6 is required

Java 6 is required due to (ahem) "issues" in the boot image builder. (There is a patch that provides a workaround, but it was not accepted.)