Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI- javai.lib

 
H. J. Yoshi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand -- why are you trying to build an exe, now? Is the DLL a native-methods DLL, or something else?
 
H. J. Yoshi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I missed out, I am trying to build the exe now, because I want to add one more function to it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic