You can declare the main() as native as well. The JVM doesn't care about whether it has a body or not. All it cares is whether a public static method named main, returning void and that takes a
string array as a parameter, exists for the class or not. If it exists, it will pick it up and invoke it.
If you make the method native, the jvm will try to look for the "body" in shared lib or dll. If it finds one, well and good and if it doesn't find one, it will throw an UnsatisfiedLink error.
HTH,
Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new
Pattern)
www.enthuware.com/jqplus