Where should I place my properties file

Hello,
I am working with eclipse. I have created a class that reads a set of properties from a .properties file. Do you know in which folder should I place my file in order it gets read by my class.
Sitomania

I have created a class that reads a set of properties from
a .properties file. Do you know in which folder should I place my
file in order it gets read by my class.Anywhere in the classpath.

Similar Messages

  • Where to include the jpos.properties file?

    Hi,
    We have a code that needs to be run. I have used the netbeans to do it. I understand that netbeans has its own environment variables that makes the application independent. The code works in netbeans but when i try to run it in the command line, this appears:
    "jpos/res/jpos.properties not found"
    As i had traced it, the directory(where jpos.properties resides) which i added in the Libraries was not copied in the dist folder. It says that it "...is a directory or can't be read. Not copying the libraries."
    It is very important that this jpos.properties be copied since there are a lot of abstract classes used in the code.
    Does anyone know where i should include this jpos.properties file?
    thanks. :)

    I've already made it run through the command line. I just included the jpos.properties in the jar package.
    Thanks to all the replies.
    Apology to someone who was bugged due to my crosspost.

  • Where should I place my preloaders?

    Hi all,
    Would like to seek advice on where should I place the
    preloaders.
    I have a banner swf, menu swf, main content swf, and intro
    swf. where should i load the preloader? on the main MC that will be
    calling these swf? or each swf have their own preloader? that would
    look rather weird.
    Of should I just merged banner, menu, main content and intro
    altogether? How do i do that? I am lost as to should I separate
    them out or put all eggs in 1 nest. My main content will have
    transitions between each sections.
    since my menu is separate from the main content, how do I
    point them to get the main content to change section whenever user
    click on 1 sections?
    I am so lost. Please advise. Thanks

    Hey X, sorry I haven't responded of late, working elsewhere.
    Let me address some of the questions you've had above.
    1) I'm very sorry, I see that I missed that assignment when I
    typed this out, within the loadFile function the correct call
    should be: mcl.loadClip(src, clip);
    2)the code is AS2, and yes it is legal coding. first, we're
    setting up parameters for our function here, and then we pass them
    this information when we call the method that we've set up, so that
    we can 'feed' information to the function that then uses it to
    perform it's job. the variable declarations in this case here are
    called 'strict typing' (ie. src:String, file:String, ...) and it's
    just a way to define variables of a particular 'type', it isn't
    necessary to follow the variable names with the type declaration,
    but I thought that I would include it here so that it made sense to
    you and so that you could see what type of variables need to be
    passed to the function. the varaibles MUST be passed to the
    function in the order that they are listed.
    3) yes you've got this all right :) The onLoadInit handler
    fires when the loaded clip becomes instantiated on the timeline
    (eg. available), previous to this point you could NOT say something
    like 'clip.gotoAndPlay(10);' because the loading clip was not yet
    available for the call, and it would fail. So you can use this
    handler to tell the loaded clip to 'do something' if you need this
    type of functionality, like say for instance that you need the
    loaded swf to go to a certain 'page' depending on what button the
    user pressed, this handler would be a way for you to pass that
    informtion along, and tell the loaded clip to goto the correct
    position, handy ;)
    As to the last question in 3, I touched on that above, my bad
    4) I was just talking about the name of the swf file being
    called 'dummy'.
    5) No, put everything in frame one, but on a different
    layers. Place your preloader on the top layer, and the 'blank' MCs
    (to load into) on layers below.
    OK, on to your last post.
    Yes, the way it's set up here the preload bar would run to
    100% for each load and then start again for the next one, it also
    has a text instance that tells the use what is being loaded each
    time. This could all be changed, and you can certainly use you own
    preloader instance, however you will need to reconstruct the method
    that is handling the progress. See if you wanted ALL of the
    instance your loading to equal 100% of your loader bars progress
    (for the first load anyway) you can't calculate the total bytes of
    all files previous to initiating the load, so you have a problem
    here. One method might be to 'break up' the load and apportion the
    progress indicator evenly for each item needed in the intital site
    loading. what I mean by that is, if you have 4 items that are
    needed to load, then each item would 'move' the progress bar by
    25%, so that when 100% of the first item is loaded, the progress
    bar is revealed by 25%, then the second load reveals 50%, and so
    on. It will just take a little math to change the code to handle
    the progressions. Now I would suggest that you NOT animate the
    masking rectangle by frames, I would do this with code adjusting
    the _x position of the mask by an amount that has been calculated
    with the loading code. also this method will have to accomidate,
    both multi-loads and singlular loads so you'll need to use another
    parameter to define how the preload indicator progress is 'broken'
    and into how many parts. This would end up in the math that defines
    the system that controls the indicator.
    OK this should be enough for you to think about for now
    :)

  • Where should I place the web service client implementation?

    Hi,
    I created a web service client, and some java classes are automatically generated like stub, servicelocator, proxy...
    I wrote the client code to access and invoke a web service.Where should I place this code.
    Thanks.

    pls see Left outer join in Infoset

  • Where should i place the akarta-regexp-1.3.jar

    I'm coding on linux for jakarta-tomcat server..
    I'download jakarta-regexp-1.3.jar file from jakarta-apach site for validate a email adress..
    But i did not find any doc to telle me where put this file..
    I put it in the jre subdirectory of my sdk directory but the javac compiler
    do not recognize this part of my code import org.apache.regexp.* ..I try the lib directory of the tomcat and it was same..
    Where should i put this jar file ..
    Could some body help me ?

    DON'T CROSS POST, EEJIT:
    http://forum.java.sun.com/thread.jsp?thread=461653&forum=33&message=2116135
    http://forum.java.sun.com/thread.jsp?thread=461654&forum=45&message=2115945
    http://forum.java.sun.com/thread.jsp?thread=461653&forum=33&message=2115943
    http://forum.java.sun.com/thread.jsp?thread=461652&forum=1&message=2115941

  • Where should I store the collatoral files that are associated with photos stored in lightroom?

    Where should I store the collatoral files that are associated with photos stored in lightroom? Items such as pdf files, word documents, etc. How should I connect them to each other so I can find both the photo and the related data?

    Lightroom itself will not help you with pdf, word, etc.
    However, there is a plugin you can use called AnyFile which will allow you to manage these documents in Lightroom (by assigning keywords and other metadata) so that you can search for all documents (photos, pdf, word, music, powerpoint, etc.) with given metadata.
    Because you do this via metadata, it doesn't matter where you put these files. Put them anywhere you want.

  • Where should i place ASA?

    Hi
    Where should i place an ASA firewall in my network? Should i connect ASA outside interface directly to the ISP?
    Can ASA 5585 perform BGP?

    "Where should i place an ASA firewall in my network? Should i connect ASA outside interface directly to the ISP?"
    Yes outside interface, assume that is where your primary internet circuit is terminated.
    You don't necessarily need to peer over BGP just for sake of getting internet connection from your ISP.
    Yes, ASA can perfrom BGP.
    Hope this answers your question.
    Thanks

  • Where should I store the rendered files?

    (My Color projects are in "Documents")
    Where should I store the rendered files?
    On my external HD with my FCP media? Or on my Hard Disk is fine ?
    Can I calculate that 1 Go of DV NTSC = 1 Go of rendered file in 10 bits?
    Many thanks

    this came up as a topic at a recent FCPUG seminar.
    Since the dawn of time, it is recommended practice to keep your media off the application drive.
    The more disks you have spinning, the better the chance that you will get the data throughput rates that will support the demands of your media. Whether that's a RAID or a JBOD, its up to you how you value your time and assets.
    I keep things as 'external' as possible, mostly because clients are anxious to get the material back, but I'd have to keep moving stuff around just to maintain the space. And I still have to get merciless with all the temporary FCP render stuff.
    jPo

  • Where should I place music files?

    1) If I download an MP3 where should I save the file? I'm looking to play these with iTunes.
    2) I currently see a file that is called "automatically add to iTunes" among others drilled down into the music folder. Is this the quickest way?
    3) I also have some music files witin the finder showing up under "all my files". What should I do with these?
    Sorry, PC guy coming over to the dark side recently and not to familiar with my MBA yet. Thanks!

    flag8r77 wrote:
    1) If I download an MP3 where should I save the file? I'm looking to play these with iTunes.
    2) I currently see a file that is called "automatically add to iTunes" among others drilled down into the music folder. Is this the quickest way?
    Yes. You can make a shortcut to that folder and put it on the desktop.
    3) I also have some music files witin the finder showing up under "all my files". What should I do with these?
    Don't do anything with them.
    If you are using the Search at top right of a Finder window, that simply finds files anywhere.

  • Where to place ResourceBundle properties files

    I have written a servlet that will serve content in different languages
    depending on the user's browser settings.
    The problem is my servlet cannot find the resource bundle properties fiel
    even though I put it in the server classes directories.
    Namely:
    /weblogic/myserver/servletsclasses
    /weblogic/classes
    /weblogic/myserver/serverclasses
    Can anybody tell me where to put my resource bundle properties files??
    regards
    EM

    "Ee-Ming" == Ee-Ming Toh <[email protected]> writes:
    Ee-Ming> I have written a servlet that will serve content in different languages
    Ee-Ming> depending on the user's browser settings.
    Ee-Ming> The problem is my servlet cannot find the resource bundle properties fiel
    Ee-Ming> even though I put it in the server classes directories.
    Ee-Ming> Namely:
    Ee-Ming> /weblogic/myserver/servletsclasses
    Ee-Ming> /weblogic/classes
    Ee-Ming> /weblogic/myserver/serverclasses
    Ee-Ming> Can anybody tell me where to put my resource bundle properties files??
    First of all, it would be useful if we knew what version of WebLogic you're
    using. There's considerable differences between versions.
    In general, if you have a standard WAR structure, you're better off putting
    properties files in the "WEB-INF/classes" directory of your WAR structure. If
    you do that, you have a chance of being able to redeploy the changed properties
    files without having to restart the server.
    ===================================================================
    David M. Karr ; Java/J2EE/XML/Unix/C++
    [email protected] ; SCJP; SCWCD

  • Where should I place graphic files?

    Setting up a new machine with external Sonnet drives. Should I place non time code files such as graphics, Motion files, music, etc. on the external drives? Or is it OK to place these files on an internal drive? Also, best place for render files, auto save, and thumbnail folders? Really appreciate any input.
    Thanks again,
    Tom

    There is no single correct answer to this. I store graphics files on a non-boot internal drive volume, inside a folder at the top level named, imaginatively Graphics, sub-foldered by project names.
    Likewise, at the same level, I have a folder named Music Cuts, and, also arranged in folders by project names, individual folders with the music inside. I also have a folder named Audio, which contains, inside project folders, VOs and SFX.
    I hope that makes sense.
    Periodically, I will drag the Graphics, Music, and Audio folders to a CD (or DVD, when the folders get too large for a CD), along with the FCP Projects folder from the boot volume. (As with the others, project files are organized in folders named with the project names), and burn the disc for archival purposes. I label the disc with the date and the names of the top level folders.
    From time to time, I will delete all aged files and folders that haven't seen any use in a good long while. By that time, I have several copies of them on several discs.
    Many years ago, I did the same thing, but back then I was saving to a 3.5" floppy. That's how old my practice is.

  • Where could i place the RTF file (locally or in server custom top)

    Hi guys,
    I am very new to xml report publisher and I completed one RTF template successfully and i am accessing oracle apps through my client instances which is in USA.
    I dont knw where to place the RTF file whether in my local system or in the custom_top.
    please reply immediately if any one knw,I hope that i will get immediately reply and its very urgent task to complete.
    Regards
    Praburam s

    Hi,
    I knw that oracle apps have separate res as XML Publisher Administrator.
    Just I want to knw in Template tab we should attach the RTF.My question is that where should i browse for that RTF(in template tab) to my local machine or server custom top)..
    Can i save my rtf file as locally or in server custom top.
    I hope that u can get my question..
    Please reply immediately.
    Regards
    Prabu

  • For WebLogic 5.1, where should I put my class files for my JavaBeans?

    With JBuilder4, I have built an application with JSP and a few Java Beans (Those JavaBeans are instantiated in those JSP files). There are no EJBs. The package name is called 'onlinetrade'. I have tested the application on JBuilder's web server, it works pretty well.
    Now I am moving this application to WegLogic 5.1. I have encountered a problem with WebLogic 5.1
    and do not know where I should place my JavaBean class files --
    Originally, the JSP files for my application are in package path-- ..onlinetrade\jsp
    and the class files for my beans are in the package path -- ..onlinetrade\jsp\bean\*.class
    Now, with WebLogic 5.1,
    1) I have put my JSP files in
    C:\weblogic\myserver\public_html\onlinetrade\jsp
    2) I have created subdirectory and put my bean class files in
    C:\weblogic\myserver\classfiles\onlinetrade\jsp\bean
    When I started weblogic and the first page - login.jsp page can be up and accessed. But when I login and forward to another JSP page called 'controller.jsp', where a bean is instantiated, I got the following error
    Compilation of 'C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java' failed:
    C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java:210: cannot access jsp_servlet._onlinetrade._jsp.registerBean
    probably occurred due to an error in /onlinetrade/jsp/controller.jsp line 53:
    registerBean registerBeanInstance = new registerBean();
    I know the javac is working, and a java file is created upon the JSP page, but the problem is -- the bean class files cannot be found!!!
    Where should I create the package path and put my bean class file so that my JSP pages can pick them up?
    Any help is greatly appreciated!
    Thanks.
    --Tim

    I have mine in WEB-INF/classes

  • Where to store a custom properties file in an EJB 3 deployment

    In a web application I can store my own properties file in WEB-INF. However a EJB 3 deployment does not have such a directory.
    Where is the correct place within [an ejb 3 jar file] to store my properties file, and how do I retrieve it. (Do I need an absolute url or just a url that checks the classpath?)
    Thanks,
    nat

    For JBoss they use something like :
    String filename = System.getProperty("jboss.server.home.dir") + "/conf/application.properties";
    It will be located in jboss/server/[server-name]/conf/application.properties

  • Where should I put the configuration file?

    Hi
    I'm developping a web application using IBM's websphere as my application server. My application reads configuration information from a properties file.
    My question is: what's the right location to put the configuration file? Should I provide a fixed path, or should I just put in the webserver's execute directory?
    Thanks in advance
    Pedro

    I'd consider what the configuration file is cheifly
    tied to.
    If there are only a small number of parameters then
    put them into the web.xml as initial parameters and
    access then via servlet cotext.
    If they are tied to some class, then I'd put the
    properties file next to the relevant class file and
    use getClass().getResourceAsStream().
    If they relate to the web-app as a whole, I'd put
    them in the WEB-INF directory and access then using
    getServletContext().getResourceAsStream("WEB-INF/xxx.p
    roperties");The one thing you definitely shouldn't do is use an
    absolute file path.Thanks for the reply.
    Forgive my ignorance, but how can I access getServletContext from my web application?
    Thanks again!

Maybe you are looking for

  • How can I use Flash_Slideshow.SWF in my Flash CS4 document?

    Hi, I have downloaded a nice Flash Slide show file (.SWF) and would like to use in my Flash CS4 document without any modification (as it is). How can I use it? There is no .Fla file this Slide Show. It just works using xml file. Please do help.

  • Select query written on view giving dump

    Hi All, I have written the following query on COAS view in my code:       SELECT aufnr bukrs INTO TABLE gt_aufnr         FROM coas           WHERE                 aufnr IN r_aufrm AND                 auart IN s_auart AND                 autyp = c_aut

  • Where is my offline storage in my pc?

    where is exactly offline storage in my pc ?

  • Files compatible with eprint

    I just set up my 6100 for eprint.  Is there a list of file types which eprint will convert to be compatible with my 6100? I know PDF and Word files work, but several others have I tried do not. This question was solved. View Solution.

  • Nokia N8. Anna, how do you reinstall it, if you've...

    I can't use Belle very well, like I said in a previous topic with having eyesight issues. I mean come on, I'm told the date is now grey on black..A small issue I know but other things are starting to strain the eyes a bit. Someone please tell me ther