J. Lewis Muir > Software > Prgm

Prgm (Program) is a pure Java library providing a framework for implementing a computer program in Java.

The framework tries to make it easy to write a program in Java that behaves correctly. It works best when the sole purpose of the VM instance is to run the program. The framework includes the following:

Here's an example Hello World program using the framework:

public class HelloWorld {
  public static void main(String[] args) {
    new AbstractProgram() {
      @Override
      public int run() throws Exception {
        System.out.println("hello, world");
        return 0;
      }
    }.runAndExitVm();
  }
}

Requirements

License

Release Notes

Download