After you create a new project, you add the required JARs
and Java™ Runtime Environment
(JRE), then set the compiler compliance level.
Starting Eclipse
On your system, start the Eclipse IDE application.
In the Eclipse Workspace Launcher window,
enter a workspace name. For example, C:\workspace or /opt/workplace.
Click OK.
If the Welcome pane opens, close
the pane.
Creating a Project
In the Eclipse menu bar, click File > New > Java Project.
In the New Java Project dialog box,
enter the project name in the Project name field. For example, P8ApiSample.
Click Finish.
Adding IBM® FileNet JARs
In Eclipse, if the Project Explorer pane
is not already open, click the Show View icon
in the lower left corner of Eclipse, then click Project
Explorer.
In the Project Explorer pane, right-click
your project name, then click Properties.
In the Properties dialog box, click
the Java Build Path node in the left pane tree
view.
In the Java Build Path section of the Properties dialog
box, click the Libraries tab.
Click Add External JARs.
In the JAR Selection dialog box,
browse to the folder location for the JAR files Jace.jar, log4j.jar,
and p8cel10n.jar.
Using the Ctrl key, select the required JAR files from
the file list.
Click Open.
Keep the Properties dialog box open
and proceed to the next procedure.
Adding a WebSphere JRE
to the Project
A FileNet® P8 client
application that uses the Enterprise JavaBeans (EJB) transport must use the WebSphere JRE to connect to a Content Platform Engine that is hosted by WebSphere.
In the Properties dialog box, click the Java
Build Path node in the left pane tree view.
In the list of JARs and class folders on the build path,
select JRE System Library, and click Edit.
In the JRE System Library dialog
box, click Installed JREs.
Click Add.
In the Add JRE dialog box, select Standard
VM in the Installed JRE Types list.
Click Next.
Enter the JRE home for the WebSphere software.
For a remote development environment, specify the JRE location
of WebSphere Application Client,
for example, C:\Program Files\IBM\WebSphere\AppClient\java\jre for Windows, or /opt/IBM/IBM/WebSphere/AppClient/java/jre for non-Windows
systems.
For a local development environment, specify
the JRE location of WebSphere Application
Server, for example, C:\Program Files\IBM\WebSphere\AppServer\java\jre for Windows, or /opt/IBM/WebSphere/AppServer/java/jre for non-Windows
systems.
Enter the JRE name. For example, WebSphere
JRE.
Click Finish.
In the Installed JREs dialog box,
select the newly added WebSphere JRE.
Click OK.
In the JRE System Library dialog
box, click Alternate JRE, then, from the drop-down
list, select the WebSphere JRE.
Click Finish.
Keep the Properties dialog box open
and proceed to the next procedure.
Setting Compiler Compliance Level
The Java compiler that
you use for your project must be compliant with the version used for
the Content Engine Java API.
In the Properties dialog box, click
the Java Compiler node in the left pane tree
view.
In the Java Compiler section of
the Properties window, select the Enable project specific settings check box.
Select the Use default compliance settings check
box.
Select 1.6 from the Compiler
compliance level list.
Click OK.
If the Compiler Settings Changed dialog
box opens, click Yes.