I want to call a 'C'api called BUICInit() in vendors dll from java using JNI.but the generated function name using
javah is java_classname_API().so I kept my own dll and from my dll i called vendors dll..

I used loadlibrary()/getprocaddress()..it is working but is there any possiblities with out using getprocaddress

this is my sample program which i used to call vendor dll from my dll..

#include <jni.h>
#include <stdio.h>
#include "HelloWorld.h"

typedef int (*MYPROC)();
 Java_HelloWorld_print(JNIEnv *env, jobject obj)
      HINSTANCE hinstLib; 
    MYPROC ProcAdd; 
printf("in the function");
 hinstLib = LoadLibrary(TEXT("buicap32.dll")); 
printf("in the function");
  if (hinstLib != NULL) 
        ProcAdd = (MYPROC) GetProcAddress(hinstLib, "BUICInit"); 

        printf("add2(3): %d",ProcAdd());

    if (NULL != ProcAdd) 

        // Free the DLL module.



you should go through guidance given by vendor for the dll api...

if you have any error or exception while calling method from dll using jni then you should
post your bugs in the vendor's forum..

They gave only the library dll files.. They dont have code samples for java interface..
is there any possibility to call the exact apiname()(eg:BUICInit() in vendors dll) without using GetProcAddress/LoadLibrary() in JNI calling method.