/****  HelloWorld.java  ********************************************
**
**  This is an example of JNI on the Macintosh it implements the
**  classic "Hello world" example.
**
**  It should be noted that on the Macintosh this NOT a trivial
**  example in that it requires the SIOUX console environment to be
**  linked into the shared library.  Also I have found out through
**  much trial and error that mixing the SIOUX and MRJ consoles in
**  the same application leads to very unstable applications.
**
**  The file "mrj_jni.h" supplied with the MRJ SDK contains the prototypes,
**
**    jint JNICALL JNI_SetStdOutProc(JavaVM* javaVM, jniConsoleProcPtr);
**    jint JNICALL JNI_SetStdErrProc(JavaVM* javaVM, jniConsoleProcPtr);
**    jint JNICALL JNI_SetStdInProc(JavaVM* javaVM, jniConsoleReadProcPtr);
**
**  which imply that all console output could be sent to a common console window.
**  However I have not been able to use these API's to achieve that result.
**
**  Will Gilbert, Informagen, Inc., 1999
**  Gilbert@Informagen.com
*/

class HelloWorld {

	public static void main(String[] args) {
	
		try {
		
			System.loadLibrary("hello");
			
		} catch ( UnsatisfiedLinkError e) {
			System.out.println("Error: " + e.getMessage());
			return;
		}

		new HelloWorld().displayHelloWorld();

	}
	
	public native void displayHelloWorld();
	
}