• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNI- javai.lib

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic