Native Methods

The moment you start writing native methods you leave the Java security security manager and memory protection. Don't do it.