Solved

EASY, URGENT, 500 Points : using JNI to invoke JVM in VS.net

Posted on 2004-04-11
3
368 Views
Last Modified: 2012-05-04
Hey,
   On building I get the following Runtime Error:
   "unresolved external symbol _imp_JNI_CreateJavaVM....."

   Ive included JSDK/include, JSDK/iinclude/Win32 in the c++/includes option
   And
   JSDK/lin, JSDK/jre/lib, JSDK/jre/lib/i386 in the linker->Additional Library Directories often

  I even tried adding "-link C:/JSDK/lib/jvm.lib" to linker->command line

AND!!

If I add: -link "C:/JSDK/lib/jvm.lib" to the c/c++->coomandline option
I get a Warning "unrecognised option '/link'; ignored
Even though the DLL builds without errors.
The final dll created doesn't start so I assume something went wrong!


Please Help me - Ive looked everythwre and followed the guidelines, but am stuck!
0
Comment
Question by:AruneshGupta
3 Comments
 

Author Comment

by:AruneshGupta
ID: 10800307
Done - Got the answer from the C+ area =)
no "-link" needed
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11249558
PAQed, with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question