aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "question about native method call" Watch "question about native method call" New topic
Author

question about native method call

rick tutt
Greenhorn

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.
Thanks,
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.
kawaii
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about native method call