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

*tar*--A GNU file archiving program

*bzip2*--A block-sorting file compressor

*nasm*--The famous Netwide Assembler

*mkisofs*--CD creation tools

*bash*-- The GNU Bourne Again shell

*JDK*--Java Development Kit (1.4 or higher recommended)



*JNode*--JNode source package
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
*if command not found,then you need to set environment variables
General: edit ~/.bashrc(for users only) or /etc/profile(for global wide) to set JDK/ANT into your PATH.
#For JDK
export PATH=${PATH}:${JAVA_HOME}/bin
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-
export PATH=${PATH}:${ANT_HOME}/bin
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
$./ 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
jnode-x86-lite.iso jnode-x86-lite.iso.vmx
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,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 ...


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.)