使用JNI可以做到
public class Test {
  public native int dllMethod(int input);
  static {
    System.loadLibrary("dllNameWithoutExtend");
  }
}
编译这个类以后用,javah运行它,这样就会生成一个.h文件,里面会有一个方法的头用VC另外写一个dll,这个dll的方法就是这个.h声明的方法。
在VC写的这个方法里面去调用你的业务dll就行了以后你调用Test.dllMethod,JVM会自动调用dllNameWithoutExtend.dll里面的这个方法