Why calling a native method like this result in a runtime error?
Maybe we have to load a library? Then why in the StrictMath class there's code like this?
the class's comment states that all the algorithm gives the same result as certain published algorithms.
/**These * algorithms are available from the well-known network library * <code>netlib</code> as the package "Freely Distributable * Math Library" (<code>fdlibm</code> * The network library may be found on the World Wide Web at: * <blockquote><pre> * <a href="http://metalab.unc.edu/">http://metalab.unc.edu/</a> * </pre></blockquote> * <p> **/
When this Library is loaded if no code there declares something like this? [ February 17, 2003: Message edited by: Igor Zeta ]
Sorry, I didn't read carefully. I thought you were trying to use a native method defined in the StrictMath class. I'm not familiar with the Java linkage process but I'm sure this is what you need to do, specify a library. I believe your method "amethod" should be part of a library which was built using the Java Native Interface. see Java Native Interface