Finding a directory

Hi guys.How can I find the directory during execution where my class files are located? thanx in advance

Hi guys.How can I find the directory during execution
where my class files are located? thanx in advanceBefore you get this answered, you're barking up the wrong tree if you really think you need to know this. There may not be such a thing as a "directory" where the class file(s) live. Think of JARs (contain classes), WARs (contain classes and/or JARs), EARs (contain WARs, JARs), and if you're wanting to create files in the directory, also think of read-only media that your app could be installed on.

Similar Messages

  • Finding the directory path in java

    I need to check if a file exists or not before an action is taken. I used File class to get the handle of a file and and then used exist() function to check if it is there. But this function needs to full path to that file. I need to find a directory path at runtime as the application is deployed in different environment and wouldn't know the directory path in each environment. Could somebody help me on this. Thanks,

    fBut this function
    needs to full path to that file. I need to find a
    directory path at runtime as the application is
    deployed in different environment and wouldn't know
    the directory path in each environment. Well, that can only you know where this file is on the different platforms. So maybee you can provide it as a user-input, a parameter to the program or be set in a settings-file which the program reads.
    If you want the full path to the current directory where the java program runs, this works:
    File f=...;
    String absPath=f.getAbsolutePath();
    File absPathFile=new File(absPath);Gil

  • How to find /i/ directory in apex 4.1

    Hello everyone,
    We are using Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 and Apex 4.1 and Apex Standalone listner,
    How to find /i/ directory in database.
    Thank you.

    Check http.conf to see the alias for /i/
    Try logging into APEX Listener admin
    http://docs.oracle.com/cd/E21611_01/doc.11/e21058/config.htm

  • After unzipping the medrec_tutorial, i did,t find build directory

    Hi All,
    I am trying to develop medrec application.I have
    downloaded the application from the following link
    http://edocs.bea.com/wls/docs81/medrec_tutorial.zip
    i did,t find build directory in it.Please send me the link containing all the content required for developing application.Please respond as soon as possible,i am struck with this problem.
    thanks in advance,
    nkmb

    did you find a solution to this I have the same problem.
    I have been trying for weeks to sort this out, have been messing about with jars and classpath to no avail.
    A tutorial like this should be consistent. I am just about ready to abandon weblogic for jboss.

  • Grub-install: "cannot find EFI directory" (CSM mode)

    Hi,
    I'm trying to install grub on the mbr with 'grub-install /dev/sdb', but I get "cannot find EFI directory'. I have an Asus laptop with secure boot disabled and CSM enabled (I *need* CSM because otherwise - I don't know the reason - I can't boot from USB/disk). I have Windows 7 installed (/dev/sdb2) and I know there's a small partition (/dev/sdb1) which was created during Windows 7 installation which contains a 'Boot' directory, a 'bootmgr' file and other stuff. Now, my purpose is to dual boot Windows 7 and Arch while the BIOS is in CSM mode. The problem is that a simple grub-install /dev/sdX does not work as expected (under Gentoo, it simply worked out-of-the-box). By now, I can chroot into my fresh Arch installation (/dev/sdb3). Another thing: possible targets for grub-install are 'i686-pc' and 'x86_64-efi'; when running grub-install the program automatically selects 'x86_64.efi' as target. I don't know if it's correct (I do have an AMD64 laptop, just to clarify). Thanks in advance.

    tant0c1b0 wrote:Hi,
    I'm trying to install grub on the mbr with 'grub-install /dev/sdb', but I get "cannot find EFI directory'. I have an Asus laptop with secure boot disabled and CSM enabled (I *need* CSM because otherwise - I don't know the reason - I can't boot from USB/disk). I have Windows 7 installed (/dev/sdb2) and I know there's a small partition (/dev/sdb1) which was created during Windows 7 installation which contains a 'Boot' directory, a 'bootmgr' file and other stuff. Now, my purpose is to dual boot Windows 7 and Arch while the BIOS is in CSM mode. The problem is that a simple grub-install /dev/sdX does not work as expected (under Gentoo, it simply worked out-of-the-box). By now, I can chroot into my fresh Arch installation (/dev/sdb3). Another thing: possible targets for grub-install are 'i686-pc' and 'x86_64-efi'; when running grub-install the program automatically selects 'x86_64.efi' as target. I don't know if it's correct (I do have an AMD64 laptop, just to clarify). Thanks in advance.
    You are telling the system to act like it is a BIOS system as far as the boot process goes but I don't think you are using a disk with a MBR, master boot record partition table. Is your disk actually GPT? This is a common gotcha when trying to use CSM mode on a UEFI based system since UEFI systems come with GPT disks. I believe this describes Grub installation in your configuration.
    https://wiki.archlinux.org/index.php/GR … structions
    To be clear though, I don't think this is a good direction to go. This isn't keeping things simple though that may have been why you chose to do it. I don't have enough information to know but it sounds like your disk expected to be in a UEFI system and was created with a GPT partition scheme. I would use it that way for Arch and for Windows if you choose to have that installed. I think it creates unneeded complexity to create a hybrid UEFI/BIOS configuration. I would always have all disks using the same partition scheme (the reason you can't boot "USB/disk" may be that you need GPT) and all OS's booting UEFI on a UEFI system.

  • Can't find document/directory

    Hi Friends,
    Recently created custom appset (A),   i created few input scheduels/templates and stored in local drive.
    Now when i try to save those templates in server (i.e company folder), system prompting
    Can't find document/directory.
    what might be the reason?
    Thanks,
    naresh

    Hi
    System Preferences > Sharing. This is where you will find your computer name. Terminal is telling you that your computer name is listserv. Click Show All at the top of the System Preferences window, now select Accounts. You will see your account details listed, the short name of your account is networks. The ~ symbol is terminal shorthand for your home folder /Users/Home. This will take the short name that is in your account details you’ve just seen in System Preferences > Accounts.
    You can’t delete listserv:~network without changing your account details or creating another administrator account, logging in with that and deleting the old account. This is fairly bog standard account administration stuff that you should be familiar with. Terminal on launch displays the admin account short name and takes you to the admin account’s home folder by default.
    Hope this helps – Tony

  • Can not find RTE directory

    Using LabWindows 8 and the full runtime engine, I get a "Can not find RTE directory" error at rutime on some Windows PCs.  PCs with the problem have it persistently, PCs without the problem never fail.

    Posted in wrong forum.  Was correctly posted in Labwindows forum here.

  • Unable To Build Executable: Error in finding run directory

    Sun WorkShop C++ Compiler Version 5.0
    Trying to compile, link and build executable.
    Did I overlook something ?
    # CC -o server server.c
    Error in finding run directory. Using default /opt/SUNWspro/bin
    Segmentation Fault - core dumped
    #

    <pre>
    Hi EldridRensburg,
    Following is an excerpt from one of the answer/solution
    provided to similar reported problem. Please see if this
    is the same case with you.
    ````````````````````````````````````````````````````
    This problem occurs when the source code directory is NFS-mounted
    but the permission of the mount point before mounting is not
    consistent with the permissions of the remote file system.
    e.g.,
    # ls -ld /mnt
    drwxrwxrw- 2 root sys 512 Dec 15 22:52 /mnt
    # mount foo:/tmp /mnt
    # ls -ld /mnt
    drwxrwxrwx 7 root root 2037 Feb 18 16:35 /mnt
    As a user:
    % cd /mnt
    % ls -ld /mnt
    drwxrwxrwx 7 root 2037 Feb 18 16:41 /mnt/
    % /opt/SUNWspro/bin/cc hello.c
    Error in finding run directory. Using default /opt/SUNWspro/binSegmentation
    Fault (core dumped)
    % cd ..
    ..: Permission denied
    Note that if the mount point /mnt does not have "x" permission for
    others before the mount, the compiler will fail.
    Make sure the permissions of the mount point is consistent
    with the remote file system before mounting.
    ``````````````````````````````````````````````````
    Thanks
    Kalpesh
    </pre>

  • Can't find plugins directory when installing Native Instruments Komplete

    Hi - I recently tried to install Native Instruments Komplete and the installation stops with a message saying that 'setup could not find your browser's plugins directory - click browse and locate the plugins directory - to install to this directory click install - you may install the plugin into a different directory but the plugin may not work properly with your browser. The default directory that it shows me (presumably the one it can't find?) C:\windows\system32\macromed\flash.
    I went to Native Instruments with this problem, but they have told me to go to Adobe saying that, 'The error message you are receiving is related to the Flash Player and not to the NI installation - so please contact Adobe for assistance with this.'
    Can anyone help please? Thanks! (I'm running Windows 7 Professional (64 bit) with Service Pack 1)

    Hi Pete,
    I would have expected Flash Player to be installed with the Suite, but I don't think it will hurt to install it again (in fact, you'll get the most up to date version if you haven't upgraded recently.)
    Flash Player on windows comes in two flavors.  One is an ActiveX control for Internet Explorer, the other is a plugin for all other browsers.  One thing to note, if you're on a 64 bit machine the directory for the Flash Player files will be different than a 32 bit install.  Here's where you typically find them:
    32 bit: C:\Windows\system32\Macromed\Flash
    64 bit: C:\Windows\SysWOW64\Macromed\Flash
    Chris

  • URGENT TO FIND JDEVELOPER DIRECTORY ON REDHAT LINUX

    Sir
    I have office website on redhat linux,jdeveloper10g using websphere and struts and ejb.We are not getting directory structure and location website files(public_html)f i find it i can maintain and update it.
    can the website files be transferred on tomcat after arranging libraray files so that it will be easier to maintain.Please guide urgently. The website also abruptly runs/shuts down as we are unable to maintain.
    You can come over my mobile or teamviewer .wHAT IS DIFFERENCE between jdev and jdeveloper.
    Thanks.
    Rajiiv Prasad Verma

    Moderator Advice:
    @ user 904857 (Rajiv),
    These discussion forums are user-to-user.
    They are NOT a way to get to Oracle Technical Support.
    Techsupport isn't expected to monitor any posts here.
    People who respond are doing so on their own time and have nothing to do with Oracle except that they use or know something on its products.
    There is no obligation that any inquiry ever get a response, nor how speedy that might ever be.
    There is no "URGENT" here.
    Your time pressures are your own concern, not anyone else's.
    If you have an important business need on some issue, open a ticket with Support.
    http://www.oracle.com/us/corporate/contact/index.html

  • Unable to find Active Directory Domain Groups via /_vti_bin/UserGroup.asmx GetRoleCollectionFromGroup

    Hi, I am writing a Powershell script locally on my machine to aggregate data from SharePoint 2010 and Active Directory.  All groups in our SP environment are Active Directory Domain Groups (AD DG).  Accessing group members via SharePoint is not
    possible (as many of you already know).  My plan was to pull Domain Group lists and aggregate AD DG data with SharePoint data (permission levels, etc...).  I unfortunately ran into a problem when I realized that AD DGs are not considered "SP
    Groups" but instead are considered user??? 
    How do I leverage SharePoint web services to perform an action similar to /_vti_bin/UserGroup.asmx > GetRoleCollectionFromGroup?  I do not want to perform this action on the server, but locally on my machine.  When I run the below script
    it throws a 401 error and complains it "can't find the group".  Keep in mind I am trying to get info on a
    AD Domain Group, not a
    SharePoint Group.  I think that is the underlying reason this request keeps failing as I tested the below script on SP groups and it worked perfectly.
    clear
    $CRED = Get-Credential
    [System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
    $uri = "http://{site}/_vti_bin/UserGroup.asmx"
    $soap = '<?xml version="1.0" encoding="utf-8"?>'
    $soap+= '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
    $soap+= '<soap:Body>'
    $soap+= '<GetRoleCollectionFromGroup xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/">'
    $soap+= '<groupName>TestGroup</groupName>'
    $soap+= '</GetRoleCollectionFromGroup>'
    $soap+= '</soap:Body>'
    $soap+= '</soap:Envelope>'
    [xml]$WF = Invoke-RestMethod $uri -Credential $CRED -Method POST -ContentType "text/xml" -Body $soap
    echo $WF
    $WF.Envelope.Body.GetRoleCollectionFromGroupResponse.GetRoleCollectionFromGroupResult.GetRoleCollectionFromGroup.Roles.Role
    Thank you. 

    Hi, I am writing a Powershell script locally on my machine to aggregate data from SharePoint 2010 and Active Directory.  All groups in our SP environment are Active Directory Domain Groups (AD DG).  Accessing group members via SharePoint is not
    possible (as many of you already know).  My plan was to pull Domain Group lists and aggregate AD DG data with SharePoint data (permission levels, etc...).  I unfortunately ran into a problem when I realized that AD DGs are not considered "SP
    Groups" but instead are considered user??? 
    How do I leverage SharePoint web services to perform an action similar to /_vti_bin/UserGroup.asmx > GetRoleCollectionFromGroup?  I do not want to perform this action on the server, but locally on my machine.  When I run the below script
    it throws a 401 error and complains it "can't find the group".  Keep in mind I am trying to get info on a
    AD Domain Group, not a
    SharePoint Group.  I think that is the underlying reason this request keeps failing as I tested the below script on SP groups and it worked perfectly.
    clear
    $CRED = Get-Credential
    [System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
    $uri = "http://{site}/_vti_bin/UserGroup.asmx"
    $soap = '<?xml version="1.0" encoding="utf-8"?>'
    $soap+= '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
    $soap+= '<soap:Body>'
    $soap+= '<GetRoleCollectionFromGroup xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/">'
    $soap+= '<groupName>TestGroup</groupName>'
    $soap+= '</GetRoleCollectionFromGroup>'
    $soap+= '</soap:Body>'
    $soap+= '</soap:Envelope>'
    [xml]$WF = Invoke-RestMethod $uri -Credential $CRED -Method POST -ContentType "text/xml" -Body $soap
    echo $WF
    $WF.Envelope.Body.GetRoleCollectionFromGroupResponse.GetRoleCollectionFromGroupResult.GetRoleCollectionFromGroup.Roles.Role
    Thank you. 

  • Finding current directory location of file

    Hi All,
    i want to know how to find out the directory path of the given file.when i am using the below code i am getting path where our program running.i.e.c://windows/system32.
    File f=new File(".");
    f.getAbsolutePath();
    i want to know the path of file where it exactly resides.
    thanks in advance.If anybody knows please help me.

    the given fileIs the given file named: . (a single dot)?
    What happens when you use a valid filename?
    A method of the Class file wil return a URL to the class file that is executing.

  • Forest trust unable to find Active Directory Domain Controller

    I have two domains with a two-way forest trust. We'll call them ForestA and ForestB. They're on seperate subnets. ForestA's DCs are in one physical location. ForestB's DCs are in two locations, one of which is shared with A.
    I'm unable to route traffic directly from the remote DC in ForestB to the subnet ForestA is on, so I created a new DC in ForestA that sits on the subnet ForestB uses (basically, I can't route between subnets via the wireless bridge between locations, but
    can within the same location).
    I found this: http://www.neomagick.net/zen/2008/11/30/using-dns-to-force-a-domain-trust-through-a-specific-domain-controller-dc/
    I followed the instructions to set the new DC in forest A to be the only one the remote DC in forest B was aware of.
    Nslookup ForestA.com resolves correctly to this DC, but I'm unable to validate the trust relationship, getting the error:
    "Windows cannot find an Active Directory Domain Controller for the ForestA.com domain. Verify that an AD DC is available and then try again."
    I'd appreciate any help.

    In the event viewer, have you found any event id's that corrospond with this error? Have you ensured all ports required are open? Windows firewall is correctly setup? NIC is properly configured?
    Statement below taken from: http://technet.microsoft.com/en-us/library/cc961803.aspx
    If you receive the following error, ERROR_NO_LOGON_SERVERS while using the Nltest tool to query the secure channel, this is usually indicative of the inability to find a domain controller for that domain. Run nltest /dsgetdc: < DomainName > : to verify
    whether you can locate a domain controller. If you are unable to find a domain controller examine DNS registrations and network connectivity.
    ADDS Ports:
    http://msdn.microsoft.com/en-us/library/dd772723(v=ws.10).aspx

  • Cp and rsync cannot find system directory

    Hello,
    I am working on a script to copy a custom user profile over to the default. Part of the script uses rsync to copy the contents of the customized profile, named "profile" to the default profile located in: /System/Library/User Template/English.lproj. Each time I run the command interactively, it fails indicating "No such file or directory." I can browse to the directory in the Finder. I can navigate to the directory via the terminal. Why can't rsync find it? Here is the command:
    rsync -av /Users/profile/* /System/Library/User\ Template/English.lproj
    I tried a similar approach using "cp -R" instead of rsync and got a whole bunch of file not found error messages. Using the "cd" command to that same path also fails. I can step through each individual directory and arrive at English.lproj but I can't do it in one command. Any ideas where I am going wrong with my command?
    Thanks
    Jason

    Hello and welcome to the forums!
    I took a look in our knowledge base for this error and found this article.   Did you happen to update your BlackBerry Desktop Manager recently ("did the upgrade trick")?
    I think you'll find that article helpful   
    -tg
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Installed Xcode but can't find /developer directory

    I am a novice developer this might be a stupid question but I need help installing excode so I can eventually install dashcode. I'm using iMac 10.7.3 and installed xcode4.3.1 from app store. But I can't find any /developer directory. There is nothing in the 'application' folder that says "install xcode." How do I continue with the installation after downloading excode to my computer? (which I believe I did.)

    I realize now. Dashcode is now a separate application. Problem solved. Thanks.

Maybe you are looking for

  • Image display problem in DW CS3

    I can't get my images to display in design view. They also fail to appear in a browser preview. If I push the files out to the remote server, however, they appear just fine. My links are all fine. What did I miss?

  • Sync doesn't completely transfer browsing history information

    Here's some context of the question. I'm the developer of [https://addons.mozilla.org/en-US/firefox/addon/fromwheretowhere/ FromWhereToWhere] , an addon that can display browsing history in Firefox in threaded view, which takes advantage of the part

  • Airport and internet

    Hi I have new internet service and airport express no longer accesses the internet.  I can get local access but not internet. I am working off a PC with Vista but have iMacs as well.

  • How to pass the input control

    Hi, how to pass the input control from  1 report to another report please reply me ...

  • DNG+JPEG?

    My camera, a Panasonic L1, always shoots RAW+JPEG when in RAW mode (no way to turn off JPEG). It turns out there is EXIF info in the JPEG not in the RAW, such as lens info, so I need both in Aperture for full metadata. I'd like to be able to convert