Only when there is a native library in use (in your example, SMTP; it's probably implemented in pure Java). The usual way to add a native library is by using the correct flag with the java command line. For example,
java -Djava.library.path=%STARTPATH%\lib -jar somefile.jar