News for hackers. Stuff that matters.
Re:Java Trap, 2010 Edition by jakevoytko on Tuesday October 12, 2010 @09:51AM (#1783338)
JNI minimizes the Java trap, since your entire program doesn't need to live in the JVM. Other functionality can be implemented in native code, and it will work with Java just fine. Oracle does not control native code, so they don't control what platform you target in the future. JNI is not a panacea - your code still runs on Oracle's JVM. But it provides an escape route, since pieces of your application can be ported away from the JVM without requiring an entire rewrite.

If you've reached this escape point, yes, you're wasting time by porting your application away from Java. But you knew Java is a closed platform owned by one company, and you took that risk.

Re:Java Trap, 2010 Edition by tomjen3 on Tuesday October 12, 2010 @09:55AM (#1783355)
Even more importantly, you can start the JVM from C code -- indeed 'java' is nothing more than a simple wrapper around the necesarry DLL calls.