Get the directory where application files exist.....

Hi ,
How to get the directory where application files exist....????
I have found a way....such as:
Right - click on the application name ... on the pop-up menu... select "Add to <application_name>" and then on the window appeared... i get the dir on the title of this window....
Is there any simpler method to obtain the dir...????
NOTE: I use JDev 10.1.3. on windows XP platform...
Many thanks ,
Simon

hi Simon
If you not only want to see the path, but also want to copy-and-paste it, you can use the "Edit > Copy Path" (Ctrl+Shift-C) menu item.
success
Jan Vervecken

Similar Messages

  • How can i get the directory of some files?

    I have the following class and the directory images in the same folder as this class. the problem is that i don't see the icons and i don't know how it works.
    please help. thanx a lot
    public class MyIcons {
    private final static String images = "images/";
    private final static String directory = getDirectory();
    public final static ImageIcon SAVE_FILE =
    new ImageIcon(directory + "savefile.gif");
    // not sure how to get the directory
    public static String getDirectory() {
    return ?????;
    }

    Try following code:
    import java.net.URL;
    public class MyIcons {
    private static final String images = "images/";
    private ImageIcon saveFile;
    public static void loadImage(){
    URL resourceURL = null;
    resourceURL = this.getClass().getResource(images
    + "savefile.gif");
    saveFile = new ImageIcon(resourceURL);
    }

  • Urgent: Want to get the directory listing

    Hi,
    My iAS and iWS reside on separate unix machines.
    My pdf files being a static content reside on iWS.
    My application which is deployed on iAS, wants to
    know the names of the pdf files residing on iWS.
    Can anyone tell me, as to whether there is any way
    for an application deployed on iAS to get the directory
    listing of files residing on a separate machine.
    Is there any API which will be of help ?.
    I guess there must be some APIs associated with the
    web connector installed on the machine where iWS is installed.
    Regards,
    Amar.

    <i>Can anyone tell me, as to whether there is any way
    for an application deployed on iAS to get the directory
    listing of files residing on a separate machine.</i>
    No. More specifically, the appserver doesn't have any special awareness of external filesystems. (The webconnector does not have any API's that would expose the webserver's files. That would be a huge security violation.)
    You could always NFS mount the webserver so that the appserver could see it. This has some security concerns, but you are going to have security concerns anytime that you are exposing your webserver's files directly.

  • F4 Help to get the path for a File source directory

    There are numerous function modules for browsing a particular file in desktop and getting the file path (including the fine name)  , like F4_FILENAME , KD_GET_FILENAME_ON_F4 , WS_FILENAME_GET etc. But can anyone tell me how to fetch only the directory path to the field were the F4 help is given. Actually the filename has to come in some other field in the selection screen. Is there separate funtion modules for these OR will changing parameters in the above function modules work?
    Pls Help....
    Also are there function modules for providing F4 help for getting the path to a file in application directory?

    Try this method CL_GUI_FRONTEND_SERVICES.
    It is a Global CLASS which is having different methods for different purposes
    see the documentation of it and use the methods of it
    see
    CL CL_GUI_FRONTEND_SERVICES
    Short Text
    Frontend Services
    Functionality
    The class CL_GUI_FRONTEND_SERVICES contains static methods for the following areas:
    File functions
    Directory functions
    Registry
    Environment
    Write to / read from clipboard
    Upload / download files
    Execute programs / open documents
    Query functions, such as Windows directory, Windows version, and so on
    Standard dialogs (open, save, directory selection)
    Example
    Determine the temp directory on your PC:
    DATA: TEMP_DIR TYPE STRING.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
    CHANGING
    TEMP_DIR = TEMP_DIR
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2.
    IF SY-SUBRC 0.
    Error handling
    ENDIF.
    flush to send previous call to frontend
    CALL METHOD CL_GUI_CFW=>FLUSH
    EXCEPTIONS
    CNTL_SYSTEM_ERROR = 1
    CNTL_ERROR = 2
    OTHERS = 3.
    IF SY-SUBRC 0.
    Error handling
    ENDIF.
    WRITE: / 'Temporary directory is:', TEMP_DIR.
    Notes
    The class CL_GUI_FRONTEND_SERVICES is based on the Control Framework. See the documentation for more information, in particular on CL_GUI_CFW=>FLUSH which must be called after many CL_GUI_FRONTEND_SERVICES methods.
    Migration Information
    The old file transfer model was based on function modules of the function group GRAP. The old features have been replaced by the class CL_GUI_FRONTEND_SERVICES. The following list contains the old function modules (italic) and the new methods (bold) that replace them:
    CLPB_EXPORT
    CLIPBOARD_EXPORT
    CLPB_IMPORT
    CLIPBOARD_IMPORT
    DOWNLOAD
    GUI_DOWNLOAD, dialog replaced by FILE_SAVE_DIALOG
    PROFILE_GET
    No replacement, use REGISTRY_* methods instead
    PROFILE_SET
    No replacement, use REGISTRY_* methods instead
    REGISTRY_GET
    REGISTRY_GET_VALUE, REGISTRY_GET_DWORD_VALUE
    REGISTRY_SET
    REGISTRY_SET_VALUE, REGISTRY_SET_DWORD_VALUE
    UPLOAD
    GUI_UPLOAD, dialog replaced by FILE_OPEN_DIALOG
    WS_DDE
    Obsolete: This function is no longer supported.
    SET_DOWNLOAD_AUTHORITY
    Obsolete: This function is no longer supported.
    WS_DOWNLOAD
    GUI_DOWNLOAD
    WS_DOWNLOAD_WAN
    Obsolete: This function is no longer supported.
    WS_EXCEL
    Obsolete: This function is no longer supported.
    WS_EXECUTE
    EXECUTE
    WS_FILENAME_GET
    FILE_SAVE_DIALOG, FILE_OPEN_DIALOG
    WS_FILE_ATTRIB
    FILE_SET_ATTRIBUTES, FILE_GET_ATTRIBUTES
    WS_FILE_COPY
    FILE_COPY
    WS_FILE_DELETE
    FILE_DELETE
    WS_MSG
    Obsolete: This function is no longer supported.
    WS_QUERY
    CD (current directory)
    DIRECTORY_GET_CURRENT
    EN (read/write environment)
    ENVIRONMENT_GET_VARIABLE
    ENVIRONMENT_SET_VARIABLE
    FL (determine file length)
    FILE_GET_SIZE
    FE (check if file exists)
    FILE_EXIST
    DE (check if directory exists)
    DIRECTORY_EXIST
    WS (determine Windows system)
    GET_PLATFORM
    OS (operating system)
    GET_PLATFORM
    WS_UPLDL_PATH
    Obsolete: This function is no longer supported.
    WS_UPLOAD
    GUI_UPLOAD
    WS_VOLUME_GET
    Obsolete: This function is no longer supported.
    Reward points if useful.

  • Getting file from directory where class files are

    hi i want to load a properties file from the directory where my java program is (the class/jar files)
    somebody told me that i could use System.getProperty("user.dir"); but it would only work under windows; under linux it points elsewhere.
    how can i determine the directory where my program lies? sounds easy but i failed :(

    why to hell put it in the classpath? Because that way you don't have to ask the user where the hell he put the file.
    and if i would do so the next question: how can my
    program modify the classpath?It can't. And it doesn't need to.
    isn't there another way to determine the directory
    where the app is started from???If you mean the current, or working, directory, then yes there are several ways to determine that. But that directory need not be where the classes are actually stored. In fact the current directory doesn't even have to be in the classpath.
    Now, here's the best way to deal with properties files. (IMHO of course.) Put them in the classpath, in the same directory or jar file as your classes. Then to create a Properties object and load it from your properties file named e.g. "default.properties" you do this:Properties props = new Properties();
    props.load(this.getClass().getResourceAsStream("/default.properties"));

  • I recently subscribed to acrobat pro. I downloaded it, but can't open it. I keep getting the window saying application quit unexpectedly.  I running Mavericks. Is that a separate download? Where do I get it?

    I recently subscribed to acrobat pro. I downloaded it, but can’t open it. I keep getting the window saying application quit unexpectedly. I running Mavericks. Is that a separate download? Where do I get it? I downloaded on Safari. Should I have used Firefox?

    Hi Kenglade,
    Are you still facing this issue?
    If yes please try follow below mentioned steps and let me know if that helps:
        1. Start you Mac in Safe Mode: http://support.apple.com/kb/HT1564?viewlocale=en_US
        2. Once you are in Safe mode, Disk repair using Disk utility: https://us.battle.net/support/en/article/repair-disk-permissions-and-repair-disk
        3. If the above steps didn’t help, you may try to enable root account and check the issue from there
        How to enable root account: http://support.apple.com/kb/PH14281 
    Regards,
    Ajlan Huda.

  • I'm having problems with a message that says: An error occurred while Attempting to create the directory: C:/program files/itunes/cd configuarion

    I know this is a long story, but I'll be damned if I'm not going to get the most specific help I can (as Apple seems to specialize in assuming user error for all its demonic software). I've never had issues with iTunes before (barring a "Connect to iTunes" snafu with my iPod Touch) -- and never, in fact, with Windows Vista, if you believe that -- but this is the most bizarre thing I've seen.
    I recently downloaded the new iTunes v 9.0.3 as I am occasionally prompted to do whenever a new version comes out, and immediately I had problems. Access to the iTunes and Quicktime folders was mysteriously denied after the update, and after several hours of frustration, I was able to grant my own Administrative access to these two folders and installation went through. Thank God.
    Then I bought some music. No problems -- downloaded just fine, along with a copy of Cinderella Man and the new episode of Smallville. Life was good for a few days.
    Then I connected my iPod Touch to the computer. All of a sudden, Microsoft Windows informs me that the "Apple Mobile Device Service stopped working and was closed," with subtext, "A problem caused the application to stop working correctly. Windows will notify you if a solution is available."
    Bullsh*t Windows can help me with anything from Apple.
    So I've tried to get iTunes to work with me on this. I've come up against the infamous "iTunes could not connect to this iPhone because an unknown error occurred (OxE8000001)" message. My God, when does it ever end?
    So I go into Control Panel > Administrative Tools > Services > Apple Mobile Device and start it back up... only to watch it stop again inexplicably moments later. Hmm... Restart. Stays on. Unplug the iPod and plug it back in. Apple Mobile Device Service stops again. Maybe it's the iPod Service itself. Hey, that one's not started! [Start] "Windows could not start the iPod Service service on Local Computer -- Error 5: Access is denied."
    What the f*ck is it with this "Access denied" crap? I've never been denied access to even the most intimate functions, files and folders on my freaking computer before! What has Apple created!?
    I thought, perhaps Apple Mobile Device software was somehow removed. Okay, let's redownload iTunes (aka Repair the program from the Programs and Features menu in the Control Panel -- same thing). Huh. "An error occurred while attempting to create directory C:\Program Files\iTunes\CD Configuration," and I can choose to Retry or Cancel. So, instinctively, I deleted the CD Configuration folder, assuming iTunes Setup would just recreate it.
    Well, that didn't work now, did it? I deleted it and hit Retry, and it said, "The installer has insufficient priveleges to access the directory: C:\Program Files\iTunes\CD Configuration. Log on as administrator or contact your system administrator." Running the .exe file as an adminstrator changes NOTHING about this predicament.
    So that's where it stands. No CD Configuration folder; full access to all files and folders involved; Apple Mobile Device Service still keeps going off for no reason; iPod Service still doesn't run; Repairing/Reinstalling iTunes, Quicktime, Bonjour, etc. does nothing; and God (aka Steve Jobs, apparently) hates me.
    . . . . . . . . . . . . Help me.

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    -Griff W.

  • How do I get the date of a file in an FTP?

    As stated in the subject.
    I am at wits end trying to get the date of a file from FTP(Stuck for days).
    I tried the "URLConnection" Class but could only get me the size of the file with "getContentLength()"
    "getContentDate()" & "getLastModified()" both give me a 0. They only works for files on HTTP but not FTP.
    Anyone has any simple solution on how to get the date of a file on FTP?
    Thanks in Advance.

    The FTP specification has long awaited the magical file meta-data access protocol, which never came. There is no FTP defined manner to obtain the date of a file. The common work-around is to get the containing directory list and <shudder> parse the format of the returned text for the target file and date. Since there is no standard directory listing format, there is no guarantee that you will be able to get that date, and your application would have to cry to the user for help.
    Some FTP applications, in addition to providing parsers for Unix/Linux and DOS/Windows directory list formats, also provide the user with a format definition script to parse whatever the user encounters.
    I hope you find this of some help.

  • How to get the URI of a file in a WAR

    Hi all,
    I have a deployed WAR.
    One of its files need to get the URI of another file in this war.
    In exploded format, application.getRealPath(thefilename) would do the
    trick. But it failed if the application is deployed in WAR archive.
    What's the workaround ?
    Note that I need the full path of the file since I need to read its
    content and parse it as XML using DOMParser that requires the full URI ..
    Any help appreciated ..
    mona

    I have a piece of code that does this that looks like this:
    InputStream inStream =
    <ServletClassName>.class.getResourceAsStream("/foo.xml");
    InputStreamReader inReader = new InputStreamReader(inStream);
    And 'foo.xml' is put in the classpath either by placing it in a .jar file in
    the WEB-INF/lib directory or by placing it in a .jar file that is deployed
    with the webapp .war file in an .ear file and then referenced by the
    'Class-Path:' manifest directive in the META-INF/MANIFEST.MF file of the
    webapp.war file. Both ways work. I would think you could put 'foo.xml' in the
    WEB-INF/classes directory and that work work, too. But, I haven't tried that.
    Bill
    Mona Ramlawi wrote:
    Hi all,
    I have a deployed WAR.
    One of its files need to get the URI of another file in this war.
    In exploded format, application.getRealPath(thefilename) would do the
    trick. But it failed if the application is deployed in WAR archive.
    What's the workaround ?
    Note that I need the full path of the file since I need to read its
    content and parse it as XML using DOMParser that requires the full URI ..
    Any help appreciated ..
    mona

  • How do I get the directory name that a class is located in?

    How do I get the directory name that a class is located in? I have a class located under /com/dhcmc and I want to be able to retrieve the "/com/dhcmc" that the class is residing under so that I can then use this directoy name to build a relative path name for the other directories supporting the application such as the images directory etc i.e.
    |---com
    |   \---dhcmc       (my class resides here)
    |       +---images  (supporting app dirs under the class dir)
    |       +---config  (supporting app dirs under the class dir)

    You can try the methods.
    Class.getClassLoader()
    Class.getResourceAsStream()
    Class.getResource()
    You probably wont get the complete directory path, but you might
    be able to load the files relative to your classes directory.

  • Getting the location of a file drop

    My program consists of a desktop with File Icons (JComponents) which can be dragged onto the OS desktop or into an OS folder. My goal is to get the OS directory path that the File Item is dropped onto, and this is what I need help figuring out how to do.
    Here is how the TransferHandler is setup:
    I created a TransferHandler to have my File Icons support being dragged. I also created a Transferable which supports DataFlavor.javaFileListFlavor and returns an ArrayList<File> when the getTransferData(DataFlavor.javaFileListFlavor) is called (which the OS will call when the File Item is dropped onto the OS desktop or OS folder).
    Here is what I have tried so far:
    Basically, when the Transferable is created, only 1 file is put into the ArrayList. This is a file that is I create in the default OS temporary directory, when Transferable is created. I tried to let the OS handle the file transfer of this file from the default OS tempoary directory to the directory which the File Icon was dropped onto. I was hoping that in the exportDone() method I could use the reference to the file to get the new directory. But the directory still says the OS default temporay directory. The OS is just copying the file, and not moving the file, and thus, the directory doesn't change. So this doesn't work.
    Anyone got any suggestions as to how to get the directory that the file is dropped onto?

    I bumped this topic and then dug deeper into the JVM and found that if a solution exists, its most likely going to be in the AWT forum that I will find an answer.

  • Siebel 8.0.0.12 Fix Pack; Unable to get the seed from binary file.

    Hello Folks,
    Can anyone throw some light into what action is required on my scenario.
    I have applied Fix Pack Siebel 8.0.0.12 on top of 8.0.0.11 SBA. After it is appled, I am facing a documented issue within the Release Notes for the 8.0.0.12 Fix Pack
    The issue is "UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12". I tried the steps given with the MR document, however, I am still having this issue.
    I am also not sure what is expected at the step of; Run the following command: seedgeneratorutil myseed.dat abcdef .
    It's asking me for a value to enter for seed at command prompt. "Enter the seed":
    what I should give here. As an assumption values,I gave SADMIN and tried to launch but still shows up the same error
    Please Assit
    Steps Details from Release Notes:
    UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12
    Component: Server Infrastructure
    Subcomponent: SWSE
    Product Version: Siebel 8.0.0.12
    Base Bug ID: 11938270
    **Users are unable to launch the URL after applying the Siebel 8.0.0.12 Fix Pack.
    **Use the following workaround to address this issue:
    Navigate to the eappweb/bin directory from the command line on the SWSE installation.
    Run the following command:
    seedgeneratorutil myseed.dat abcdef
    NOTE: In the example, myseed.dat is a filename. You can give any file name you wish.
    The myseed.dat file is generated in the eappweb/bin directory.
    Edit eapps.cfg to include the following parameters under the SWE section:
    seedfile = < complete path for myseed.dat >
    Bounce the web server.
    (For Linux only) Copy libmod_swe.so from the eappweb/bin folder to the web/ohs/modules folder
    Thanks
    Kumar

    Wilson,
    Thanks for your reply.I have repeated the steps and regenerated the error messages.
    Browser
    Message:
    An error occurred while trying to process your request. This error indicates a problem with the configuration of this server and should be reported to the webmaster (along with any errors listed below). We apologize for the inconvenience
    Initialization error:
    Unable to get the seed from binary file.
    Log
    2021 2011-09-20 23:23:01 0000-00-00 00:00:00 +0530 00000000 001 003f 0001 09 ss110920_7068 7068 7852 E:\sba80\SWEApp\log\ss110920_7068.log 8.0.0.12 [20444] ENU
    ProcessPluginState     ProcessPluginStateError     1     000000024e781b9c:0     2011-09-20 23:23:01     7852: [SWSE] Unable to get the seed from binary file.
    Eapps.cfg
    [swe]
    Language = enu
    Log = errors
    LogDirectory = $(SWSERoot)\log
    ClientRootDir = $(SWSERoot)
    SessionMonitor = False
    AllowStats = true
    LogSegmentSize = 0
    LogMaxSegments = 0
    DisableNagle = False
    seedfile = E:\sba80\SWEApp\BIN\80012seed.dat
    Thanks
    Kumar

  • How can I get the size of a file with apple script

    I try to get the size of a file within an apple script. But I did not find information how to do this.

    There are two ways. I think Apple is moving toward using System Events, which is listed first.tell application "Finder"
    set myFile to selection as alias
    --this just gets a file for me to work with
    --coercing it into an alias is required for the other functions
    end tell
    tell application "System Events"
    get size of myFile
    end tell
    set myInfo to (info for myFile)
    get size of myInfo

  • Setting up the "Directory Access" application

    I was just looking at the "Directory Access" application, and noticed some services enabled by default (AppleTalk, Bonjour etc).
    I'm not using AppleTalk or Bonjour, so would it be useful to switch these off? (for security reasons or performance).
    Can I maybe safely switch off the other three services as well? (I dont use the computer for any file sharing, by the way).
    Thanks in advance for any advice on this.

    Hi, interesting questions, Bonjour is indeed a Hog, I'd give it a try, since you know how to change it.
    See these...
    http://hints.macworld.com/article.php?story=20050707222434355
    http://osxdaily.com/2009/09/15/disable-bonjour-by-turning-off-mdnsresponder/

  • Need a java tool to get the directory difference

    Hi,
    I'm looking for a tool which is implemented in java that should be able to get the directory difference*. It should also be capable of notifying modified files also. I found a java tool but it only gives the directory difference, not the modified files.(a console program)
    Thanks.

    Hi,
    You can use below script which calculates difference as DD:HH:MM:SS. You can modify the same:
    DECLARE @startTime DATETIME
    DECLARE @endTime DATETIME
    SET @startTime = '2013-11-05 12:20:35'
    SET @endTime = '2013-11-10 01:22:30'
    SELECT [DD:HH:MM:SS] =
    CAST((DATEDIFF(HOUR, @startTime, @endTime) / 24) AS VARCHAR)
    + ':' +
    CAST((DATEDIFF(HOUR, @startTime, @endTime) % 24) AS VARCHAR)
    + ':' +
    CASE WHEN DATEPART(SECOND, @endTime) >= DATEPART(SECOND, @startTime)
    THEN CAST((DATEDIFF(MINUTE, @startTime, @endTime) % 60) AS VARCHAR)
    ELSE
    CAST((DATEDIFF(MINUTE, DATEADD(MINUTE, -1, @endTime), @endTime) % 60)
    AS VARCHAR)
    END
    + ':' + CAST((DATEDIFF(SECOND, @startTime, @endTime) % 60) AS VARCHAR),
    [StringFormat] =
    CAST((DATEDIFF(HOUR , @startTime, @endTime) / 24) AS VARCHAR) +
    ' Days ' +
    CAST((DATEDIFF(HOUR , @startTime, @endTime) % 24) AS VARCHAR) +
    ' Hours ' +
    CASE WHEN DATEPART(SECOND, @endTime) >= DATEPART(SECOND, @startTime)
    THEN CAST((DATEDIFF(MINUTE, @startTime, @endTime) % 60) AS VARCHAR)
    ELSE
    CAST((DATEDIFF(MINUTE, DATEADD(MINUTE, -1, @endTime), @endTime) % 60)
    AS VARCHAR)
    END +
    ' Minutes ' +
    CAST((DATEDIFF(SECOND, @startTime, @endTime) % 60) AS VARCHAR) +
    ' Seconds '
    Reference:
    http://sqlandme.com/2013/12/23/sql-server-calculating-elapsed-time-from-datetime/
    - Vishal
    SqlAndMe.com

Maybe you are looking for

  • Basis: No service for system , client  in Integration Directory??

    Hi All, IDocs from SAP QA are not being sent to PI QA. I see error in SM58 in SAP QA as: No service for system , client  in Integration Directory.  Please dont jump to asnwers by looking at above error. I could fix that, but thats not the real proble

  • How to Insert two queries in a single workbook in BI 7 ?

    Hi,            I am trying to insert two queries in a single workbook. The queries are of Accounts Receivable.I have inserted one query in a workbook , but am not able to proceed to inserting the second query. In BEx analyzer, in design mode , using

  • Mophie juice pack stopped charging after iOS 7.1 update

    iPhone 5 + Mophie juice box air Mophie worked just fine for almost 9 months, then after upgrading the iPhone to iOS 7.1, the mophie will no longer charge nor charge the phone! How do I get this working again?

  • My effects in final cut pro x apply to all clips beneath them.  How do I get that to stop?

    I want to put a fade in on the clips in my video, but I do not want that to apply to the background I have placed in the layer below.  Yet when I put the fade on, the effect applies to the selected clip and every layer below it.  How do I turn off th

  • Reader 11 open in browser doesn't

    We have recently updated some machines to Reader XI, however one of the issues we have faced is that they won't open a PDF - both from external sites and our own SharePoint site - within the web browser but only on some machines, others are fine. I d