Erro no JNI

2 respostas
rodolfogs8
IWAV0055I Java Bean OPCTest started with the main method

opa: localhost Elipse.OPCSvr.1 teste

IWAV0052E Invocation Target Exception creating OPCTest

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.ve.internal.java.vce.launcher.remotevm.JavaBeansLauncher.main(JavaBeansLauncher.java:79)

Caused by: java.lang.UnsatisfiedLinkError: newInstance

at JCustomOPC.newInstance(Native Method)

at JCustomOPC.(JCustomOPC.java:46)

at OPCTest.main(OPCTest.java:28)

 5 more

Manos eu ja to descabelado aqui kkkkkkk e num vaiiiiiiiiiiiiii kkkkkkk

Alguem pode me dar uma ajudinha?

2 Respostas

Aldrin_Leal

Confira se a DLL está no diretório especificado pela System Property “java.library.path” (dica: LD_LIBRARY_PATH e/ou PATH/LIBPATH no Linux/Win32, respectivamente)

Também: Confira as dependências da DLL/SO, e veja se ela não precisa de alguma outra (ldd no linux, depends no Windows)

nielsen.tekla

cara me ajude eu tambem estou com esse memos problema

Exception in thread main java.lang.UnsatisfiedLinkError: no ./lib/JCustomOpc in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1030)

at javafish.clients.opc.JCustomOpc.(JCustomOpc.java:71)

at teste.main(teste.java:27)
Criado 18 de julho de 2007
Ultima resposta 30 de ago. de 2007
Respostas 2
Participantes 3