WebSphere sMash Plug-in for Java and Groovy

Installation

Use the following update site to install the WebSphere sMash Java/Groovy plug-in.

http://www.projectzero.org/zero/indy.dev/latest/update/zero.eclipse
如果上述的网址不能在eclipse里直接更新的话,请在浏览器里打开上述网址,把features和plugins文件夹以及site.xml下载到本地,然后在本地进行安装,则就可以安装成功
注:附件就是所需要的jar包

If you need assistance with this step, open the Eclipse Help browser (Help > Help Contents ) and search for the term install .

Next, to obtain Groovy language IDE support, install the appropriate version of the GroovyEclipse plugin as described in Groovy - Eclipse Plugin

Configuration

The following instructions assume that you have never installed the WebSphere sMash Java/Groovy plug-in, and that you are using a new workspace.

  1. Download and install a CLI. Please visit the Command-line interface section for details.
  2. Open a command prompt at the <zerohome> directory.
  3. Type the following:
    zero version
    This command bootstraps the CLI and prevents unnecessary delays during the Eclipse configuration that follows.
  4. In Eclipse, click Window > Preferences > WebSphere sMash
  5. In the Zero home field, enter the path to your <zerohome> directory.
  6. The plug-in will take a few moments to search for the module groups from your CLI.
  7. After the Loading... message disappears from the Module group field, select the module group that you would like to use for application development. For more information about module groups, please search for the phrase "module group" in the Developer's Guide .
  8. Click OK to exit the Preferences dialog.

You are now ready to start developing WebSphere sMash application.

Creating and running an application

To create and then run a WebSphere sMash application, complete the following steps:

 

  1. Click File > New > Project ... .
  2. Expand WebSphere sMash category folder near the bottom and click the WebSphere sMash Application project type.
  3. Click Next > .
  4. Enter a name for your new application and click Finish to create it. Your new project is shown with a distinctive icon beside it.
  5. To run your new application, right-click the project and click Run As > WebSphere sMash Application . A message is displayed in the console indicating that the application was started on port 8080.

    Note: All applications use port 8080 by default. If you have another application started, it cannot use the same port. The port is configured in the application's config/zero.config file.
  6. Open a browser and enter http://localhost:8080/ to see the default page of your application. It should look something like this:

    Default application page
  7. Stop your application.

Congratulations! You have created and run your first WebSphere sMash application. Continue reading to find out how you can add additional dependencies to enhance your application. You can also look at the Employee Demo or Suggest Demo for coding examples.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值