Use JNI. This is the way in Java to communicate to native code andsince an external dll is native code you have to go this way.But since Java application should be portable you should forgetabout such kind of crap.