Loading wrong jvm.dll

Not sure if this is the right forum for this, but I'll give it a shot.
When I run an executable I created, it uses the jvm.dll from C:\Windows\System32. But I want it to use the jvm.dll in C:\Program Files\Java\jdk1.6.0_17\jre\bin\server.
C:\Program Files\Java\jdk1.6.0_17\jre\bin\server is in my PATH environment variable and it is the very first path.
I also have JAVA_HOME set to C:\Program Files\Java\Jdk1.6.0_17.
Does anyone know how to accomplish this?
Thanks.

JacobsB wrote:
Thanks for your reply. I've looked at the sight. I can't believe there isn't an easier way to do this.
The jdk comes with it's own jvm.dll. Why is it so hard to use it over the one in system32?Huh?
The VM uses the correct dll because the VM knows where it lives and consequently knows where the dll is.
That of course would be an easier solution for you if you are creating an executable - install it with a VM.
>
My problem is the jvm.dll in system32 is looking for the dll's in C:\bin - which doesn't exist. The dll's exist in my C:\Program Files\Java\jdk1.6.0_17\jre\bin.
Far as I know the only way that can happen is if you (or someone) manually moved dlls around. Or something messed up a standard VM install.
Ok, I see now that the jvm.dll was copied from my jdk into system32. I don't know if it was copied over by a user of this machine, or if it was put in there during the Java installation. Either way, I don't think it's correct to have a jvm.dll in the system32 folder and that it is there erroneously. It isn't.

