Where does the INI file reside?

I've seen lots of forum posts on using the Properties class to read an INI file, but nothing on locating the INI file in the file system. Most of the examples use a hard-coded simplistic path (c:\temp\myapp.ini) or just the file name with no path.
From my meager knowledge of Java, I think the INI file should be deployed in the package directory with rest of the class files for the package. At any rate, the Java class reading the INI file cannot have a hard-coded directory path since the path may vary from install to install.
What Java statements can be used to identify the path for the run-time package? Where is the best place to place the INI file?
Thanks,
Paul

You put it somewhere in your classpath, as you describe. Then this.getClass().getResourceAsStream("/myapp.ini")gets you an InputStream from which you can read its contents.

Similar Messages

  • Where does the iPhoto library reside?

    Where does the iPhoto library reside on your hd?  when I go to the search bar above, it shows 2 libraries!  I am about out of hd space so I am hoping that it has been duplicated somehow.  It's about 36GB. =)
    Thanks for your help!
    MK

    By default it's in your Pictures Folder.
    If space is an issue you can move the Library to an external disk:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Where are the *.ini files located?

    I remember a discussion about deleting some of the *.ini files (or whatever they are called) but I can't find the link, don't remember the filenames and can't find their location.
    I'm having the same problem with Media Encoder where it only goes partway through an encode and then returns an error message. The last time I experienced that, I deleted the startup files and things worked fine. I think that there was a link from Dennis Draeke about some config files and their location.
    All help gratefully accepted!
    TIA,

    After experiencing the situation where a codec (LEAD MJPG) that had worked previously suddenly would not export through AME again, I tracked down the preferences files as outlined above and removed the following files:
    Adobe Premiere Pro Prefs,
    Adobe Premiere Pro Prefs~2
    AMEPrefs.xml
    And once again I could export with any codec settings I chose with no problems.
    I'm working with 1280x720, 30P, square pixels, 44.1kHz, 16-bit stereo material.
    When not working, the encode would proceed about 1/2- to 2/3 of the way through and then stop and return the message:
    - Preset Used: 1280x720P TX-1 Settings - LEAD Codec
    - Video: 1280x720, 30 [fps], Progressive, Quality 90
    - Audio: 44100 Hz, Stereo, 16 bit
    - Bitrate:
    - Encoding Time: 00:15:27
    4/10/2010 2:56:50 PM : Encoding Failed
    Error compiling movie.
    Codec compression error.
    This codec may be unable to support the requested frame size, or there may be a hardware or memory problem.
    After removing those three files, encoding would finish properly and return the message:
      - Preset Used: 1280x720P TX-1 Settings - LEAD Codec
    - Video: 1280x720, 30 [fps], Progressive, Quality 90
    - Audio: 44100 Hz, Stereo, 16 bit
    - Bitrate:
    - Encoding Time: 00:03:09
    4/11/2010 1:39:31 PM : File Successfully Encoded
    4/11/2010 1:39:31 PM : Queue Stopped
    Thought I'd post the results in case it might help help someone solve a problem.

  • Where does the song metadata reside (cover art work and other information)?

    I edit the metadata for each album/song - add cover art, correct any album name or artists erros, make some notes to myself to help search/browse. Where does this data reside - with the song file or the library file or somewhere else? BTW I don't download the cover artwork from iTunes. I just find it online and copy and paste it into the metadata window. I have too many obscure albums to rely on iTunes.
    The reason I ask is because I double backup my music and iTunes files. Normally, when I rip new albums I just add the new files and updated library files to me backup hard drives, by sorting by the modified date. But I'm now going back and editing all of my oder albums/songs metadata as I just described. In order to make sure this information gets backed up I'm simply backing up the entire iTunes Music folder, which takes all night cause it's around 500GBs. But I'd prefer to only add the modified files to the backup, which usually only takes a few moments.
    When I sort by modified date the albums/songs I edited metadata for do not show up as modified that day. So, is it pointless to always backup the entire folder when all I have to do is back up what was modified? And if so, what are those files?
    Also, is there a good app that will compare two hard drives and keep them in synch? So that I can basically do what I want to do automagically? Set one as the master and one as the backup, and ahve the app always synch the backup to the master. That would be nice!

    Andrew Thompson2 wrote:
    I edit the metadata for each album/song - add cover art, correct any album name or artists erros, make some notes to myself to help search/browse. Where does this data reside - with the song file or the library file or somewhere else? BTW I don't download the cover artwork from iTunes. I just find it online and copy and paste it into the metadata window. I have too many obscure albums to rely on iTunes.
    If you're not downloading artwork from iTunes, all of the tags and artwork are stored with the individual song files. Some iTunes-specific data, like play count and rating, are stored in the iTunes Library database file.

  • Where does the properties file go?

    Hi Folks!
    I'm trying to load a system properties file (myproperties.txt) using the example in java.sun.com. I just want to know where the properties file goes.
    The example is as follows:
    =========================
    import java.io.FileInputStream;
    import java.util.Properties;
    public class PropertiesTest {
    public static void main(String[] args) throws Exception {
    // set up new properties object
         // from file "myProperties.txt"
    FileInputStream propFile = new FileInputStream("myProperties.txt");
    Properties p = new Properties(System.getProperties());
    p.load(propFile);
    // set the system properties
    System.setProperties(p);
         // display new properties
    System.getProperties().list(System.out);
    =======================
    Could someone tell me where the file should physically reside (C:\..\..\).
    Also, is it possible to get the path dynamically by using getRealPath() instead of hard coding the file path in the code..
    Thanks for your assistance!
    Dranim

    The properties file goes where you want it to go. Just make sure you give it the full path.
    To make it dynamic, just make it a parameter.
    java myProg "c:\\temp\\MyProp.txt"

  • Where does the View Controller reside ?

    Hi Gurus,
    Some basic doubts : I can't see the View and Window Controllers in SE80 . Where does it reside ? or it can only be reffered through code.
    Thanks in advance

    The controllers can be accessed only by code, calling the wd_get_api on the wd_this, wd_comp_controller attributes.
    Ofcourse, you can check the interface methods etc of  if_wd_view_controller in se24.
    Regards,
    Nithya

  • When I share a file to YouTube, where does the output file live? I want also to make a DVD. And is this a best practice or is there a better way?

    I want also to make a DVD, but can't see where the .mov files are.
    And is this a best practice or is there a better way to do this, such as with a master file?
    thanks,
    /john

    I would export to a file saved on your drive as h.264, same frame size. Then import that into youtube.
    I have never used FCP X to make a DVD but I assume that it will build the needed vob mpeg 2 source material for the disk.
      I used to use Toast & IDVD. Toast is great.
    To "see" the files created by FCP 10.1.1 for YouTube, rt. (control) click on the Library Icon in your Movies/show package contents/"project"/share.

  • Where does my backup files reside in windows

    I backed up my ipad (using iTunes) to my laptop (running Windows 7).  Where can I find the backup files?  Also, the ipad that I backed is no longer mine.  My wife has an iPad Air 2.  We want to get the content (especially the pics and videos) of the backup onto her iPad. Can we do this, even if the backup is from Tom's iPad, and my wifes ipad is Mary's iPad?

    You do not have the ability to pick and choose certain aspects of the backup file to restore to another device. A restore is either all or none. You can purchase 3rd party software to open a backup file and try to remove some parts of it. The backup files is a special SQLite file that needs special software to read. It is really intended just to use to restore an iOS device if necessary.  However, this support document will tell you where your backup file is located on the computer. Many of these are hidden files, so make sure you have the ability to view hidden files switched on. If you can't back up or restore your iPhone, iPad, or iPod using iTunes - Apple Support

  • Where does the banner info reside in the database

    When you create a page and check display banner to on, you can edit the banner by adding links etc.
    Does anyone know where the links are actually stored in the database ?
    null

    Hi Binosn,
    Thanks for your interest and reply.
    Wanted to know some more details regarding the document publisher.
    How does the backend push the report to the Gateway, is there also a queue maintained in the backend system which processes the report requests asynchronously or the Gateway report publisher pulls them synchronously or is there any component necessary to be installed in the backend system for processing reports?
    Is the document publisher feature a gateway feature or a Duet Enterprise specific feature?
    Please suggest some material for further details if available.
    Regards,
    Avishek.

  • Asha 501 - Where does the downloaded file saved?

    Hi,
    I've downloaded couple of files from the browser...I can see the files in the downloaded list of nokia browser..but cannot see the files in the memory card...
    I've downloaded ".jar" and ".jad" extension files..2 files..
    Plz help...

    Hi Singh,
    No they are not there in the downloaded folder. After downloading it prompted me to install it. I selected not to install it. I can see all the other files downloaded there but cannot see these two files.
    I again tried to download them into the browser..but this time it throws me error message 'error" and then exits...
    I guess its behaving like this because I selected the option "no" when it initially prompted me..
    I'm afraid that my phone gets virus if I connect to my system to I'm doing this way...Any other ideas....would be helpful...
    Thanks for your support...

  • I've update my iphone to the latest version thorough my itunes, but when i update my friend's iphone, it starts to redownload the whole thing again, so where does the update file goes after the 1st download?

    It seems that i have to redownload the whole 800+ MB of the update file again when i want to update my friend's iphone through my itunes, I've updated MY iphone to the latest version after very very long hours of download, and i tried updating a 2nd friend's iphone and it was very fast as the file has already been downloaded, but this problem occurs when i want to update a 3rd friend's iphone, can someone help?

    OS X:~/Library/iTunes/iPhone Software Update
    Windows XP: \Documents and Settings\username\Application Data\Apple Computer\iTunes\iPhone Software Updates
    Windows Vista & Windows 7: \Users\username\AppData\Roaming\Apple Computer\iTunes\iPhone Software Updates

  • Where does NWAS log file resides

    Hello friends,
    Can anybody tell the location of NetWeaver log file, that contains runtime exception and other information regarding execution of J2EE project.
    I am using SAP NAWAS 7.10
    Thank you

    Hi,
    the default trace files present in the cluster folder are very useful.
    c:\usr\sap\sid\JC<XX>\j2ee\cluster
    inside this you have dispatcher and server nodes. under each such folder you have the log files. These log files contain the trace files. dispatcher\log will contain how he dispatcher is going to look for the server nodes.
    server\log will contain the real time problem.
    reward suitable points

  • Where does the inactive object reside?

    Hi
    I am new to abap. I want to know when we create a object in the data dictionary, where is it stored?
    I do know that when we activate the object a same replica is created in the database having the syntax valid in the database.
    I just want to know if i have created one object which is not activated where it will be stored?
    Thanks,
    Sarbjeet Singh

    Hi Sarabjeet,
    When a program/objects  is created without saving till that time it is only in application sever and thereafter when are you pressing
    'SAVE' , then only it is stored to the backend database as inactivate version.
    While code changing (modifications) both inactive and active versions are stored in the database.
    When it is inactive(if you are executing it alone ), only you can use it not other system users(Note:  you can't use one inactive versions object in another active objects.)
    Once it is activated, all other users of same client can use your Program/objects.

  • Where does the console log reside?

    I am having to rewrite several scripts due to changes in Leopard.
    I cannot find the location of "console.log" - any help would be appreciated.
    -James
    Message was edited by: James Sprouls ACHDS

    foilpan wrote:
    on a related note, has anyone had any success generating asl queries via shell? i've looked into it but not that deeply. the asl.conf man page seems to indicate it's possible, but i'm not sure how.
    Try man syslog. I'm not sure where to look for all the keywords, but I got this to work first time:
    macbook:~ michaelc$ syslog -k Sender ntpd
    Sun Dec 2 17:07:20 macbook ntpd[24] <Notice>: time reset +1.377290 s
    Sun Dec 2 22:12:49 macbook ntpd[24] <Notice>: time reset +0.644079 s
    Mon Dec 3 15:40:53 macbook ntpd[24] <Notice>: time reset -0.302815 s
    Note that syslog with no arguments gives you everything

  • So Where Does the Scratch Files Go

    I see that, in the events folder, there appear to be render files etc.  They seem very light after playing around with a test edit.  Has anyone observed that FCPX doesn't create as many temp render files?

    It works the same in iTunes 11 as it did in previous releases.  The "Create New Version" process creates a new file in the indicated format, and leaves the original in place.  To find the newly created one you can either look at your Recently Added playlist, or look under the Artist.

Maybe you are looking for