amigos bom dia...
eu tenho uma dll
e o pior nao tenho documentacao dela...
pois bem...
preciso carregar ela de forma que ela funcione igual a uma classe
ou seja se eu fizer
Minhadll minhadll = new MinhaDll();
quando eu digitar minhadll. e digitar o ponto aparecer a relacao de metodos que ela tem...
eu consigo fazer isso?
tentei fazer alguma coisa do tipo:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package testedll;
/**
*
* @author Jonas
*/
public class TesteDll {
static {
System.loadLibrary("c:\\client\\ppchip.dll");
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
TesteDll t = new TesteDll();
System.out.println("passou");
// TODO code application logic here
}
}
porem quando eu executo ja me da um erro:
java.lang.UnsatisfiedLinkError: Directory separator should not appear in library name: c:\client\ppchip.dll
at java.lang.Runtime.loadLibrary0(Runtime.java:820)
at java.lang.System.loadLibrary(System.java:1028)
at testedll.TesteDll.
Could not find the main class: testedll.TesteDll. Program will exit.
Exception in thread "main" Java Result: 1
CONSTRUÍDO COM SUCESSO (tempo total: 0 segundos)
na realidade estou procurando um geito de tentar descobrir quais os metodos desta dll e como sao suas asinaturas...
se alguem conhecer alguma coisa agradeco desde ja...
