aspose file tools*
The moose likes Java in General and the fly likes JNI- javai.lib Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "JNI- javai.lib" Watch "JNI- javai.lib" New topic
Author

JNI- javai.lib

H. J. Yoshi
Greenhorn

Joined: Jul 21, 2006
Posts: 29
Hi,

I need to update a dll file which is used in a java application.
When I try try to generate the exe file from the source code for the dll (C code) it gives me Linking errors.

The errors suggest the dll needs a library file javai.lib (this is a part of the make file). This file though has been renamed since jdk1.2. (info courtesy Google, sun.com). Knowing the source code is very old, I added the files jvm.dll and jvm.lib to the build path. These are the renamed files.

The problem is that the linking errors still do not go away.
Injre 1.1 I could find only javai.dll not javai.lib. And the errors persist even with the javai.dll file...

I searched a lot but could not find the lib file. Read at one place that "javai.lib is used at compile time while javai.dll is called by the jre at runtime..". Then how come, jre 1.1 has only the .dll file..


Any help is most welcome.. If i'm adding wrong files.. Or any pointers where i can find the javai.lib.

Many Thanks in advance.. and for reading this loong post..

Himadri
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

I don't understand -- why are you trying to build an exe, now? Is the DLL a native-methods DLL, or something else?


[Jess in Action][AskingGoodQuestions]
H. J. Yoshi
Greenhorn

Joined: Jul 21, 2006
Posts: 29
Yes, the dll is a native methods exe.A function in this dll is called to invoke a on a Server via TCP/IP socket.
This function actually passes the name of the Java class containing the main method to execute on server and the argument which should be passed to this method.
It then returns the results to the caller.
H. J. Yoshi
Greenhorn

Joined: Jul 21, 2006
Posts: 29
Oh, I missed out, I am trying to build the exe now, because I want to add one more function to it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI- javai.lib