How to run Lotus Notes 8.0 first public beta from... Eclipse IDE

How to run Lotus Notes 8.0 first public beta from... Eclipse IDE
How to run Lotus Notes 8.0 first public beta from an
Eclipse IDE
In order to develop Eclipse components for Composite Applications in Lotus
Notes it is desirable to develop the Eclipse components in an Eclipse IDE and
then to open Notes 8 and the Eclipse components from the IDE directly. This
avoids assigning the components new version ids and to export them to update
sites every time you want to test them. It obviously also allows using the Java
debugger.
With the Lotus Expeditor toolkit which is an extension to Eclipse based IDEs you
can very easily launch Notes from the IDE by just pointing to the Notes directory.
However we have unfortunately not been able to make the Expeditor toolkit part
of the first public Notes beta yet. So this document describes the manual
configuration steps you need to do.
Prereqs
1. Eclipse 3.2.2
2. Lotus Notes 8.0 first public beta
Eclipse IDE configuration
1. Start Eclipse IDE
2. Set target platform.
From within Eclipse IDE
•Select Window > Preferences
•Expand Plug-in Development
•Select Target Platform
•In the Location edit control, type c:\notes\framework\eclipse
•Click the Reload button
•Click OK
3. Create an additional Installed JRE
From within Eclipse IDE
•Select Window > Preferences
•Expand Java
•Select Installed JREs
•Click Add...
•For JRE name, enter a name of your choosing: something like Notes JRE
(Note: We will refer to this as Notes JRE later in this document when we use this.
It is probably easiest if you are new at this just to use this name.)
•Enter c:\notes\framework\rcp\eclipse\plugins
\com.ibm.rcp.j2se.win32.x86_1.5.0.<version number> for the JRE Home Directory.
(Note: This will populate may jar files to the lower part of the popup.)
4. Create a new runtime configuration.
From within Eclipse IDE
•Select Run >Run...
•Select Eclipse Application
•Right click and select New
•Enter a Name: (i.e. Notes)
•Select Clear workspace data before launching
•Under Program to Run, select Run a product,
•For Run a product, select com.ibm.notes.branding.notes
•In the Runtime JRE, select Notes JRE
•Select the Arguments tab
•Put in the Program arguments text box:
-personality com.ibm.rcp.platform.personality
-product com.ibm.notes.branding.notes
-debug
-console
•Put in the VM arguments text box (Note: these are all taken from the <install>\rcp
\eclipse\plugins\com.ibm.rcp.base_<version>\rcpinstall.properties):
-Xshareclasses
-Drcp.home=${rcp.home}
-Dcom.ibm.rcp.install.id=${install_id}
-Drcp.install.config=user
-Dosgi.install.area=${rcp.home}\eclipse
-Dcom.ibm.pvc.osgiagent.core.logfileloc=${rcp.home}\rcp
-Dcom.ibm.pvc.webcontainer.port=0
-Declipse.pluginCustomization=${rcp.home}\rcp
\plugin_customization.ini
-Declipse.registry.nulltoken=true
-Djava.protocol.handler.pkgs=com.ibm.net.ssl.www.protocol
Djava.util.logging.config.class=com.ibm.rcp.core.internal.logger.boot.L
oggerConfig
Dosgi.hook.configurators.exclude=org.eclipse.core.runtime.internal.ada
ptor.EclipseLogHook
-Dosgi.framework.extensions=com.ibm.rcp.core.logger.frameworkhook
-Xbootclasspath/a:${rcp.home}\rcp\eclipse\plugins\com.ibm.rcp.base_$
{rcp.base_version}\rcpbootcp.jar;
•Click Variables...
•Click Edit Variables...
•Click New...
•Enter rcp.home for the Name:
•Enter the path where you installed notes for the value: (i.e c:\notes\Framework) and
click ok.
•Click Variables...
•Click Edit Variables...
•Click New...
•Enter rcp.base_version for the Name:
•Enter the version of the com.ibm.rcp.base plugin that is installed for the value: (i.e
6.1.0.0-20061004) and click ok.
•Click Variables...
•Click Edit Variables...
•Click New...
•Enter install_id for the Name:
•Enter the random number for the value: (i.e 1149682348828) and click ok.
•For example, if Notes data is located at C:\Documents and Settings\sauriemm.IRIS
\IBM\RCP\1149682348828 then the random number is 1149682348828.
•Click ok and then cancel to the select variable dialog (if you click ok to select variable
it will add the variable at the insertion point).
5. Enable Notes security from IDE
 In <notes install location>\framework\shared\eclipse\plugins
\com.ibm.notes.branding_3.0.0.<version number>
\notes_plugin_customization.ini
Uncomment the following two lines by removing the leading # character
#com.ibm.rcp.security.auth/loginEnabled=true
#com.ibm.rcp.security.auth/loginConfigName=NOTES
6. Run/Debug
•Select Run... >Run or Debug... > Debug
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement