Space in "Program Files" causing JNI_CreateJavaVM to fail

JNI experts:
I'm launching a VM from a .exe (Win2000) written in C using MSVC and using JNI_CreateJavaVM. I'd like to specify the location of my installed jar file using the
-Djava.class.path=path as an optionString in an options element of JavaVMInitArgs.
All works wonderfully. Congratulations to all those who made JNI happen :)
So... there's one problem. When my jar file is installed in c:\Program Files\xyz\myfile.jar the JVM fails to find it. When installed in c:\xyz\myfile.jar the JVM finds it and all is well.
It looks like this: "-Djava.class.path=c:\Program Files\..."
So I'm rather convinced the space between Program and Files is causing the problem. I've tried many hacks and searched the web and newsgroups to a large degree... with no luck.
This is jdk1.3 and I've tried both JDK and JRE dlls:
c:\Program Files\JavaSoft\JRE\1.3.0_0\bin\hotspot\jvm.dll
and
c:\jdk1.3\bin\hotspot\jvm.dll
I've also tried classic instead of hotspot.
Any clues would be helpful. Or, can I get access to the JVM code (I know that much of the Java implementation is available in various locations). I'm sure after dissecting that I could find the problem.
Also, installing the .jar file in a directory without spaces in the name is unacceptable :(
Thanks much...
-Clint

Ok, I've found the problem. For reference:
1. Use the ext directories (jre/lib/ext). However, this won't work when using older JVMs. Which I'm attempting to provide backward compatibility.
OR
2. The java.class.path system property must contain entire path of a jar file, not just a directory containing the jar files of interest.
ALSO
3. An odd behavior. When the java.class.path system property contains an invalid path, the JVM seems to add the current working directory (the directory from where the JVM was initated) to the java.class.path property. For instance, I had:
-Djava.class.path=c:\test;c:\testBad;
where c:\testBad is not an actual directory. This will make the JVM look in the CWD to look for class files. Or so that is the behavior that I witnessed. Go figure...
-Clint

Similar Messages

  • Error 1905.module c:\program\files\quicktime\QTOcontrol.dll failed

    I'm trying to install itunes version 7. I keep getting this message.
    error 1905.module c:\program\files\quicktime\QTOcontrol.dll failed to unregister HRESULT -2147220472. Contact your support personnel.
    Anyone know how to fix this?

    I got this very same error - I clicked okay twice, which didn't do anything, and then the x button.
    The program went on and ended up installing! It seems okay at this point.
    Wierd huh?

  • How do I fix this error: Module C:\Program Files\Bonjour\mdnsNSP.dll failed to register. HRESULT -2147024769. Contact your support personnel.

    I am trying to install iTunes, and get this error: "Module C:\Program Files\Bonjour\mdnsNSP.dll failed to register. HRESULT -2147024769. Contact your support personnel."
    Any ideas on how to fix this error, or get the install to comlete?

    *complete...

  • Disk space for program file

    Hi,
    Wondering if any body has experienced with this. The disk space for program file(not data base file) is full and I want to know what are my options to free some space? Please include tcodes......

    Latha,
    You can follow the note and you will be able to schedule few background jobs for this. If you need to delete files at operating system level (Windows/Unix) then you can simply use delete or rm operating system commands.
    You may want to move/compress few files if you think you may need in the future for some analysis purpose. I am attaching one more note for standard reorgnization jobs.
    Note 16083 - Standard jobs, reorganization jobs [https://service.sap.com/sap/support/notes/16083]
    Hope this helps.
    Manoj

  • Honour space in Program Files folder

    Hi,
    I am upgrading my APEX to version 3 on my local machine. I have previously done this successfully on my OS = XP ...
    <br><br>
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 28 11:49:37 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect sys/yourSystemPassword@xe as sysdba
    Connected.
    SQL> @apxldimg.sql C:
    PL/SQL procedure successfully completed.
    old 1: create directory APEX_IMAGES as '&1/apex/images'
    new 1: create directory APEX_IMAGES as 'C:/apex/images'
    Directory created.<br>
    But now I want to put the application under the folder C:\Program Files, the problem that I am having is the space between Progam Files is causing problems. I have tried using %20, with no success.<br>
    Is there any way to get iSQLPlus to recognise the space?
    <br><br>
    Thank You
    Ben

    Hi,
    So the zip file (apex_3.0.1.zip) that I unzip into a folder of my choice can be removed (the folder structure created by the zip process).
    It creates a structure like this can I delete this after installation ...
    C:\Program Files\apex\builder
    \ core
    \ doc
    \ images
    \ owa
    \ utilites
    Second thing, your comment about iSQL Plus.
    I better make sure that I am referring to the correct thing. In my start menu I navigate to Oracle Database 10g Express Edition > Run SQL Command Line.
    Is this iSQL Plus? This is what I was calling iSQL Plus.
    Ben

  • How to escape the space in "Program Files"

    My project is installed in C:\Program Files\JavaProject directory. I have put a resources.xsd file at C:\Program Files\JavaProject\jboss-4.0.2\bin.
    When am trying to use it at runtime it says >>
    org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file:///C:/Program%20Files/JavaProject/jboss-4.0.2/bin/resources.xsd', because 1) could not find the document; 2) the doc
    ument could not be read; 3) the root element of the document is not <xsd:schema>.
    It worked well when JavaProject was directly put in C: directory and run.
    My code calls the xsd file just by name without the file path as resources.xsd and run.bat files are in same directory. I tried putting .\ in front of resources.xsd(at calling position), but it failed.
    Is there a work around for it?
    Thank you

    I did not specify any path to the file. The file and run.bat are both in same directory, so when I run run.bat, its appending the file path automatically to resources.xsd.
    I am not understanding how to manually give the file path.

  • 600-page Fm file causes script to fail

    My script goes through all files in a book to find changebars. It works fine except when it tries to process two very large FrameMaker files, each one being almost 600 pages long. When I try to run one of these large files separately, it fails by not producing any output in the separate changes file into which I am pasting changed sections. There are changebars in the large file but nothing happens.
    But if I cut out about 100 pages from the file, then the script works and produces output in the changes file. I have watched the memory usage with Windows Task Manager when I run the full large file and it does not appear to be running out of memory.
    Any idea what might be causing this?
    Thanks,
    Mark

    Mark,
    Stranger things have happened and it is tough to troubleshoot from here. I'd suggest putting in some kind of debug routine to narrow down exactly where the problem is occurring. For example, in this case I would probably have my script select each paragraph as it walks through the source file, then pop up a confirm() box which aborts the script on No. That way, you can find out exactly where the script gets lost. At first, maybe have it stop every 10 paragraphs or so, since you have such a large file. It's a bit time consuming, but often it's what you have to do in this environment. You might be surprised what you find and it is possible that the file length is a red herring.
    Russ

  • Referencing MMPPF winmd file causing "MdilXapCompile.exe failed with error code 2001"

    In my windows phone app I am including Microsoft Media Player Framework (MMPPF) to include MediaPlayer and WebVTT functionality. I am referencing the DLL's and winmd files that were built from the MMPPF universal project as appose to referencing the installed
    MMPPF extension in Visual Studio. On x86 and ARM(non phone) devices this worked just fine but on ARM phone, no. According to the MDILXapCompileLog the offending file is Microsoft.Media.WebVTT.winmd. Attached is the MDILXapCompileLog. Bellow is the directory
    tree of what is included. That bracketed by * are what is referenced in the app. The rest is what is dragged in with it.
    +---Universal.WinRT.WebVTT
    | | Microsoft.Media.WebVTT.pri
    | | *Microsoft.Media.WebVTT.winmd*
    | |
    | \---Microsoft.Media.WebVTT
    | | Microsoft.Media.WebVTT.xr.xml
    | |
    | \---themes
    | Generic.xbf
    |
    +---Universal.Xaml.Core
    | | *Microsoft.PlayerFramework.dll*
    | | Microsoft.PlayerFramework.pri
    | |
    | \---Microsoft.PlayerFramework
    | | Microsoft.PlayerFramework.xr.xml
    | |
    | \---Themes
    | Classic.xbf
    | Entertainment.xbf
    | Generic.xbf
    | Phone.xbf
    |
    \---Universal.Xaml.WebVTT
    *Microsoft.PlayerFramework.WebVTT.dll*

    Have you tried official sample? https://playerframework.codeplex.com/SourceControl/latest
    How did you set the configuration of solution?
    Best Regards,
    Please remember to mark the replies as answers if they help

  • Error 1905.module c:\program\files\quicktime\QTOcontrol.dll

    I'm trying to install itunes version 7. I keep getting this message.
    error 1905.module c:\program\files\quicktime\QTOcontrol.dll failed to unregister HRESULT -2147220472. Contact your support personnel.
    Anyone know how to fix this?
      Windows XP   dell

    i get the same thing

  • How are the standard ACL settings for the installationfolder C:\Program Files\Mozilla Firefox ?

    reasoning: On my Win7 Prof. machine I have an entry for "authentificated users" who can write to that folder and I guess this is a security risk/no standard behaviour?
    I stumbled upon this because of the newest update for Firefox.
    My machine is able to update Firefox, when a user without administrative privilegs is logged in. The UAC is on the highest adjustment.
    I guess this perhaps occures, because I transfered the user profile from a windows xp machine using the Microsoft User Migration Tool?
    Please provide feedback for the standard user rights, which are granted for a clean Firefox installation so I can adjust my settings.
    Kind Regards

    I am assuming you've not been able to bring up Firefox at all after installing.
    In my start-up command in the properties of the icon
    I have the pathname enclosed in double quotes because of the spaces:
    "C:\Program Files (x86)\Mozilla Firefox 4.0\firefox.exe" -p Firefox-Four
    Is your download first install of Firefox or was it to update to Firefox 5.
    Have you used Firefox before on your machine.
    What happens if you just type firefox.exe into the '''Run...''' box from the Windows Start button (WinKey).

  • How to keep the installer from installing iTunes in Program Files?

    I am running Windows 7 64-bit.  Because the folder "Program Files" is a protected folder in Windows I want to install iTunes under a folder "C:\Apple\iTunes".  If I download iTunes and manually install it I can tell it to put it there and it installs there fine.  If it tries to install iTunes under "C:\Program Files" all sort of problems are created.  Sometimes ownership of the folder is lost and that is a real pain to fix so I can delete the program.  Once after I created this folder and install iTunes under C:\Apple I received notice that the installer had an update to iTunes.  I told it to install it and it replaced the one in the C:\Apple folder like it was supposed to.  Since that one time, months ago, every time the installer goes to install an update it wants to put it in C:\Program Files and the installation fails.  Sometimes I can actually delete the folder that it has created sometimes the ownership is messed up and I have to start up in Safe Mode to delete it.  (A real pain.)
    So can I prevent the installer from putting the updates in the C:\Program Files folder and if so how?  It finds the old version, under C:\Apple, but won't put the new installation there, so it fails every single time.
    Any ideas?

    If you go to the standard download page it will detect the architecture of your PC and offer the correct installer.  Up to iTunes 12.0 the "64 bit" versions of iTunes were actually 32-bit applications with a 64-bit installer - so will install in C:\Program Files (x86).  As of iTunes 12.1 it is a "true" 64-bit application so installs in C:\Program Files.
    You can avoid using the Apple Software Update by:
    in iTunes, unchecking the Check for new software updates automatically box in Edit > Preferences > Advanced
    in Apple Software Update, select the "Never" radio button in Edit > Preferences > Schedule
    If you want to keep these active so that you're notified when there is a new version of iTunes available, just click Quit when the Updater opens and then install manually.  There's no accessible option in the Updater to alter the target folder for automated installations.  There's probably something in the Windows Registry that relates to this, but I'd be wary of changing this without substantial testing - there could be interaction/conflict with Windows settings regarding the correct location of 32- and 64-bit applications.

  • I have files that freeze my programs whenever I try to open ANY file. Is there a way to find the exact files causing the crash?

    I have files that are freezing my programs (adobe; after effect and photoshop, as well as maxon cinema 4d). Whenever I try to import ANY file from within the program it doen't even let me select the file I need before freezing. I have moved all files off my desktop and into my dropbox, and it now allows me to import files/search for files on the desktop but NOT dropbox, once I go to dropbox it freezes again. I am assuming there are files within dropbox now that are crashing my programs. The problem is I have a lot of files in there and would like to remove the corrupt ones so that I can use my programs without freezing. Is there a way to find the exact files causing the crash?
    This has happened a couple of times and each time I have to move all my files off my desktop, so there must be a type of file doing this, I just don't know what files they are.
    Mac Book Pro 15" running OSX 10.9
    Processor  2.3 GHz Intel Core i7
    Memory  16 GB 1600 MHz DDR3
    Graphics  Intel Iris Pro 1024 MB
    ANY help would be greatly appreciated! It is making it really hard to get work done. THANKS!

    This error sounds to me like you have/had BootCamp Windows installed and then removed, posible ?
    If so (and even if not so), try restating your MBA while holding down the alt/option-key until you get to the Boot Selection Screen.
    Choose to boot OSX.
    Once in OSX go to System Preferences then Startup Volume and set your OSX to be the default.
    Hope it helps
    Stefan

  • How do I find out what program / file is using 100 GB of space on my Hard drive?  Once I find the problem  how do I delete the specific files to increase GB of space?

    How do I find out what program / file is using 100 GB of space on my Hard drive?  Once I find the problem  how do I delete the specific files to increase GB of space?

    Use OmniDiskSweeper
    Once you find file, it can be deleted from within OmniDiskSweeper
    Allan

  • System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo),

    Dear All,
    I am getting a below error while doing ehp6 installation on sybase (high availbility )
    can any one help me on this..?
    An error occurred while processing option SAP Business Suite 7i 2011 > Enhancement Package 6 for SAP ERP 6.0 > SAP Application Server ABAP > SAP ASE > High-Availability System > Database Instance( Last error reported by the step: System call failed. Error 2 (The system cannot find the file specified. ) in execution of system call 'CreateProcessAsUser' with parameter ( , NULL,  Program Files/sapinst_instdir/BS2011/ERP606/AS-ABAP/SYB/HA/DB, &StartupInfo, &ProcessInfo), line (646) in file (d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp), stack trace: d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\ejscontroller.cpp: 181: EJSControllerImpl::executeScript() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\ejs\jsextension.hpp: 1059: CallFunctionBase::call() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\osmod\iaxxbprocess.cpp: 423: CIaOsProcess::start_impl() d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 238: CSyChildApplicationImpl::start(false) d:\depot\bas\720_rel\bc_720-2_rel\gen\optu\ntamd64\ins\sapinst\impl\src\syslib\synxcchapp.cpp: 262: CSyChildApplicationImpl::doStart() .). You can no
    Regards,
    Letz..

    Hello Mauricio.
    Thanks
    Two Thinks:
    1.- This error appears precisely in the process of creating SAP users including you mention sidadm:
          A.- Execute sapinst
          B.- Installation option is chosen
                SAP NetWeaver CE Production Edition
                        Installation Options
                            High-Availability System
                                  Central Service  Instance (SCS)
           c.- System ID, Next and appear message error
    2.- However, the user manually create sidadm, I gave the permissions you indicate, and the error message is the same
    Thanks

  • I am trying to install iiji reactor but it install but at then end it fails and it say following Feature: ijji Auto Installer Component: iAIFile1 File: C:\Program Files (x86)\Mozilla Firefox\Plugins\ . Please help how i can remove this file at plugins.

    When i try to install ijii reactor it install almost ill end but then fail error is following:
    Feature: ijji Auto Installer
    Component: iAIFile1
    File: C:\Program Files (x86)\Mozilla Firefox\Plugins\
    How i i remove this file because it says thath already exist?

    You need to download this file: http://www.ijji.com/hanstartguide4ie.nhn
    Run it and it'll remove the browser plugin from Firefox. Then re-run Reactor installer.

Maybe you are looking for