Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Calling a dll changed in 3.0 final
Calling a dll changed in 3.0 final [message #259545] Thu, 08 July 2004 09:56
Eclipse UserFriend
Originally posted by: cenedese.nospam.indel.ch

Hi

I try to load a dll and call a function with JNI. I managed to get it to
work
with eclipse 3.0M9. As the final release came out I couldn't just work with
the already made plugins so I created a new workspace and new plugins. Then
I added my old code parts to call the dll. But this doesn't work anymore.

The code goes like:

try {
System.loadLibrary("inco_32");
dll.IncoInitialize();
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. " + e);
System.exit(1);
}

This worked in M9 but fails now with the unsatisfied link exception.
How can I make this work again? The JVM is the same (1.4.2) as is the
dll (built with MSVC6).

in the C-file is:
Java_Indel_Inco32_inco32JNI_IncoInitialize(JNIEnv *jenv, jclass jcls)

in the lib file are (don't know which one is used):
_Java_Indel_Inco32_inco32JNI_IncoInitialize@8
__imp__Java_Indel_Inco32_inco32JNI_IncoInitialize@8

But I don't know which name the JVM wants to call.

Thanks

bye Fabi
Previous Topic:Plug in project class calling a java project class.. Classloader issue
Next Topic:RCP and Java Web Start
Goto Forum:
  


Current Time: Sat Jul 27 16:49:50 GMT 2024

Powered by FUDForum. Page generated in 0.03223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top