Directory problem....(utl_file related)

create directory test_sukanta_dir as 'C:/Oracle/Sukanta';+
when this statement run successfully ..its mean it create a Directory named by Sukanta which is inside C drive , Oracle Directory..is it..if yes when this statement run successfully no such directory created..inside C drive named by Oracle..what is the problem...plzzz help me...
i am create this directory from a user..it have the privilege to create directory..

Create directory doesnot create the directory, its an alias to an already existing directory.
The following is a snippet from oracle docs -
http://download.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_5007.htm
Use the CREATE DIRECTORY statement to create a directory object. A directory object specifies an alias for a directory on the server file system where external binary file LOBs (BFILEs) and external table data are located. You can use directory names when referring to BFILEs in your PL/SQL code and OCI calls, rather than hard coding the operating system path name, for management flexibility.

Similar Messages

  • ITunes Directory Problem

    I recently installed Windows Vista Service Pack 1 on to my laptop. After the install I can't open itunes. Now, I uninstalled service pack 1 and uninstalled Quicktime and iTunes. Now, after downloading the newest version of iTunes...it seems I have a directory problem.
    The error msg reads: An error occurred while attempting to create the directory: C:\ProgramData\Apple Computer\Installer Cache\QuickTime 7.50.61.0
    It was also saying the same thing about iTunes directory. I talked to people from apple and microsoft...nobody has an answer. I need help!
    Thanks in Advance,
    Adam

    I agree that this is a huge problem. If the network directory isn't immediately found, iTunes reverts to its default. There may be other conditions under which this happens as well because it sometimes seems to occur even when the network drive should be visible. It causes huge headaches. My wife wants me to nix the network drive and just put all our music on our laptop--which is not something we should have to do in this year of 2007. They need to fix this. iTunes made my wife cry.

  • Problem using relative sizes on a HTMLtext

    Hi
    I have a problem using relative sizes on a HTMLtext on Flash
    ActionsScript
    2.0
    Something like:
    htmltext= '<font size="+5">TITLE</font>Text
    Praragraph...'
    (+5 in normal HTML means is 5 points bigger than the standard
    text.)
    I create the the textArea i set the size and everything if I
    do it by
    actionscript everything works fine except when i setup the
    htmltext, the
    text disspears so I need to re-set the embeded font with:
    myTextFormat.font = Varfont;
    textBox.embedFonts = true;
    textBox.setTextFormat(myTextFormat);
    But using this lines I lose the previous size. that i
    assigned before when i
    created the textarea. And goes to a standard size... dont
    know why, i am
    using a different TextFormat.....
    And If i want to use the size i was using , all the text
    becomes the same
    size (but is the size that I want)...
    If I create the text area manually using the gui, it works
    well.
    ¬_¬
    >-------------------------------------------------------------------------------------<
    The main problem is... why the the text dissapears when i set
    a new html
    text???
    >-------------------------------------------------------------------------------------<
    Thanks.

    1. Really there are a few functions that i skiped yesterday:
    3. The font is linked and embeded in library.
    public function setHTMLText(texto:String):Void {
    textBox.html = true;
    textBox.htmlText = texto;
    public function setEmbedFont(__font) {
    _font = __font;
    _embed = true;
    setTextStyle(__font);
    public function setTextStyle(__font:String, __bold:Boolean,
    __underline:Boolean, __italic:Boolean) {
    var myTextFormat:TextFormat = new TextFormat();
    myTextFormat.font = _font;
    textBox.setTextFormat(myTextFormat);
    public function setTextSize(__size:Number) {
    var myTextSize:TextFormat = new TextFormat();
    myTextSize.size = _size;
    textBox.setTextFormat(myTextSize);
    Kind of constructor:
    autotext_txt.setTextSize(20);
    //1 if I activate this one the text will dissapear after
    asigning a new
    text. And I will need to apply the embed font again.
    autotext_txt.setEmbedFont("Arial2");
    autotext_txt.setHTMLText(This is a text (big text) | <font
    size="-5"
    color="#dddddd"> Small Text</font>');
    autotext_txt.setEmbedFont("Arial2");
    Why dont u have a try?
    Thanks,
    J
    "kglad" <[email protected]> escribió en
    el mensaje
    news:elo6bk$pu3$[email protected]..
    > 1. where's Varfont defined?
    > 2. htmtext should be htmlText.
    > 3. have you defined a linkage id for a library font?

  • I get a a message "javascript: void (0)" when I turn on online radio. This problem is related also with other browsers. I reinstalled java but nothing changed

    This problem is related also with chrome, opera and explorer. I reinstalled java but nothing changed

    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    Note the javascript: void(0); is often use as a placeholder URL to indicate that an onclick event is tied to the link to do the actual action.<br />
    If JavaScript is blocked for some reason then this javascript: void(0); links comes into view.
    Make sure that you do not block JavaScript.
    *http://kb.mozillazine.org/JavaScript
    Also make sure that your security software isn't blocking JavaScript if it happens in other browsers as well.
    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Applet default directory problem

    Hi,
    I have a directory problem when my applet write a file on client box (permissions OK),
    the directory is always the window desktop!!!!
    Is there a method to change the default directory??
    Thanks for your time,
    JC2001

    Hi,
    Applets loaded into a Java-enabled browser can't write files.
    Sun's appletviewer allows applets to write files that are named on the
    access control list for writing. The access control list for writing is
    empty by default.
    You can allow applets to write to your /tmp directory by setting the
    acl.write property in your ~/.hotjava/properties file:
    acl.write=/tmp
    You can allow applets to write to a particular file by naming it
    explicitly:
    acl.write=/home/me/somedir/somefile
    Use : to separate entries:
    acl.write=/tmp:/home/me/somedir/somefile
    Bear in mind that if you open up your file system for writing by
    applets, there is no way to limit the amount of disk space an applet
    might use.
    I hope this will help you.
    Thanks
    Bakrudeen

  • SharePoint Foundation Active Directory Problem

    Hey,
    I have a problem with the Active Directory connection to SharePoint Foundation.
    My Situation looks like this:
    I'm working on a kind of project controlling plattform. Each of our customers has its own site. Also each customer has an account in our Active Directory. For the administrative part, we have a list which contains some infos of the customer, the url to its
    site and the contact person.
    I wrote an import-script which creates a site and a new item in the list. To put the contact person in the list-item, I use a code-snippet like this:
    try
    user = web.EnsureUser(loginName);
    catch (Exception ex)
    throw new Exception("LoginName " + loginName + " not found");
    Now the problem is, that the try/catch block fails too often which means: SharePoint doesn't know the loginNames of some of our customers.
    Why does SharePoint not know maybe 1/5 of all our customers? All of them have an account in our active directory, none of them ever logged in the SharePoint (at the time they even doesn't know, that they have a SharePoint site for this project).
    I searched the internet for the problem but all I found where questions related to the synchronization of ad-properties to SharePoint Foundation. But I don't want to sync the phone-number or something like that - I want SharePoint only to know all the loginNames
    of our customers, not only 1/5 of them.
    How do I achive this, what am I doing wrong?
    Thank you!

    web.EnsureUser has nothing to do with the UPS at all. This has nothing to do with synchronisation (it does have a role but it's a maintenance one and nothing to do with authentication.
    The simplest answer is that the login names are being entered wrongly. Having said that there are a few areas you can look at to try to identify the problem:
    Does it fail repeatedly for the same username? Can you add that user to the site manually using a people picker control and if so will the script work afterwards? Are there any trends in the user accounts that SharePoint cannot find?

  • Open Directory Problem

    I can't seem to start open directory services. Using the Server Admin the light is clear indicating that open directory services is not running. The General Settings display the following:
    Open Directory is: Standalone Server
    Lookup Server is: Running
    Netinfo Server is: Local only
    LDAP Server is: Stopped
    Pasword Server is: Stopped
    Kerberos is: Stopped
    When I attempt to access most of the logs I get a system error message "A Service has encountered an eroor. Try to refresh the view (mydomain.com/Open Directory). Report the problem to the admininstrator (me) if it persists. (File not found, the service may not have loggging enabled)
    If I refresh I get the same error message again. I can't find an settings that enable or disable logging in the Open Directory tab of Server Admin.
    I am having troubles with my mail server too, I can log into IMAP with my Mail Cllent no problem but attempting to log into SMTP fails.
    G4 Powerbook 15 1.5 GHz   Mac OS X (10.4)  

    Michael:
    From your post, it looks like your machine is configured as a Standalone server, which means that OD isn't supposed to be running. Did you promote to an OD Master? If not, and you plan on giving it a try, search around on the web and these forums first for guides, particularly related to the importance of correct DNS.
    MacBook Pro   Mac OS X (10.4.8)  

  • [SOLVED] Bash initial directory problem

    Over the last couple of days, whenever I've opened any X virtual terminal (it doesn't do it when I ctrtl-alt-fX), it opened in a directory within my home directory, (namely the one I use for various programming projects), instead of the home directory. I thought that maybe if I removed that directory it might solve the problem, so I did, but apparently it didn't fix it, because now it outputs this:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    It outputs a subtly different message (chdir instead of shell-init) when I cd into a different directlry. I looked through my .bashrc, .bash_profile and .Xresources and none of them had anything relating to directories.
    Does anyone know how I could fix this?
    Last edited by alexanderthegre (2012-09-30 22:36:42)

    Did you launch X in that directory?
    sudo ls -dl /proc/$(pgrep Xorg)/cwd
    Or maybe the program you use to launch the terminal (WM, xbindkeys, etc)?

  • Win8 ADK: Dism Problems (.DLL related?)

    I'm having some problems with the Win8 ADK; specifically, DISM, and it appears to be a bug related to how the ADK is installed and it's .DLLs are registered.
    I created a Windows 8 x64 VM from scratch and installed WADK, and once finished, opened a Shell with the Deployment and Imaging Tools environment settings as Administrator. I then ran the copype script to create a fresh copy of WinPE to begin servicing:
    copype x86 C:\test
    This command executes as expected. I then attempt to mount the new image:
    dism /mount-image /imagefile:C:\test\media\sources\boot.wim /index:1 /mountdir:C:\test\mount
    This operation fails with the following output:
    Deployment Image Servicing and Management tool
    Version: 6.2.9200.16384
    Error: 3
    The system cannot find the path specified.
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    Now, what's bizarre is that if I proceed to uninstall WADK, I can then immediately re-run the same operation and it will work correctly -- presumably using the Windows 8's built-in DISM tools. If I reinstall WADK, once again I cannot mount images--uninstall,
    and everything is fixed again.
    I've been trying this on various machines in our organization, and so far I've encountered this problem on one Windows 8 VM, as well as a coworkers Windows 7 x64 workstation. Strangely, other coworkers (also using Windows 7 x64) seem to be having no problems
    related to mounting images with DISM.
    Are there known issues with WADK/DISM? It seems like the WADK might have some issues in installing/registering the necessary DISM files, in that the same error can occur on Windows 8 and also 7. I can only confirm that I've seen this issue on x64, but I
    haven't had the resources to try and test to look for similar problems in x86 environments.
    Can anyone advise on this issue?

    To be clear, I installed the WADK in order to create a new copy of Windows PE (x86) to
    C:\Test. To that order, the following directories exist:
    C:\Test
    C:\Test\fwfiles
    C:\Test\media
    C:\Test\mount
    Further, I can run copype x86 C:\Test successfully after installing the WADK. However, mounting the image is where the problem comes in. Again, here is the command I'm using to mount the image:
    dism /mount-image /imagefile:C:\test\media\sources\boot.wim /index:1 /mountdir:C:\test\mount
    With WADK installed, this operation fails citing "Error 3: The system cannot find the path specified." If I uninstall the WADK, I can then successfully mount the image using the same command. I expect that
    the difference is that with WADK installed, some DLL confusion is taking place. When I uninstall the WADK, I'm now mounting the image using the built-in DISM components, and it works correctly.
    Attached are two seperate DISM logs: The first is of DISM failing to mount the image with WADK installed. The second is of successfully mounting the image after uninstalling WADK and using Windows alone.
    Windows 8 + WADK installed (/mount-image fails):
    2013-04-02 10:21:33, Info DISM PID=1604 TID=2396 Scratch directory set to 'C:\Users\Justin2\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2013-04-02 10:21:33, Info DISM PID=1604 TID=2396 DismCore.dll version: 6.2.9200.16384 - CDISMManager::FinalConstruct
    2013-04-02 10:21:33, Info DISM PID=1604 TID=2396 Successfully loaded the ImageSession at "C:\Windows\System32\Dism" - CDISMManager::LoadLocalImageSession
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Manager: PID=1604 TID=2396 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM.EXE:
    2013-04-02 10:21:33, Info DISM DISM.EXE: <----- Starting Dism.exe session ----->
    2013-04-02 10:21:33, Info DISM DISM.EXE:
    2013-04-02 10:21:33, Info DISM DISM.EXE: Host machine information: OS Version=6.2.9200, Running architecture=amd64, Number of processors=1
    2013-04-02 10:21:33, Info DISM DISM.EXE: Dism.exe version: 6.2.9200.16384
    2013-04-02 10:21:33, Info DISM DISM.EXE: Executing command line: dism /mount-image /imagefile:C:\test\media\sources\boot.wim /index:1 /mountdir:C:\test\mount
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Loading Provider from location C:\Windows\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Connecting to the provider located at C:\Windows\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Loading Provider from location C:\Windows\System32\Dism\VHDProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Connecting to the provider located at C:\Windows\System32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Loading Provider from location C:\Windows\System32\Dism\ImagingProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Connecting to the provider located at C:\Windows\System32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Loading Provider from location C:\Windows\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Connecting to the provider located at C:\Windows\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:21:33, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2013-04-02 10:21:33, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2013-04-02 10:21:33, Info DISM DISM.EXE: Attempting to add the commands from provider: FolderManager
    2013-04-02 10:21:33, Info DISM DISM.EXE: Attempting to add the commands from provider: WimManager
    2013-04-02 10:21:33, Info DISM DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2013-04-02 10:21:33, Info DISM DISM.EXE: Attempting to add the commands from provider: VHDManager
    2013-04-02 10:21:33, Info DISM DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
    2013-04-02 10:21:33, Info DISM DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
    2013-04-02 10:21:33, Info DISM DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2013-04-02 10:21:33, Info DISM DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Getting Provider GenericImagingManager - CDISMProviderStore::GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:21:33, Info DISM DISM Imaging Provider: PID=1604 TID=2396 WIM image specified - CGenericImagingManager::GetImageInfoCollection
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Getting Provider WimManager - CDISMProviderStore::GetProvider
    2013-04-02 10:21:33, Info DISM DISM Provider Store: PID=1604 TID=2396 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    [1604] [0x80070003] OpenFilterPort:(582): The system cannot find the path specified.
    [1604] [0x80070003] FltCommVerifyFilterPresent:(1172): The system cannot find the path specified.
    [1604] [0x80070003] WIMMountImageHandle:(877): The system cannot find the path specified.
    [1604] [0x80070002] StateStoreRemoveMountedImage:(1041): The system cannot find the file specified.
    [1604] [0x80070002] WIMMountImageHandle:(1116): The system cannot find the file specified.
    2013-04-02 10:21:34, Error DISM DISM WIM Provider: PID=1604 TID=2396 Failed to mount the image. - CWimImageInfo::Mount(hr:0x80070003)
    2013-04-02 10:21:34, Error DISM DISM Imaging Provider: PID=1604 TID=2396 base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:795 - CGenericImagingManager::InternalOpMount(hr:0x80070003)
    2013-04-02 10:21:34, Error DISM DISM Imaging Provider: PID=1604 TID=2396 base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:715 - CGenericImagingManager::InternalCmdMount(hr:0x80070003)
    2013-04-02 10:21:34, Error DISM DISM Imaging Provider: PID=1604 TID=2396 base\ntsetup\opktools\dism\providers\imagingprovider\dll\genericimagingmanager.cpp:513 - CGenericImagingManager::ExecuteCmdLine(hr:0x80070003)
    2013-04-02 10:21:34, Info DISM DISM.EXE: Image session has been closed. Reboot required=no.
    2013-04-02 10:21:34, Info DISM DISM.EXE:
    2013-04-02 10:21:34, Info DISM DISM.EXE: <----- Ending Dism.exe session ----->
    2013-04-02 10:21:34, Info DISM DISM.EXE:
    2013-04-02 10:21:34, Info DISM DISM Provider Store: PID=1604 TID=2396 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2013-04-02 10:21:34, Info DISM DISM Provider Store: PID=1604 TID=2396 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:21:34, Info DISM DISM Provider Store: PID=1604 TID=2396 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:21:34, Info DISM DISM Provider Store: PID=1604 TID=2396 Disconnecting Provider: VHDManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:21:34, Info DISM DISM Provider Store: PID=1604 TID=2396 Disconnecting Provider: GenericImagingManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:21:34, Info DISM DISM Provider Store: PID=1604 TID=2396 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:21:34, Info DISM DISM Provider Store: PID=1604 TID=2396 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    Windows 8 (WADK uninstalled, /mount-image succeeds):
    2013-04-02 10:15:36, Info DISM PID=1016 TID=1228 Scratch directory set to 'C:\Users\Justin2\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2013-04-02 10:15:36, Info DISM PID=1016 TID=1228 DismCore.dll version: 6.2.9200.16384 - CDISMManager::FinalConstruct
    2013-04-02 10:15:36, Info DISM PID=1016 TID=1228 Successfully loaded the ImageSession at "C:\Windows\System32\Dism" - CDISMManager::LoadLocalImageSession
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Manager: PID=1016 TID=1228 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM.EXE:
    2013-04-02 10:15:36, Info DISM DISM.EXE: <----- Starting Dism.exe session ----->
    2013-04-02 10:15:36, Info DISM DISM.EXE:
    2013-04-02 10:15:36, Info DISM DISM.EXE: Host machine information: OS Version=6.2.9200, Running architecture=amd64, Number of processors=1
    2013-04-02 10:15:36, Info DISM DISM.EXE: Dism.exe version: 6.2.9200.16384
    2013-04-02 10:15:36, Info DISM DISM.EXE: Executing command line: dism /mount-image /imagefile:C:\test\media\sources\boot.wim /index:1 /mountdir:C:\test\mount
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Loading Provider from location C:\Windows\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Connecting to the provider located at C:\Windows\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Loading Provider from location C:\Windows\System32\Dism\VHDProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Connecting to the provider located at C:\Windows\System32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Loading Provider from location C:\Windows\System32\Dism\ImagingProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Connecting to the provider located at C:\Windows\System32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Loading Provider from location C:\Windows\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Connecting to the provider located at C:\Windows\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:15:36, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2013-04-02 10:15:36, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2013-04-02 10:15:36, Info DISM DISM.EXE: Attempting to add the commands from provider: FolderManager
    2013-04-02 10:15:36, Info DISM DISM.EXE: Attempting to add the commands from provider: WimManager
    2013-04-02 10:15:36, Info DISM DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2013-04-02 10:15:36, Info DISM DISM.EXE: Attempting to add the commands from provider: VHDManager
    2013-04-02 10:15:36, Info DISM DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
    2013-04-02 10:15:36, Info DISM DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
    2013-04-02 10:15:36, Info DISM DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2013-04-02 10:15:36, Info DISM DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Getting Provider GenericImagingManager - CDISMProviderStore::GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:15:36, Info DISM DISM Imaging Provider: PID=1016 TID=1228 WIM image specified - CGenericImagingManager::GetImageInfoCollection
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Getting Provider WimManager - CDISMProviderStore::GetProvider
    2013-04-02 10:15:36, Info DISM DISM Provider Store: PID=1016 TID=1228 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    [1016] Caller did not request sparse mount
    [1016] Mounting new image.
    Wim: [C:\test\media\sources\boot.wim]
    Image Index: [1]
    Mount Path: [C:\test\mount]
    [1016] Wimserv process started for guid f7dd9f47-ec90-46f3-88f5-3953b995ef9c. Id is 1052
    [1052] ImageUnmarshallHandle: Reconstituting wim at C:\test\media\sources\boot.wim.
    [1052] Mounted image at C:\test\mount.
    2013-04-02 10:15:59, Info DISM DISM.EXE: Image session has been closed. Reboot required=no.
    2013-04-02 10:15:59, Info DISM DISM.EXE:
    2013-04-02 10:15:59, Info DISM DISM.EXE: <----- Ending Dism.exe session ----->
    2013-04-02 10:15:59, Info DISM DISM.EXE:
    2013-04-02 10:15:59, Info DISM DISM Provider Store: PID=1016 TID=1228 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2013-04-02 10:15:59, Info DISM DISM Provider Store: PID=1016 TID=1228 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:15:59, Info DISM DISM Provider Store: PID=1016 TID=1228 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:15:59, Info DISM DISM Provider Store: PID=1016 TID=1228 Disconnecting Provider: VHDManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:15:59, Info DISM DISM Provider Store: PID=1016 TID=1228 Disconnecting Provider: GenericImagingManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:15:59, Info DISM DISM Provider Store: PID=1016 TID=1228 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:15:59, Info DISM DISM Provider Store: PID=1016 TID=1228 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:16:03, Info DISM PID=1604 TID=2280 Scratch directory set to 'C:\Users\Justin2\AppData\Local\Temp\'. - CDISMManager::put_ScratchDir
    2013-04-02 10:16:03, Info DISM PID=1604 TID=2280 DismCore.dll version: 6.2.9200.16384 - CDISMManager::FinalConstruct
    2013-04-02 10:16:03, Info DISM PID=1604 TID=2280 Successfully loaded the ImageSession at "C:\Windows\System32\Dism" - CDISMManager::LoadLocalImageSession
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Manager: PID=1604 TID=2280 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Getting Provider DISMLogger - CDISMProviderStore::GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM.EXE:
    2013-04-02 10:16:03, Info DISM DISM.EXE: <----- Starting Dism.exe session ----->
    2013-04-02 10:16:03, Info DISM DISM.EXE:
    2013-04-02 10:16:03, Info DISM DISM.EXE: Host machine information: OS Version=6.2.9200, Running architecture=amd64, Number of processors=1
    2013-04-02 10:16:03, Info DISM DISM.EXE: Dism.exe version: 6.2.9200.16384
    2013-04-02 10:16:03, Info DISM DISM.EXE: Executing command line: dism /unmount-image /mountdir:C:\test\mount /discard
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Getting the collection of providers from a local provider store type. - CDISMProviderStore::GetProviderCollection
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Loading Provider from location C:\Windows\System32\Dism\FolderProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Connecting to the provider located at C:\Windows\System32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Loading Provider from location C:\Windows\System32\Dism\WimProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Connecting to the provider located at C:\Windows\System32\Dism\WimProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Loading Provider from location C:\Windows\System32\Dism\VHDProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Connecting to the provider located at C:\Windows\System32\Dism\VHDProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Loading Provider from location C:\Windows\System32\Dism\ImagingProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Connecting to the provider located at C:\Windows\System32\Dism\ImagingProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has not previously been encountered. Attempting to initialize the provider. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Loading Provider from location C:\Windows\System32\Dism\CompatProvider.dll - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Connecting to the provider located at C:\Windows\System32\Dism\CompatProvider.dll. - CDISMProviderStore::Internal_LoadProvider
    2013-04-02 10:16:03, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table.
    2013-04-02 10:16:03, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider
    2013-04-02 10:16:03, Info DISM DISM.EXE: Attempting to add the commands from provider: FolderManager
    2013-04-02 10:16:03, Info DISM DISM.EXE: Attempting to add the commands from provider: WimManager
    2013-04-02 10:16:03, Info DISM DISM.EXE: Succesfully registered commands for the provider: WimManager.
    2013-04-02 10:16:03, Info DISM DISM.EXE: Attempting to add the commands from provider: VHDManager
    2013-04-02 10:16:03, Info DISM DISM.EXE: Attempting to add the commands from provider: GenericImagingManager
    2013-04-02 10:16:03, Info DISM DISM.EXE: Succesfully registered commands for the provider: GenericImagingManager.
    2013-04-02 10:16:03, Info DISM DISM.EXE: Attempting to add the commands from provider: Compatibility Manager
    2013-04-02 10:16:03, Info DISM DISM.EXE: Succesfully registered commands for the provider: Compatibility Manager.
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Getting Provider GenericImagingManager - CDISMProviderStore::GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Getting Provider VHDManager - CDISMProviderStore::GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    2013-04-02 10:16:03, Info DISM DISM VHD Provider: PID=1604 TID=2280 [C:\test\mount] is not recognized by the DISM VHD provider. - CVhdImage::Initialize
    2013-04-02 10:16:03, Info DISM DISM Imaging Provider: PID=1604 TID=2280 The provider VHDManager does not support CreateDismImage on C:\test\mount - CGenericImagingManager::CreateDismImage
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Getting Provider WimManager - CDISMProviderStore::GetProvider
    2013-04-02 10:16:03, Info DISM DISM Provider Store: PID=1604 TID=2280 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider
    [1604] ImageUnmarshallHandle: Reconstituting wim at C:\test\media\sources\boot.wim.
    [1604] ImageUnmarshallHandle: Reconstituting wim at C:\test\media\sources\boot.wim.
    [1604] ImageUnmarshallHandle: Reconstituting wim at C:\test\media\sources\boot.wim.
    [1052] Received unmount request for image with guid f7dd9f47-ec90-46f3-88f5-3953b995ef9c.
    [1052] Unmount for image at C:\test\mount complete.
    2013-04-02 10:16:13, Info DISM DISM.EXE: Image session has been closed. Reboot required=no.
    2013-04-02 10:16:13, Info DISM DISM.EXE:
    2013-04-02 10:16:13, Info DISM DISM.EXE: <----- Ending Dism.exe session ----->
    2013-04-02 10:16:13, Info DISM DISM.EXE:
    2013-04-02 10:16:13, Info DISM DISM Provider Store: PID=1604 TID=2280 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2013-04-02 10:16:13, Info DISM DISM Provider Store: PID=1604 TID=2280 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:16:13, Info DISM DISM Provider Store: PID=1604 TID=2280 Disconnecting Provider: WimManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:16:13, Info DISM DISM Provider Store: PID=1604 TID=2280 Disconnecting Provider: VHDManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:16:13, Info DISM DISM Provider Store: PID=1604 TID=2280 Disconnecting Provider: GenericImagingManager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:16:13, Info DISM DISM Provider Store: PID=1604 TID=2280 Disconnecting Provider: Compatibility Manager - CDISMProviderStore::Internal_DisconnectProvider
    2013-04-02 10:16:13, Info DISM DISM Provider Store: PID=1604 TID=2280 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    Further:
    When running DISM commands in Windows 8 w/o WADK, I'm running from an elevated Console
    When running DISM commands on Windows 8 w/ ADK, I've tried running from an elevated Console, elevated DISM environment Console (installed with the WADK), as well as running dism.exe specifically from the Windows Kits\8.0\Assessment and Deployment Kit\Deployment
    Tools\amd64 as well as x86 directories. All fail as above.
    This problem is reproduceable in my HyperV session, I can install/uninstall WADK repeatedly and receive the same results. To that end, I can capture a video and post to Youtube (or elsewhere) to help share the operations I'm going through. I could also take
    a snapshot and perform other testing.
    It seems that installing the WADK is causing some libraries to be stomped on, for lack of a better term. Also importantly, a co-worker who has Windows 7 x64 is getting the same type of error, although because he's running Windows 7 and not Windows 8, he cannot
    test a mounting operation without the WADK (as Windows 7 does not include the DISM tools as Windows 8 does.)

  • Find directory in location relative to class

    Is there a better way to do this?
    I have a package with a main class called 'RainfallSeriesTranslator.bin.ui.Launcher' and some methods in a sub-directory called 'RainfallSeriesTranslator.bin.methods'. The 'methods' directory will always be in the same relative location to 'ui.Launcher', but the package could be in any location on the users machine. My intention is to develop a number of classes and to drop them into the 'methods' directory as and when, so 'Launcher' needs to be able to dynamically (or at least at compile time) list out the contents of the 'methods' directory as strings into an array called 'contents'.
    My earlier attempts got it to launch from Eclipse, but not from the command prompt. I think I have traced this error to my use of the working directory as a prepend to the 'methods' directory.
    The following is a successful work-around (see 'getMethods'). My idea was to get the URL of 'Launcher' as a 'bearing' and to change the relevant references to point to 'Methods'. It works for WinXP and Mac OS X.
    However, it looks long-winded. Is there a better way to do it? (I have left the string manipulations uncondensed for readibility). Would this fall over on another (common) operating system?
    package ui;
    import java.io.File;
    import java.io.FilenameFilter;
    import java.util.ArrayList;
    public class Launcher {
         private final static String name = "RainfallSeriesTranslatorPanel";
         private final static String[] methods = getMethods();
         private final static String fileExt = ".class";
         public static void main(String[] args) {
              new Panel(name, methods);
         public static String[] getMethods() {
              String fileSeparator = System.getProperty("file.separator");
              //Find the URL of this class
              String str1 = Launcher.class.getResource("Launcher.class").toString();     
              //Remove the "file:/" part of the URL
              String str2 = "file:/";
              String str3 = str1.replace(str2, "");
              //Replace the last part of the filepath
              String str4 = "ui/Launcher.class";          
              String str5 = "Methods";
              //Assemble the absolute filepath name with system specific file separators
              //Works on WinXP and Mac OS X
              String str6 = str3.replace(str4, str5);     
              String methodDirectory = fileSeparator + str6.replace("/", fileSeparator);
              File dir = new File(methodDirectory);
              ArrayList <String> methodsAL = new ArrayList<String>();
              FilenameFilter filter = new FilenameFilter() {
                      public boolean accept(File dir, String name) {
                          return name.endsWith(fileExt);
              String []contents = dir.list(filter);
              for (int i = 0; i < contents.length; i++){
                   methodsAL.add(contents.replace(fileExt, ""));
              return methodsAL.toArray(new String[methodsAL.size()]);
         public String getPanelName() {
              return name;
         public String getFileExtensionName() {
              return fileExt;
    }PS Its curious that Mac OS X needs the absolute path to start with a file separator, but Windows seems to ignore it - possibly because it occurs before a 'C:' type of reference.  I don't have an explanation, I'm just observing something that appears to work.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thanks guys,
    The following works as expected for WinXP and Mac OS X.
    package ui;
    import java.io.File;
    import java.io.FilenameFilter;
    import java.net.URI;
    import java.net.URISyntaxException;
    import java.util.ArrayList;
    public class Launcher {
         private final static String name = "RainfallSeriesTranslatorPanel";
         private final static String[] methods = getMethods();
         private final static String fileExt = ".class";
         public static void main(String[] args) {
              new Panel(name, methods);
         public static String[] getMethods() {
              //Find the URI of the methods directory
              URI methodDirectory = null;
              try {
                   methodDirectory = Launcher.class.getResource("/methods").toURI();
              } catch (URISyntaxException e) {
                   System.out.println("RainfallSeriesTranslator.src.ui.Launcher cannot find the directoty 'methods'");
                   e.printStackTrace();
              File dir = new File(methodDirectory);
              ArrayList <String> methodsArrayList = new ArrayList<String>();
              FilenameFilter filter = new FilenameFilter() {
                      public boolean accept(File dir, String name) {
                          return name.endsWith(fileExt);
              String []contents = dir.list(filter);
              for (int i = 0; i < contents.length; i++){
                   methodsArrayList.add(contents.replace(fileExt, ""));
              return methodsArrayList.toArray(new String[methodsArrayList.size()]);
         public String getPanelName() {
              return name;
         public String getFileExtensionName() {
              return fileExt;
    }Chuck, thanks for the suggestion, but I had trouble with anything that had a reference to the working directory (System.getProperty("user.dir")).  The problem, I think, was that the class will not necessarily be in the working directory.  I can only offer an observation and an inference, not an explanation, but this meant that I could launch 'launcher' from Eclipse (presumably because Eclipse set the working directory to where the package was) but I could not launch it from terminal or command prompt (presumably because the working directory was set to default).  See  [http://forum.java.sun.com/thread.jspa?threadID=5289014]  for an earlier post.
    Now for a dummy question;  what does URL and URI stand for?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • "Program files" directory problem during Microsoft Office Customization Installer in non-English versions of Windows

    We have a document-level customization solution for Word and are experiencing problems during deployment in an environment running on terminal services. The OS (Windows 2012) is English and Word (2013) is non-English (German). 
    Installation is done into the "Program Files" folder correctly. But when trying to start a word document linked to the specific template. The "Microsoft Office Customization Installer" pops up with the error.
    "There was an error during installation"
    From: file:///C:/Programme/[CompanyName]/[Productname]/[Productname].vsto
    Downloading file:///c:/Programme/[CompanyName]/[Productname]/[Productname].vsto did not succeed.
    Exception: ....
    System.Deployment.Application.DeploymentDonwloadException: Download file:///C:/Programme/[Companyname]/Productname]/[Productname].vsto did not suceed. ---> System.Net.WebException: Could not find a part of the path 'C:\Programme\[Companyname]\[Productname]\[Productname].vsto'.
    ---> System.Net.WebException: ...... ---> System.IO.DirectoyNotFoundException......
    The problem seems to be that the installer is looking for C:\PROGRAMME instead of C:\PROGRAM FILES. C:\PROGAMME is the German localized name of PROGRAM FILES (http://en.wikipedia.org/wiki/Program_Files).
    The installer installs the solution correctly deployed into c:\program files, but when the later a user tries to start it and the Microsoft Office Customization Installer is called, it tries to access the non-existing "c:\programme" folder. This
    doesn't exist, because Windows is English.
    Is there any thing related to deploying solutions on a platform which has different languages (mixing/matching of OS language and Office language?)
    Thank you for your help

    Hello,
    1. First, I would confirm with you whether you dealt with the localization for your document-level add-in?
    2. Did you use this way to define the Create a class that defines the post-deployment action part of Put the document of a solution
    onto the end user's computer (document-level customizations only) and did you get the path with Environment.SpecialFolder enum?
    To handle this, I would recommend you consider using Environment.SpecialFolder to set that property.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Bsod Problem, Bios Related?? ati2cqag.dll?? Plz Help Guys

    well i have quite a problem here and i dont know if the bios is related to it.
    my specs are:
    msi k9ngm-l (V3.7b1 bios)
    amd 64 x2 5600+ (2.9ghz)
    4 gb ram (though i see only 3 because of xp)
    radeon hd 4850 512mb
    for about 2 weeks im having wierd bsod during gamming but usualy its when i quit a game, before it gets back to desktop it will bsod. when i get the bsod it says the cause is FAULT_IN_NONPAGED_AREA and related to ati2cqag.dll
    ive updated my graphic card driver, didnt help, downgraded version of driver, didnt help, i must point that one of the "uninstall" drivers went wrong and gave me some trouble but ive cleared all the files, registry keys and installed again new drivers. the bsod didnt stop. ive then tan memtest for 4 hours, no faulty ram according to it. i can play fine, no drop in frames its normal, its just crashes randomly.ive stressed the gpu and its fine. ive searched for answers but cant find the problem. any help would be great. thanks in advance

    Do memory check with >>Memtest86<<
    List PSU brand with details, look over PSU sticker.
    "amd 64 x2 5600+ (2.9ghz)
    4 gb ram"
    That's 2 or 4 memory sticks?

  • 10.4.6 and Active Directory Problem - Volume cannot be found??

    I have bound six 10.4.6 to active directory. All went sweet with no problems. I have "force local home folder" off in Directory Access for AD. I can login to the Mac no problem using any user account from AD. If I login with a user the first time all goes well. The desktop icons show and the home directory is that of the users network home folder and can browse it. All good until I log out and login again. I get the desktop icons but the users home directory give the error "The Volume for %username% Cannot be found" when trying to access. I can browse the network to the user home folder without having to authenticate. The server (2003) shows no login errors, all looks fine. I have upgraded one Mac to 10.4.7 but made no differnce.
    I have installed "services for Mac and Appletalk" on the server but from what I have been told this shouldn't need to be installed but I did as I was getting no where anyway.
    Any ideas?
    PowerPC   Mac OS X (10.4.6)  

    Hi Chris!
    Before I comment, I want to define a couple of things. A "Mac home folder" stores a user's files (Documents, Library, etc.). This home folder can be stored locally on the workstation or it can be stored on a server. A "Windows home folder" is defined in a user's Active Directory account and can be used as the Mac home folder or simply as a network user folder for storage.
    While the idea of a network-based Mac home folder is nice, it can be clunky simply because the entire user experience is dependent on network speed and/or good file synchronization between your server and workstation. As someone who works in a group supporting about 300 Macs, I suggest enabling local home folders and not using a network-based Mac home folder.
    Next, File Services for Macintosh (AFP protocol) built into Windows Server will not support network-based Mac home folders. This is a dead end. You can install a third party product from Group Logic called ExtremeZ-IP, which does support network-based home folders over AFP.
    Therefore, what's happening in your network is that the network-based Mac home folders are being mounted via the SMB protocol, which uses Windows style file sharing. SMB in Mac OS X is good for limited use but I wouldn't recommend it for extensive use, which would include network-based Mac home folders.
    Here's what I suggest for your AD settings: 1.) Enable local home folders. 2.) Connect via SMB. This will keep your users' Mac home folders local to the machine but if their Windows network home folder is properly defined in their AD account settings then these should automatically mount on the Desktop via SMB at login.
    If you can get your Windows home folders to mount automtically on the users' Desktops then you can experiment with synchronization. After logging in, each user can visit Apple menu --> System Preferences... --> Accounts and the synchronization options will be available. A user can synchronize all or part of his local Mac home folder to his mounted Windows home folder.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.7)  

  • 10.5.5 Active directory problem for mobile users

    I an running 10.5.5 on a MBP 2.4. The computer is attached to Active Directory for authentication. The accounted is setup as a mobile user with automatic home sync. Below is the problem I'm experiencing after 10.5.5.
    Upgrade worked fine, everything went through as expected. When I got home with computer, couldn't login. I did eventually get logged in, computer became extremely unresponsive at intermittent times.
    At work next day, everything worked fine.
    I believe this is a problem with 10.5.5 computers that are bound to AD, when AD is not available (but internet is.) Some type of weird priority locking or timeout setting? It seems to fail immediately if no network is available, but if the internet is available it is like it gets "hung" waiting for a response.
    Anybody else having similar problems?
    Below are the details on the specific tests that brought me to this conclusion.
    1) Boot with work network cable connected - Works fine
    2) Boot with work wifi network enabled - works fine
    3) Boot with public wifi network enabled and work cable - works fine.
    4) Boot with only public wifi - appears "frozen" (turned off after 5 minutes of trying to login)
    5) Boot without network or wifi - works fine using cached mobile account info
    6) Boot with network cable and public wifi, remove network cable after login- works fine for a period becomes periodically frozen. attempts to do anything become queued, when computer starts responding queue emptys out (can see menus / applications switch around to correspond with clicks.)
    7) Change account to Manual sync of mobile account, again boot with network cable and public wifi, remove network cable- no freezing responds normaly.
    All steps repeated after rebinding computer to AD - same results.

    First rule of installing an upgrade, run permissions repair both before & after. Did you do that?
    I'm using a Mac dual bound to AD & OD, works perfectly. I can't speak for the exact setup of your network but I personally would be suspicious of AD. I had a similar issue some time back where my processor would go crazy with the net directory authentication running like crazy. Turned out AD had somehow forgotten my computer. It only happened away from work where my Mac couldn't contact the AD server (not exactly sure why). I'd try the following.
    1. While at work create a local administrative account on your Mac (you should always have a backup account anyway).
    2. Login as local admin account.
    3. open Directory Utility from the Applications/Utilities folder & remove the AD server (you'll need an account that can bind machines to AD).
    4. re-add your Mac to AD.
    This may resolve your issue & shouldn't hurt anything in the least.

  • Binding to Active Directory Problem. I am a Newb! probably something stupid

    Hey All,
    Trying to get my apple xsever to join our windows domain. I got it to bind and the user accounts show up on the machine but then it askes me to join it to the Active Directory Kerberos realm. I am confused.
    what i am trying to do is joint it to the windows domain for my admin account on the actual server and then set up local user accounts on the machine so when my mac users log in they authenticate using the local mac account and not the windows domain account. Does this make sense? From what i read macs authenticate using the local account before going to the windows account which is what i want. I am a total newb to this so forgive me for the stupid questions.
    cheers all,
    jess

    Hi
    set up the xserve as an Open directory Master
    will it place nice on the network
    with the rest of the windows servers that we have.
    There should be no problem in doing this. All you need to do is decide whether you want your Mac Server to run its own DNS Service or to use the existing DNS service being provided by the AD Server. Open Directory Master requires DNS Services running somewhere.
    i just want to have a mac studio of about 35 people be
    kind of an island within a sea of windows users. If
    there can be cross over there then fine.. but really
    i want the mac to work well with the apple server and
    if i can get the windows clients hooked up also then
    fine.
    There should be no problem with this.
    When you say studio do you mean a graphics design studio? Or are you talking about a video production studio? If the answer is yes to either one or both then perhaps a simple file server would do. An Open Directory Master is OK in this environment but your network needs to be up to job. Ideally gigabit ethernet certainly for video production and also if your studio are heavy photoshop users. You could get away with 100Base-T but with 35 heavy users editing files stored on the server as well as Home folders it may be a bit too much. If this is the situation in your studio you would be better placed working locally and saving the files back to the server at the end of the day. You would set up your users with names and passwords in the OD directory node. Your studio can use those account details to log on to the server to access share points but still work locally if they need to. If you start windows services on the mac server then there should be no reason for windows clients to access share points on the mac server as well. Be careful how you configure windows services as you already have existing PC servers on the network.
    As you have already stated your aim is to keep the macs completely separate from the PCs then consider connecting all your macs to a separate switch and have them running of a different IP address range and subnet mask. You could then use an intervening router to handle traffic between the two networks, this way you control cross platform access to shared resources. If you understand networks, routers etc then you should be able to accomplish this without too much trouble. Again searching the Server forums should give you plenty of ideas and advice on the best way to achieve what you want. As ever defining and deciding what you want you want the server to do is half the problem.

Maybe you are looking for

  • Getting files bigger than 4GB onto external drive for itunes

       Im woundering if anyone can help me ?     I have recently purchased a 2012 mini mac and wanted to transfer my itunes from my pc to the new mac.    After several attempts at doing this i found it easier to start afresh due to my external hdd that i

  • Syncing from iphone to ical doesn't work

    In my syncing trials, I can't seem to figure out why my Calendar on my iPhone won't sync with my iCal or MobileMe. My Google calendar syncs fine as well as iCal to MobileMe. There's something going with the process between the phone & computer. Does

  • I purchased numbers but want to install in my new iMac.  how?

    I purchased numbers but want to install in my new iMac.  how?

  • Changing Reel Name

    Hi, I'm creating a video archive with the footage we've recently acquired, and have a question about changing the reel name in the logging info window. I want to change the reel name to correspond to the new tape label numbers I've created for the ar

  • Regarding publishing query inside a role in pfcg

    Hello All.. I currenlty  created a role in pfcg in BW system,. In role I have assigned object S_RS_COMP,S_RS_COMP1... In BEX Analyzer,i then published a query to that role. After publishing the same , i was able to see query in the role. I assigned t