Original article: http://shark.objectweb.org/doc/sfs/sharkfromscratch1.html
View the C:/dev/shark directory and run the following command:
Configure-help
You should get the following output:
Parameters value for using with configure.bat :
configure - Make build.properties file with default values
configure -help - Display this screen
configure [-jdkhome jdk_home_dir] [-instdir installdir] -writes proper parameters to the build.properties file
Examples :
configure -jdkhome c:/j2sdk1.4.1 -instdir C:/Shark-1.0
There is a * nix shell script that can do the same thing. It is easier for me to use this. I don't need to set jdkhome because my java_home has been set, my installation directory is C:/shark. The following command is used:
Configure-instdir C:/shark
The actual task of this command is to fill in the property field in the build. properties file, which is as follows:
version=1.0
version_release=beta2
version_build=13
jdk_dir=C:/j2sdk1.4.2_04
install_dir=C:/Shark
build_debug=on
Now you have to compile and use ant, but you should use the provided make file. First, we will use-help to see what options we have:
make –help
Most of the options require that we have already built. Of course, we can also use shell scripts to complete this task. We will use the following command to build (this may take some time)
make buildAll
How to solve the problems in build is beyond the scope of this article. If it is successful, we can install
make install
This command will copy the file to your installation directory.