i am trying to link a file, c:\java\1421\bin\jvm.lib to my program, called batchuser.c. Here is the makefile:
batchuser.exe: batchuser.obj $(BATCH)
ilink32 /Tpe/ap/c/x/Gn c0x32 batchuser surscf,batchuser,, \
noeh32 $(BATCH) import32 cw32
bcc32 -IC:\Borland\Bcc55\Include -c -RT- -x- batchuser.c
the surscf.obj file is in the working directory. it never changes, so i did not include compilation instructions in the makefile (just background). I am trying to run JNI in my C program. in order to do this, i need to properly link the jvm.lib program to my file. this compiles, but when i go to run the JVM, i get an error. i have tried all kinds of examples that work, so that leads me to believe that there is a problem with the linking of this file. One possible source of error is that i have to use the COFF2OMF utility supplied by borland to make jvm.dll compatible with my borland compiler. i then used the implib program to generate jvm.lib. It didn't work. I am compiling with Borland 5.5 compiler from the command line. I am in Windows 2000. Any ideas of how to get these files to link properly? if it compiles without error, does that mean they are linked correctly(that sounds like a stupid question now that i write it, but i will ask nonetheless). PLEASE HELP! THIS IS URGENT! Thanks. I will give the points to anyone who can help me enough to get this program up and running.