« Classic Notes: How to import self signed certificates into your Domino Java environment | Main| Would it be an idea to warn user about redirect-URLs? »

Classic Notes: How to write a "reveal java home" java agent in Domino

Tags: Lotus Notes Java
0

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 Smile 

Read much more about that error in the post Classic Notes: How to import self signed certificates into your Domino Java environment.

  1. Start a new Java-agent and name it something

    image_thumb[88]

    Click "OK". Domino Designer will create some skeleton code for you, and you see that next;

    image_thumb[91]
  2. Ensure that the "Basics" section of the agent has a Runtime Target set to "None", as shown below;

    image_thumb[94]
  3. 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
  4. System.out.println(System.getProperty("java.home"));

    ... into the code as shown below;

    image_thumb[97]
    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.

  5. From the Tool-menu in either the Notes client or in the Domino Designer, select "Show Java Debug Console"

    image_thumb[100]
    Next you should see a dialog box similar to the following;
    image_thumb[103]

    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.
  6. Run the java agent, and see the Notes reveal the whereabouts of the Domino Designer JVM :-)

    image_thumb[106]

    In my case it is "C:\Program Files (x86)\IBM\Notes\jvm".

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)