Before you can run the sample, you must first import the sample into your workspace and launch the test runtime.
Follow these steps:
- To import the sample:
- Select File > Import.
- From the Import Wizard, select General and then select Existing Projects into Workspace. Click Next.
- Select the Archive file radio button.
- Enter the name of the sample jar file, browser.jar, or browse to the com.ibm.rcp.tools.samplegallery2 plug-in directory and select the jar file from the archive directory.
- The dialog shows the projects present in the archive jar file. Select Finish to install the projects into your workspace.
- To launch the test runtime:
- Select Run > Run Configurations... from the main menu.
- Select Client Services and click New.
- Type a unique name for your configuration, such as Embedded Browser Application.
- Select the Plug-ins tab and verify that the com.ibm.rcp.samples.ui.browser.launch plug-in is selected.
- Select the Arguments tab and verify that –console is in the Program Arguments field.
- Click Apply and then Run to launch the Lotus® Expeditor workbench.
- To start the sample in the Lotus Expeditor workbench menu, click Open and then click Embedded Browser Sample.
Parent topic: Embedded browser: XPD622
Running the sample
This sample contributes a new perspective and view to the Lotus Expeditor workbench: Browser Perspective
and Web Browser View
The Web Browser View contains a browser window with a tab named the title of the active Web page. The initial view is for http://www.ibm.com
with a tab named IBM® United States. To add another browser view to the perspective, select Embedded Browser
from the menu bar and select Add Browser
. A new embedded browser view is launched for http://www.lotus.com
with a tab named IBM Lotus Software.
The sample application is not available in the launch list.Cause:
The com.ibm.rcp.samples.ui.browser.launch plug-in is not present or does not resolve in the client platform.Action:
Verify that the com.ibm.rcp.samples.ui.browser.launch plug-in is contained in the runtime. If the plug-in is present, check the status of the plug-in. Go to the Console view and use the b com.ibm.rcp.samples.ui.browser.launch command. The second line of output indicates the plug-in status. If the status is not RESOLVED or ACTIVE, there is a problem with the plug-in and its dependencies. Use the diag com.ibm.rcp.samples.ui.browser.launch command to identify any unsatisfied dependencies. Resolve any missing dependencies and restart the platform.