Re: LoadLibrary("jvm.dll") == NULL on Vista Ultima
On 7 Mrz., 17:40, "Tom Serface" <tom.nos...@camaswood.com> wrote:
One thing to note: Vista does not come with Java installed. In fact, it
does not even tell you how to install it if needed. I just downloaded from
here:
http://java.sun.com/javase/6/
Tom
"AliR (VC++ MVP)" <A...@online.nospam> wrote in messagenews:2MBHh.1106$yW.1031@newssvr11.news.prodigy.net...
Is Java Virtual Machine installed on that vista machine?
AliR.
<daw...@googlemail.com> wrote in message
news:1173284487.728350.161610@64g2000cwx.googlegroups.com...
Hi,
The Following is working on Win9.x up to XP, but not under Vista.
HINSTANCE lib = LoadLibrary(szFullAbsolutePathToJavaJVM_DLL);
if(lib == NULL || lib == 0){
trace(_T("Couldn't find the jvm.dll"));
return FALSE;
}
lib is always 0.
GetLastError(); returns too always 0
If found that:
http://blogs.msdn.com/junfeng/archive/2006/04/17/577260.aspx
Some advice ?
I use this stuff to call Java from c++, it is all working very stable
to now !
best Regards,
David
I found it out. When i call LoadLibrary, the DLL Init Method of
jvm.dll is called and it is searching the Enviorenment Variables for
the %JAVA_HOME% Path. This path was not set on the Testing Vista, when
i set, all works fine !