Search code examples
javaspringlotus-noteslotusscript

Lotusscript to Java Conversion


Is there any easy way to convert code written in Lotusscript to Java?

I have an application written in Lotusscript for Lotus Notes that my clients wants converted to a web application. Rather than move to XPages (or make the Notes db web-enabled), my clients prefers that I create a Java web application instead (Spring or another web framework, for example).

Any ideas or thoughts on this topic much appreciated, thanks :)


Solution

  • It would be a monumental task, since:

    1. The actual Java language and LotusScript language (ignoring built-in functions and classes) are radically different. One does not map cleanly to the other
    2. Depending on what you want to do, you may not have all the Domino Classes you need in Java. The Notes UI classes are only implemented in LotusScript, not Java.
    3. One saving grace is that all the back-end classes are mirrored between LotusScript and Java.
    4. Another issue is that object management is handled much more cleanly in LotusScript than Java. In Java, you have to be careful to recycle your objects manually, and in the correct order, otherwise you may get strangled by the Java garbage collector.

    That's all I can think of offhand. Hope it helps!