
Chapter 17 Working with Eclipse
Generating Java code and Eclipse project files
You can generate the Java code for EJBs, Servlets and JSPs along with the Eclipse project files.
To generate the Java code and Eclipse project files:
- Select Language→Generate Java Code.
- Select the folder where you want to generate the files. By default, this will be the project folder. Click the Select Path tool to the right of the Directory field to change the folder. You can choose between specifying the destination as a project folder or as a physical location. If you choose a project folder you are given the option to choose an existing folder or to create a new project or folder.
- Verify that Eclipse and the target application server are selected in the Targets page.
- Select the packages, classes and interfaces you want to generate in the Selection page.
- Set the generation options for Java, EJB and the target application server in the Options page. To be able to deploy the application in an application server, you need to enter the server name, port number, user name and password. If you do not enter these options, you will need to modify these properties in the generated Ant build.xml file.
You do not need to select any command task in the Tasks page.
- Click OK to generate the Java code and the Eclipse project files.
Copyright (C) 2008. Sybase Inc. All rights reserved.
|
|