I have an application where I need to use a Native Library: libfoo.so
libfoo.so
My code is as follows:
Accessor.java:
pub
My guess is that the Accessor class is being loaded multiple times in different classloaders within the same JVM (assuming grails runs in the same JVM as the embedded Tomcat). Test this by adding debug statements to the static block.