Question & Answer
Question
How do I resolve problems with Micrologic written in Java on Lotus Notes?
Answer
To resolve problems with Micrologic written in Java:
- When you save an element that contains Micrologic written in Java, you should see the following messages on the Lotus Notes message line:
- If you do not see the "Compiling Java" message or the Java Byte code is not added to the end of the cdMicrologic event, select File->Save from the Notes action bar instead. The "Compiling script..." and "Compiling Java..." messages should be displayed in the Lotus Notes message line.
- If you save the element with the File->Save, but still do not see the "Compiling Java" message in the Lotus Notes message line:
- Verify that the PATH environment variable on your Lotus Notes client machine contains the path to your Lotus Notes client directory and to the javac.exe and java.exe program which is installed as part of the Java Development Kit (JDK).
- Stop and restart your Lotus Notes client, your Lotus Designer client and the docJvms server.
- From your Lotus Designer client, open the element containing the Micrologic written in Java.
- Change the form, for example, by adding or deleting a space.
- Select File->Save from the Lotus Notes action bar. The "Compiling script..." and "Compiling Java..." messages should be displayed in the Lotus Notes message line and the Java Byte code should be added to the end of the code in the element's cdMicrologic event.
- Compose a document from a Lotus Notes client and verify that the Java code in the cdMicrologic event has been run:
- Check the content of the temporary data file: cdtmp (no file extension) in the cdwork subdirectory of the Notes data directory
- Verify that the composed data fields are correct and look for cdError messages in log.nsf (in the Notes data directory).
- If you see the "Compiling script" and "Compiling Java" messages on the Lotus Notes message line, but receive a Document Connect Java compile error, verify that the CLASSPATH environment variable on your Lotus Notes client machine contains the path to the Document Connect doc.jar file.
- Stop and restart the docJvms server.
- Stop and restart the Lotus Notes client.
- Stop and restart the Lotus Designer client.
- Open the element containing the Micrologic written in Java.
- Change the form, for example, by adding or deleting a space.
- Select File->Save from the Lotus Notes action bar.
- The "Compiling script..." and "Compiling Java..." messages should be displayed in the Lotus Notes message line and the Java Byte code should be added to the end of the code in the element's cdMicrologic event.
- Compose a document from a Lotus Notes client and verify that the Java code in the cdMicrologic event has been run.
- Check the content of the temporary data file: cdtmp (no file extension) in the cdwork subdirectory of the Notes data directory
- Verify that the composed data fields are correct and look for cdError messages in log.nsf (in the Notes data directory).
Compiling script...
Compiling Java...
and the Java Byte code should be added to the end of the code in the element's cdMicrologic event.
[{"Product":{"code":"SSEPTV","label":"Document Connect"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2.0","Edition":"Document Connect for Lotus Notes for Multiplatforms","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSEPTV","label":"Document Connect"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}}]
Was this topic helpful?
Document Information
More support for:
Document Connect
Software version:
2.0
Operating system(s):
Windows
Document number:
662095
Modified date:
15 June 2018
UID
swg21079521