Domino Code Fragment

Code Name*
Compiling and running a Java program
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.129.69.151
Description*
The following examples demonstrate the minimal code needed for a Java program that uses the Notes classes. The examples instantiate a Session object and print the String output of its getPlatform method (Platform property). 1. This is a stand-alone program that extends the NotesThread class:
Type*
Java
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
import lotus.notes.*;

public class platform1 extends NotesThread
{
 public static void main(String argv[])
   {
       platform1 t = new platform1();
       t.start();
   }


 public void runNotes()
   {
   try
     {
       Session s = Session.newInstance();
       String p = s.getPlatform();
       System.out.println("Platform = " + p);
     }
   catch (Exception e)
     {
       e.printStackTrace();
     }
   }

}