Similar Messages

  • AIX : Failed to load the JVM Dll

    Hi All,
    I have an AIX 5.3 (64bit) with Java 1.5.0 (32bit) the JMS should load up using the JAVA named subsystem who's configuration is:
    DLL = /usr/java5/jre/bin/j9vm/libjvm.so
    CLASSPATH = /jar/:/jar/jms.jar:/jar/jta.jar:/jar/oc4jclient.jar:/jar/optic.jar:/jar/jmxri.jar:/jar/dms.jar:/jar/j2ee_1.3.0.1.jar:/jar/Siebel.jar:/jar/SiebelJI_enu.jar:.
    VMOPTIONS = -Xrs -Djava.compiler=NONE
    and is giving me the error:
    JVM will be initialized with following parameters:
    JVM dll path = '/usr/java5/jre/bin/j9vm/libjvm.so'
    VM options:
    -Djava.class.path=/jar/:/jar/jms.jar:/jar/jta.jar:/jar/oc4jclient.jar:/jar/optic.jar:/jar/jmxri.jar:/jar/dms.jar:/jar/j2ee_1.3.0.1.jar:/jar/Siebel.jar:/jar/SiebelJI_enu.jar:.
    -Xmx100m
    -Xrs
    -Djava.compiler=NONE
    SBL-EAI-05006: Failed to load the JVM Dll. Check that the specified dll name is correct.
    Object manager error: ([0] Failed to load the JVM Dll. Check that the specified dll name is correct.(SBL-EAI-05006) (0x23138e))
    SBL-OMS-00107: Object manager error: ([0] Failed to load the JVM Dll. Check that the specified dll name is correct.(SBL-EAI-05006) (0x23138e))
    as per environment libraries: LIBPATH=/siebel/siebsrvr/lib:/siebel/siebsrvr/mw/lib:/siebel/siebsrvr/SYBSsa90/lib:/usr/lib:/siebel/siebsrvr/lib:/oracle_client/app/oracle/OraHome_1/lib32:/oracle_client/app/oracle/OraHome_1/lib:/usr/java5/jre:/siebel/siebsrvr/mgmtagent/lib:/usr/java5/lib:/usr/java5/jre/bin/j9vm/
    LD_LIBRARY_PATH=/siebel/siebsrvr/mgmtagent/lib:/siebel/siebsrvr/lib:/usr/java5/jre:/usr/java5/lib:/usr/java5/jre/bin/j9vm/
    Any ideas?
    Thank you all in advance.,
    Oromero

    Do you set up ADM? If yes:
    There is a "Siebel Deployment Planning Guide" which also mentions to copy siebelmgr.jar, admstatussvc.jar, Siebel.jar, SiebelJI_xxx.jar into /jar and then to set the classpath parameter accordingly. See chapter "Configuring the Siebel Server for ADM". I can't see these files in your classpath.

  • How to Dynamically Load jvm.dll without setting PATH

    Please help, invoking CreateJavaVM via a function pointer is returning -3, but I'm not sure why.
    When my PATH is setup up to include the jvm.dll and I invoke JNI_CreateJavaVM() directly, it works fine. But I want it to work regardless of my PATH setting, so I am trying to use LoadLibrary and dynamically load the jvm.dll and then a function pointer to invoke CreateJavaVM().
    The LoadLibrary returns non-NULL result, the GetProcAccress() returns non-null, but when I invoke the pointer to the CreateJavaVM call, it returns -3. I know -3 is JNI_EVERSION error, but any ideas what is wrong with the code below, such that it would give me this error?
    Currently my code is as follows:
    typedef jint (JNICALL CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
    JavaVM *m_jvm;
    JNIEnv *m_env;
    SetDllDirectory(L"C:\\Program Files\\Java\\jdk1.6.0_20\\jre\\bin\\client");
    HINSTANCE hVM = LoadLibrary(L"jvm.dll");
    if ( hVM == NULL ) {
       // report error
    CreateJavaVM_t *pfnCreateJavaVM = (CreateJavaVM_t*)GetProcAddress(hVM, "JNI_CreateJavaVM");
    #ifdef JNI_VERSION_1_6
    char cpChars[1024] = {0};
    sprintf_s(cpChars, "-Djava.class.path=%s", classPath); // classpath is defined elsewhere
    JavaVMOption options[1];
    options[0].optionString = cpChars;
    JavaVMInitArgs vm_args;
    vm_args.version = JNI_VERSION_1_6;
    vm_args.options = options;
    vm_args.nOptions = 1;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    pin_ptr<JNIEnv*> env = &m_env;
    pin_ptr<JavaVM*> jvm = &m_jvm;
    int result = pfnCreateJavaVM(jvm, (void**)env, &vm_args);
    // This is where the failure occurs. result is -3 for some reason here...why?For some reason, pfnCreateJavaVM is returning -3, but I'm not sure why? Any ideas what is wrong with this code, such that it would give me a -3?
    Thanks in advance,
    Bill

    wkoscho wrote:
    For some reason, pfnCreateJavaVM is returning -3, but I'm not sure why? Any ideas what is wrong with this code, such that it would give me a -3?As an experiment try using a different jvm.dll from a different location. From my box there are several different jvm.dll under my jdk install dir.

  • Can't load jvm.dll in Vista

    I have a bizarre problem with JDK1.6.0_03 and Windows Vista. I am trying to compile and run a C program that calls a Java method, using the invocation API. In the past, this worked like a charm, provided I had c:\Program Files\Java\jdk1.6.0_03\jre\bin\client on the PATH.
    It no longer works. I get an error message that jvm.dll was not found and that Windows will notify me if it finds a solution to my problem. (I am not holding my breath.)
    I then try to load the library manually:
       HINSTANCE h = LoadLibrary("c:\\Program Files\\Java\\jdk1.6.0_03\\jre\\bin\\client\\jvm.dll");
       if (h == NULL)
           printf("Can't load library\n");
           exit(1);
         }I get the exact same error message.
    Did something break in Vista, or do I need to look elsewhere for a stupid configuration error?
    Thanks,
    Cay Horstmann

    Just in case some other poor soul gets to this, here is the way to implement the invocation under Windows Vista:
    #include <jni.h>
    #include <stdlib.h>
    #include <windows.h>
    typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **, JNIEnv **, JavaVMInitArgs *);
    int main()
       JavaVMOption options[2];
       JavaVMInitArgs vm_args;
       JavaVM *jvm;
       JNIEnv *env;
       long status;
       jclass class_Welcome;
       jclass class_String;
       jobjectArray args;
       jmethodID id_main;
       HINSTANCE h1, h2;
       CreateJavaVM_t createJavaVM;
       h1 = LoadLibrary("c:\\Program Files\\Java\\jdk1.6.0_03\\jre\\bin\\msvcr71.dll");
       if (h1 == NULL)
          printf("Can't load library msvcr71.dll\n");
          exit(1);
       h2 = LoadLibrary("c:\\Program Files\\Java\\jdk1.6.0_03\\jre\\bin\\client\\jvm.dll");
       if (h2 == NULL)
          printf("Can't load library jvm.dll\n");
          exit(1);
       options[0].optionString = "-Djava.class.path=.";
       memset(&vm_args, 0, sizeof(vm_args));
       vm_args.version = JNI_VERSION_1_2;
       vm_args.nOptions = 1;
       vm_args.options = options;
       createJavaVM = (CreateJavaVM_t) GetProcAddress(h2, "JNI_CreateJavaVM");
       status = (*createJavaVM)(&jvm, &env, &vm_args);
       if (status == JNI_ERR)
          printf("Error creating VM\n");
          return 1;
       class_Welcome = (*env)->FindClass(env, "Welcome");
       id_main = (*env)->GetStaticMethodID(env, class_Welcome, "main", "([Ljava/lang/String;)V");
       class_String = (*env)->FindClass(env, "java/lang/String");
       args = (*env)->NewObjectArray(env, 0, class_String, NULL);
       (*env)->CallStaticVoidMethod(env, class_Welcome, id_main, args);
       (*jvm)->DestroyJavaVM(jvm);
       return 0;
    }Compile with
    gcc -g -mno-cygwin -D __int64="long long" -I /cygdrive/c/Program\ Files/Java/jdk1.6.0_03/include/ -I /cygdrive/c/Program\ Files/Java/jdk1.6.0_03/include/win32/ -o InvocationTest InvocationTest.c Of course, in a real application, you'll want to dynamically locate the Java directory; look at launcher/java_md.c inside src.zip for inspiration.

  • The Java Runtime Environment  cannot be loaded from \bin\hotspot\jvm.dll

    HiI'm trying to run/call the Hyperion Analyzer Client 6.5 on my Laptop (Windows XP) but fail. For one or the other strange reason Hyperion cannot load the jvm.dll. This could be caused by the fact, that I have multiple jvm installations due to an Oracle 10g installation. I've added the JAVA_HOME variable, updated the PATH and re-installed the RuntimeEnvironment but nothing helps. The value for the registry RuntimeLib (1.3 and 1.3.0) is "C:\Program Files\JavaSoft\JRE\1.3.0_02\bin\hotspot\jvm.dll " Any help is more than appreciated cheers RobertJAVA_HOME := C:\Program Files\JavaSoft PATH := %JAVA_HOME%\JRE\1.3.0_02\bin\hotspot;D:\oracle\product\10.1.0\Db_2\bin;D:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin\client;D:\oracle\product\10.1.0\Db_2\jre\1.4.2\bin;D:\HYPERION\ESSBASE\BIN;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Roxio Shared\DLLShared;d:\hyperion\eis\bin

    Try installing your JRE under the root directory (C:). When the JRE is installed under "Program Files", the space between "Program" and "Files" can cause problems. Don't forget to repoint your JAVA_HOME system variable.-Graff

  • Failed to load JVM.dll

    Hi
    I am trying to upload report templates in 8.1.1.3, but getting below error.
    SBL-EAI-05006: Failed to load the JVM Dll. Check that the specified dll name is correct.
    Object manager error: ([0] Failed to load the JVM Dll. Check that the specified dll name is correct.(SBL-EAI-05006) (0x23138e))
    SBL-OMS-00107: Object manager error: ([0] Failed to load the JVM Dll. Check that the specified dll name is correct.(SBL-EAI-05006) (0x23138e)).
    And I tried to set JVM DLL Name in profile configuration for XMLPSubSys component, and tried with all JVM dll file location paths in our server enviornment.
    also tried to find C:\PROGRA~1\Java\JDK15~1.0_0\jre\bin\server\jvm.dll unfortunately i didn't find this path.
    Can any one share the solution how can I create or set the correct path for above error?
    Thanks
    Sean

    Hi Sean,
    if you cannot find the path C:\PROGRA~1\Java\JDK15~1.0_0\jre\bin\server\jvm.dll manually, then it's clear that Siebel can also not find it.
    Make sure you have a supported JRE or JDK installed on your machine or on the Siebel server, and that the path is correct.
    In case of Siebel Web Client:
    * Java needs to be installed on the Siebel server
    * The DLL property of the named subsystem you mentioned must point directly to the jvm.dll file (e.g. C:\Program Files\Java\jre6\bin\client\jvm.dll)
    In case of Siebel Mobile/Developer Client:
    * Java needs to be installed on the client
    * The DLL property in the subsystem defined in the client's CFG file (e.g. siebel.cfg) must point directly to the jvm.dll file (e.g. C:\Program Files\Java\jre6\bin\client\jvm.dll)
    Benny

  • Using jvm.dll though cobol showing dos box

    Hello!
    I don't know to which system (cobol or java) this problem belongs to, so I have to ask at both sides.
    Our cobol (acucobol) programmer want to invoke a java-method through the jvm.dll. For this intention there is a C$JAVA routine in cobol which create java-objects and invoke desired methods on them using the jvm.dll. The jvm.dll is loaded at application-startup to increase the performance of such operations.
    However, if cobol loads the jvm.dll we get a dos box showing some informations about the java virtual machine. This window is persistent and at this time we haven't invoke any java-methods so far. We just loaded the jvm.dll. How can we suppress this window from showing up? Does this problem belong to cobol or java? I really don't know...
    Regards,
    Martin

    I don't know enough about jvm.dll to answer the question, but I can give you some other information which might help you.
    There are two different executables on windows which you can use to start a java application. java.exe and javaw.exe. A command shell (dos window) will be displayed when you invoke java.exe, but it will not be displayed when you invoke javaw.exe.
    You can take a look and see which dll:s that javaw uses.
    Kaj

  • Error Loading JVM.dll on WinNT

    Hi
    We have recently, installed Oracle Apps 11i. While applying a patch on Apps 11i, we were getting a Java error - Error Loading: ...\classic\jvm.dll. And we are unable to apply the Apps11i patch.
    I checked the entire Server for JVM.dll, but could not find it.
    After checking this forum, I found, that, a similar BUG in Java has been reported, but most of the BUG descriptions are for WIN 95 and WIN2K and NOT for WinNT.
    Could someone help me out.
    Enviroment Info:
    Product :- Oracle Apps 11i
    Platform :- WinNT 4.0
    Regards
    Vinod

    jvm.dll should be in the <java>\bin\classic directory.
    If it's not, then I THINK there's something wrong with your java runtime environment (jre).
    Is this something you installed yourself - the java - or was it soemthing dropped on yoour system by the Oracle product?
    o former: Get a new jre.
    o Latter: Get a new jre and/or complain to Oracle.

  • Error loading jvm.dll

    our company has an application that we use for company business that runs off Java.  Lately, I have several users that can no longer launch the application.   All are receiving the same error "The Java Runtime Environment cannot be loaded from <C:\PROGR~2\Oracle\JINITI~1.18\ bin\hotspot\jvm.dll>   We are running IE 10, Window 7 and latest version of Java. I did however try to use an older version of Java to no avail.  Any assistance will be greatly appreciated.

    jvm.dll should be in the <java>\bin\classic directory.
    If it's not, then I THINK there's something wrong with your java runtime environment (jre).
    Is this something you installed yourself - the java - or was it soemthing dropped on yoour system by the Oracle product?
    o former: Get a new jre.
    o Latter: Get a new jre and/or complain to Oracle.

  • "Cannot load jvm.dll" please help solve

    Hello
    I downloaded and installed the following onto windows 98 SE :
    JavaSE installed @ C:\Program Files\Java\j2re1.4.2
    Java2 SDK installed @ C:\Program Files\j2sdk_nb
    NetBeans installed @ C:\Program Files\j2sdk_nb\netbeans3.5
    When I start NetBeans using the desktop shortcut, I get IDE Alert "Cannot Load jvm.dll"
    Can anyone explain to me what I have done wrong and what I have to do in order to put it right.
    I found some stuff about editing 'paths to jvm.dll' but I have found 5 jvm.dll files... which one do I use?
    C:\Program Files\j2sdk_nb\_jvm\jvm.dll
    C:\Program Files\j2sdk_nb\_jvm\bin\classic\jvm.dll
    C:\Program Files\j2sdk_nb\_jvm\bin\hotspot\jvm.dll
    C:\Program Files\j2sdk_nb\_jvm\bin\server\jvm.dll
    C:\Program Files\Java\j2re1.4.2\bin\client\jvm.dll
    Can anyone help me get started getting started with Java?
    Thank you

    Hi
    I have just been suffering with the same problem and managed to find a solution based on answers in these very forums
    What worked for me was to add an entry into the ide.cfg file which told netbeans which folder my JDK was installed in.
    All you need to do is add the following line into the config file (which is in the bin folder under wherever you installed NetBeans 3.5) and it should start up (obviously you will need to change the folder name to match wherever you have your Java development kit)
    -jdkhome d:\JDK1.3
    Hope this works as well for you as it did for me
    Phil

  • Error loading jvm.dll - urgent!!

    Hi,
    When I try to compile using javac, I get an error as stated below:
    Error loading: y:\sys\nt\j2sdk-1_3_1\jre\bin\hotspot\jvm.dll
    What am I missing?
    Thanks

    check if jvm.dll exists in y:\sys\nt\j2sdk-1_3_1\jre\bin\hotspot. May not be a good solution but try to uninstall and re-install j2sdk. Also check ur CLASSPATH settings
    Vinay

  • [javac] Error loading: C:\bea\jdk1.6.0_24\jre\bin\client\jvm.dll

    Hi,
    I was curious about the following error:
    [javac] Error loading: C:\bea\jdk1.6.0_24\jre\bin\client\jvm.dll
    Could someone let me know why this randomly occurs?
    Thanks

    >
    Thanks. Thats all the information I have on the error... Inquiring if anyone seen this before or know what could cause this.
    >
    If all you are inquiring about is whether anyone has seen that before then the answer is yes.
    If instead you want help finding out what is causing it in your case then you have to provide information about what it is you are doing when it shows up. Does it show up everytime you cold boot your computer? Only when you check you email?
    Give us the specifics.

  • Cannot load jvm.dll

    I have installed j2sdk 1.4.2, on windows ME. it seems to have installed ok, but when i try to run it, i just get a message saying "cannot load jvm.dll" Any suggestions?

    I have installed j2sdk 1.4.2, on windows ME. it seems
    to have installed ok, but when i try to run it, i just
    get a message saying "cannot load jvm.dll" Any
    suggestions?Are you using NetBeans?
    If yes, look here:
    http://forum.java.sun.com/thread.jsp?forum=14&thread=434036

  • Can't load jvm.dll

    the following simple code can't load jvm.dll
    at windows xp sp2 ,
    jre-1_5_0_11
    #include <jni.h>
    #include <stdio.h>
    int main() {
         HINSTANCE hVM;
    if((hVM = LoadLibray("C:\\Program Files\\Java\\jre1.5.0_11\\bin\clien\\jvm.dll"))==NULL){
    printf("faild\n");
    else
    printf("succes\n");
         return 0;
    }

    #include <iostream>
    #include <stdlib.h>
    #include <windows.h>
    using namespace std;
    int main(int argc, char *argv[])
    HINSTANCE hVM;
    char *path="C:\\Program Files\\Java\\jre1.5.0_11\\bin\client\\jvm.dll";
    if((hVM = LoadLibrary(path))==NULL){
    printf("Error : %d\n",GetLastError());
    else{
    printf("succes\n");
    FreeLibrary(hVM);
    return 0;
    }

  • How to load JVM without specifying jvm.dll

    How can I load JVM from native C++ code withoutknowing the path of jvm.dll?

    If on Windows, use the registry to find the place where the JRE has been installed. Take a look at the file java_md.c in the launcher subdirectory of the src.zip file supplied along with the JDK. Specifically, you will probably be most interested in the GetStringFromRegistry and GetPublicJREHome functions there.
    In the registry, look for the key HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment. That has a number of values you will probably want.
    If not on Windows, I really don't know how to find the location of the JRE installation without it being configured in an environment variable, or being hardcoded.
    Hope it helps.
    Cheers.

Maybe you are looking for

  • How do I know if i I have a superdrive on my MACBOOK pro?

    Silly question I know, but Im just wondering how can i tell if i have a superdrive? It's a MacBook pro 2.16ghz intel duo 2 core... -Joey

  • Solaris 10 patch registration under Reduced Networking Core System

    I'm running x86_64 Solaris 10 5/08, Reduced Networking Core System. I have installed these packages from the Solaris 10 DVD: SUNWccfw SUNWcctpx SUNWccinv SUNWppror SUNWj3rt SUNWpprou SUNWcsmauth SUNWccccrr SUNWccccr SUNWccsign SUNWupdatemgru SUNWupda

  • Can the new MacBookPro be upgraded w/third party memory to 16GB?

    I talked with someone that mentioned that the NEW MacBookPro (non-retina) can be upgraded to 16G of RAM using two 8 G memory modules and the system will recognize it, even though it isn't a sanctioned Apple configuration. Is this true? Thanks

  • Navigating between views in different components

    Hi, I want to navigate from view1  in comp A to view2 in compB and vice versa. I am able to  do the first part view1 -> view 2 through interface controller. Now i want to navigate back to the view1 from view2. Please help. Regards, Priya

  • Error Loading 0Analysis_Pattern

    Hi All, When I try to open template 0Analysis_Pattern in WAD I get the following error. Components version A do not exists on the database. When i try to install 0Analysis_Pattern from the BI content I get the following error as soon as i drag the it