Classic Notes: How to write a "reveal java home" java agent in Domino
Just to get you going and reveal the whereabouts of the Domino JVM on your computer. Can for example be used when you try to fix any PKIX path building failed - related problems
Read much more about that error in the post Classic Notes: How to import self signed certificates into your Domino Java environment.
- Start a new Java-agent and name it something
Click "OK". Domino Designer will create some skeleton code for you, and you see that next;
- Ensure that the "Basics" section of the agent has a Runtime Target set to "None", as shown below;
- Open the JavaAgent.java by double clicking on it. You will see the skeleton code that Domino Designer has created for you. Now paste the following line
- From the Tool-menu in either the Notes client or in the Domino Designer, select "Show Java Debug Console"
Next you should see a dialog box similar to the following;
This dialog box will contain the output from all java agents hereafter.
Note - For some reason this dialog box won't show up on my computer from time to time. In order to show it, I restart the Notes client, and open the Java Console as one of the first things after restart. Just leave it open when you open the database with the Java-agent inside.
- Run the java agent, and see the Notes reveal the whereabouts of the Domino Designer JVM :-)
In my case it is "C:\Program Files (x86)\IBM\Notes\jvm".
... into the code as shown below;
Press CTRL + S to save, and exit the window. Exit the agent and confirm that you want to save everything.
Your agent is now ready. In order to see the result of the System.out.println-call in the code, you need to bring up the so-called Java Console dialog box in IBM Notes.