Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: JNI_GetCrea...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 731 of 803
Post > Topic >>

Re: JNI_GetCreatedJavaVMs() fails

by "Chris Uppal" <chris.uppal@[EMAIL PROTECTED] > Nov 22, 2006 at 02:46 PM

aa@[EMAIL PROTECTED]
 wrote:

> I try to start a Java virtual machine from a C++
> application (Windows XP). I have 'jdk1.5.0_08'
> installed and I am sure, that my application loads
> the appropriate jvm.dll.

Why are you so sure of that ?  Are you using the Win32 API functions
LoadLibrary() and GetProcAddress() ?  Or are you relying on the Windows
%Path%
to do "the right thing" ?  Or have you hacked it somehow ?


> Here is my simple code, I
> receive always -1:
> [... snipped... ]

I can't see anything obviously wrong with that code.  I suspect that the
problem is in something you haven't told us yet.

    -- chris




 2 Posts in Topic:
JNI_GetCreatedJavaVMs() fails
aa@[EMAIL PROTECTED]   2006-11-22 06:08:26 
Re: JNI_GetCreatedJavaVMs() fails
"Chris Uppal" &  2006-11-22 14:46:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:32:28 CDT 2008.