开发者

Eclipse oddity: UnsatisfiedLinkError in JNI code

We have a C++ DLL that we call from JNI.

Under Java 1.6.0_26, it runs and debugs perfectly under Eclipse. However if we switch the JRE to 1.6.0_24 it will run fine, but if we try to debug we get an UnsatisfiedLinkError.开发者_Go百科

Any ideas, we're all stumped?


Are you debugging your SWT application from the command line or still within Eclipse? You need to make sure the SWT jar file is in the -classpath / -cp list.

It's very likely that running within Eclipse, the project settings have added it for you already, so you could take a peek at the command line options Eclipse is using to run the project and copy the classpath entries you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