wood burning stoves
The moose likes Java in General and the fly likes question about native method call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "question about native method call" Watch "question about native method call" New topic

question about native method call

rick tutt

Joined: Feb 12, 2002
Posts: 1
I got a problem as follow, can anyone give me some idea
In the application, there is a call to '1.dll' by using System.loadLibrary(). In the 1.dll there is another call to '2.dll'. When the program is run, it prompts an error message "java.exe-DLL Initialization Failed -- Initialization of the dynamic link library 2.dll failed. The process is terminating."
I'm running on WIN NT 4.0/JDK 1.3.1. All the other functions of the application are just fine.
Alex Ku
Ranch Hand

Joined: Jan 15, 2002
Posts: 47
I had the same problem before. calling a dll from a dll. It turned out that it was the path wasn't set properly. the first dll could not find the second dll.
I don't know if this is your case, but just a thought.
I agree. Here's the link: http://aspose.com/file-tools
subject: question about native method call
It's not a secret anymore!