Celtix安装配置说明 Celtix Installation

Downloading Celtix

You can download a Celtix distribution from the Celtix project page on the ObjectWeb site: http://forge.objectweb.org/projects/celtix.

 

Celtix is provided as an extractable JAR file. You can select either a source or binary distribution. Each distribution is also provided under two licensing agreements:

Eclipse Public License (EPL)

Lesser General Public License (LGPL)

 

There are two kinds of jar files available: Source and Binary

Download the version that best suits your needs. Users interested in running the product samples and/or writing Celtix applications should select the binary distribution. Users interested in reviewing the source code, and perhaps contributing to the Celtix project, might choose to use the source distribution.

 

Choose binary distribution for running Celtix, so download “celtix-1.0-bin-epl.jar" or “celtix-1.0-bin-lgpl.jar" at first.

 

Install Prerequisite

Before installing Celtix 1.0, you must ensure that you have the following product versions installed:

JDK 1.5.0 _06 (JDK 5.0 update 6) and above. Celtix requires this version of the JDK for compilation and execution.

Apache Ant 1.6.5 a nd above. Ant is optionally used to compile and execute Celtix applications. It is also possible to compile and run Celtix applications using javac and java directly. For further information of Ant, visit web page shown as follow ( http://blog.csdn.net/jefferylee/articles/1098826.aspx)

 

Installation Instruction

You can install Celtix on any operating system that supports the Java 5 platform.

 

Installing the Celtix Binary Distribution

To install either of the binary distributions (EPL or LGPL), perform the following steps:

1. Download the distribution file to a local directory.

2. Create an installation directory, (for example, Celtix-install).

3. Open a command window and move to the installation directory. Confirm that the %JAVA_HOME%/bin (Windows) or $JAVA_HOME/bin (UNIX) directory is on the PATH.

4. Use the java executable to extract the archive, for example:

java -jar path_to_Celtix_binary_distribution_file

5. The extraction process will create the following directory structure:

Setting the Environment for the Binary Distribution

 Before you can compile and run the sample applications, you must set the environment so that the directories holding the Celtix, Java, and Ant utility applications are on the PATH.

Open a command window, and move to the samples subdirectory under your Celtix installation. Ensure that the following environment variables are set. If you will be using the Ant build system exclusively, the celtix.jar file does not need to be included in the CLASSPATH variable. You may find it convenient to write a script or batch file that sets these environment variables.

The environment variables to be set as follows:

JAVA_HOME

    JDK installation directory (for example, C:/jdk1.5)

CELTIX_HOME

    Celtix installation directory (for example, C:/Celtix-install/celtix)

CLASSPATH

    Windows:

    .;%CELTIX_HOME%/lib/celtix.jar;./build/classes

UNIX:

    .:$CELTIX_HOME/lib/celtix.jar:./build/classes

ANT_HOME

    Windows:

     Ant-install-dir/apache-ant- 1.6.5

    UNIX:

     Ant-install-dir/apache-ant- 1.6.5

PATH

    Windows:

     %ANT_HOME%/bin;%CELTIX_HOME%/bin;%JAVA_HOME%/bin;%PATH%

    UNIX:

    $MAVEN_HOME/bin:$CELTIX_HOME/bin:$JAVA_HOME/bin;$PATH

 

 

Testing the Installation

To test the installation of Celtix, try running the basic Hello World sample application, or any of the other samples.

Running a Sample Application

To build and run the Hello World application, perform the following steps:

1.Open a command window, and ensure that your environment is set.

2.Change directory to %CELTIX_HOME%/samples/hello_world (Windows) or $CELTIX_HOME/samples/hello_world (UNIX).

3.Enter the ant build command to build both the client and server applications.

4.Open a new command window and set the environment.

5.Change directory to %CELTIX_HOME%/samples/hello_world (Windows) or $CELTIX_HOME/samples/hello_world (UNIX).

6.Enter the ant server command.

7.In the first command window, enter the ant client command.

 Above is just a simple SOAP app. 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值