API
@-Formulas
JavaScript
LotusScript
Reg Exp
Web Design
Notes Client
XPages
 
Determine Java JVM Version for Notes
For those of you that write Java in Notes, you have probably realized that it doesn't matter what version of the Java Virtual Machine (JVM) you have installed on your system (workstation or server) because Notes uses a set JVM version. But which one? This little piece of Java code can tell you what JVM is being used.

What you need to do is create a Java agent. Make it a scheduled agent. Set it up to run daily at 1:00 AM (so it will run pretty soon after being saved). When you create a Java agent, Domino Designer puts in a "skeleton" of code for you. You will only need to add one line of code, and it goes in the place where Domino inserted // (Your code goes here) . The line of code is:

System.out.println(System.getProperty("java.version"));

Then save and close the agent. When the agent runs, it will print the current JVM version of your server into the Notes log, where you can see the results. (Of, if you use the "live" version of the Server Console, you can see it as the agent runs). For example, our production server is version 6.0.2 CF1, and the JVM version is 1.3.1