1. Add a properties file to intelliJ's classpath stackoverflow.comI feel like a schmuck for asking this, but I'm tired of guessing. I'm running a simple java program from the IntelliJ IDE using the Run->Run menu. No problem, it works ... |
2. Is there any way to change a properties file that is in my classpath? stackoverflow.comI have a properties file that is in my classpath. My requirement is to change some properties in this file based on some inputs I get from arguments. The nature of ... |
3. Reading properties file in classpath coderanch.comI spent like a month researching once this issue as it relates to J2EE jars and it can be frustrating. You can put the properties file inside a JAR, but then the JAR must be specifically named in the class path if it is being used as a utility jar and not the main application. I tend to use getResourceAsStream() more ... |
4. Class-Path in manifest not picking up properties file coderanch.comI currently have a jar file which requires a properties file (jndi.properties) on the classpath. The properties file is in the same directory as the jar file, and the Class-Path: attribute of the manifest file contains the value '.', as well as all the other library dependencies. However, for some reason this file isn't being found on the classpath. Does anyone ... |
5. can't find correct classpath for the required properties file coderanch.com |
6. Set a property file to the classpath programmatically coderanch.comHi All, I have a problem here.I am using Third Party libraries in my application.A class in that 3rd party jar uses a prop file like below.: A a_class = A.class; InputStream is = a_class.getResourceAsStream("/password.properties")); Clearly it wants the password.properties under WEB-INF/classes ie at the classpath's root. If I put it under WEB-INF/classes,my problem gets resolved. However,the only problem here is ... |
7. Reading from a properties file for path declared in classpath coderanch.com |
8. Adding property files on classpath forums.oracle.comHi guys Sorry if I ma putting this question on wrong forum.I have four property files and one xml file which have to be kept together in one place and those files should be present directly on classpath.I don't want to use jars as an option because those property files are editable.So how can I place my property files on classpath.I ... |
9. Add property file to classpath during runtime forums.oracle.comwhat do you mean by "add to classpath"? do you mean "put this file onto the existing classpath" or "add a new entry to the classpath that contains this file"? presumably the latter, in which case I'd suggest you write a simple classloader that extends URLClassLoader, and make use of the protected addUrl method..... but there's probably a better solution. it's ... |