I got a good look in the source code for FileInputStream in the J2SE
1.5.0 and noticed a few native methods, including open(), read(), etc.
After looking at the code more, there isn't a System.loadLibrary
anywhere where i would normally see if a class used JNI. How does
FileInputStream know what native library to load then?
Gordon Beaton - 06 Feb 2006 07:59 GMT
> I got a good look in the source code for FileInputStream in the J2SE
> 1.5.0 and noticed a few native methods, including open(), read(), etc.
> After looking at the code more, there isn't a System.loadLibrary
> anywhere where i would normally see if a class used JNI. How does
> FileInputStream know what native library to load then?
It isn't necessary to explicitly load a library for every class that
uses native code, since the JVM executable already holds much of the
native code used by the standard classes.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e