Shark learning from scratch (3)-Compilation

Source: Internet
Author: User

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.

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.