loading the library dynamically from a C program DOES NOT WORK
loading the generated library generates:

java/lang/ExceptionInInitializerError
  at java/util/ArrayList.add (line 86)
  at java/util/ArrayList.add (line 94)
  at Hello$FooCLass.addMessage (line 29)
  at Hello.execute (line 10)
  at Hello.main (line 5)
caused by: java/lang/ExceptionInInitializerError
  at java/util/Random.<init> (line 28)
  at java/lang/Math.<clinit> (line 18)
  at java/util/ArrayList.add (line 86)
  at java/util/ArrayList.add (line 94)
  at Hello$FooCLass.addMessage (line 29)
  at Hello.execute (line 10)
  at Hello.main (line 5)
caused by: java/lang/UnsatisfiedLinkError: java/lang/System.currentTimeMillis()J
  at java/lang/System.currentTimeMillis (native)
  at java/lang/System.<clinit> (line 25)
  at java/util/Random.<init> (line 28)
  at java/lang/Math.<clinit> (line 18)
  at java/util/ArrayList.add (line 86)
  at java/util/ArrayList.add (line 94)
  at Hello$FooCLass.addMessage (line 29)
  at Hello.execute (line 10)
  at Hello.main (line 5)
Loading VM as shared Library WORKS!!!!!!