File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about native method call

 
rick tutt
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic