Solved

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

Posted on 2004-04-11
3
361 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
No row return after calling the fillschema method 4 39
C# application error "Parameter Is Not Valid". 3 79
ADO.NET ENTITY DATA MODEL 3 30
how to read json value 2 30
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now