Questions tagged [properties-file]

A .properties file is either a simple text file or an XML file containing pairs of keys and values. Java and related technologies frequently use .properties files to store configuration information.

Properties files can also be used to store Strings for Internationalization and Localization and error messages.

and related technologies frequently use properties files.

Further Reading:

1316 questions
0
votes
1 answer

convert properties file to hashmap in spring

I need to load all of the content of my properties file which looks something like this: some.properties key.1=this item needs to be loaded onto a hashmap key.2=this item also needs to be loaded onto a hashmap key.3=this item also needs to be…
skrimpy
  • 1
  • 2
0
votes
1 answer

Spring XML + properties configuration to Java Class

I have the following configuration piece on my xml file: And here is my properties file: appKey=abc appSecret=def On my spring classes I get some of the…
marcelorocks
  • 2,005
  • 3
  • 18
  • 28
0
votes
2 answers

How to save and read Latin1 charecters in java properties file

I am trying to save Latin1 character "ÀßÖ" in test.properties file. But it storing like "\u00C0\u00DF\u00D6". But i am expecting store exact values. Any help as possible.
Ramesh John
  • 98
  • 1
  • 4
0
votes
1 answer

Android .properties file change values

I have an android project and I'm using a custom .properties file, that I store in in a packet together with a class with which I can access it. While I run the programm I need to change some values of the .properties file but I can't access it as I…
gimbo
  • 67
  • 1
  • 18
0
votes
1 answer

Configuring a .Properties file in Google App Engine

I have tried to use a Properties file with Google App Engine. I can read a Properties file with Google App Engine. But i can't write to a Properties file because FileOutputStream is not supported by Google App Engine's Java runtime environment. Is…
Bishan
  • 15,211
  • 52
  • 164
  • 258
0
votes
0 answers

How to make JAR access properties files outside of it?

I made an EJB project and put it in the lib folder of a Dynamic Web Project on eclipse. This jar (the EJB) uses 2 properties file. Those 2 are supposed to be outside of the .jar (there are values written on them on runtime and no option to use DB).…
Xanathos
  • 598
  • 3
  • 15
  • 31
0
votes
1 answer

where to store .properties file for use in c++ dll

I created a .properties file that contains a few simple key = value pairs. I tried it out from a sample c++ console application, using imported java classes, and I was able to access it, no problem. Now, I am trying to use it in the same way, from a…
user228058
  • 465
  • 1
  • 7
  • 22
0
votes
1 answer

How to package a properties file and JAR inside an EAR?

I'm made a Java application that access a web service, gets data, and updates a properties file once, in order to do all it's operations (the app does not access the web service after this call, and keeps it in the properties file instead). It has…
Xanathos
  • 598
  • 3
  • 15
  • 31
0
votes
1 answer

Change values of a properties file in java

I have a properties file in my application which has two properties (username,password). I want to change the value of these properties when I'm pressing a Button I have on my gui ! The problem is that my properties file is stored in a package of my…
gimbo
  • 67
  • 1
  • 18
0
votes
1 answer

Best way of embedding a Java Properties file in a JAR

Could anyone give me any pointers on how to embed a properties file inside a JAR. The JAR is to be added to the class path and accessed by another external JAR. Process: 1) JAR1 calls getConfig method in JAR2 2) JAR2 loads the properties file from…
Adam
  • 532
  • 3
  • 11
  • 22
0
votes
1 answer

How include properties file for internalisation?

I am working on a node JS project with the Kraken framework. Then I use Dust templating and makara for the internationalization. But actually, I have one .properties file for each .dust file and i would like include a main.properties for each other…
0
votes
2 answers

jsf 2.2 get the path for a propertie file

i want to read out from a propertie file in my jsf 2.2 project. i use eclipse kepler. i try to use this in my java-bean in the folder src with the package de.exanple. The file of the bean is called PageServiceBean.java. The propertie file is in the…
marius0114
  • 145
  • 4
  • 18
0
votes
1 answer

properties variable setting with velocity

During my searching, I would like a confirmation : I would like to set a properties variable to velocity variable kind of : #set($infos.get("trackerData").get(0).get("info_suivi")=tracking.status) My properties file contains…
Ale
  • 155
  • 2
  • 4
  • 20
0
votes
3 answers

Maven Properties Plugin

I am using Maven Properties plugin to load the properties from a properties file. My Project is a multi module project with EAR and EJB modules with there respective pom files. And there is a parent pom. I am getting an error if I dont keep the…
user2791546
  • 199
  • 1
  • 1
  • 3
0
votes
1 answer

Property file InputStream ok in Websphere but null in Tomcat

Though I am using Websphere majorly but I want to use properties file in a way that works in Tomcat as well. I am initializing properties object in a static block for I want to use the properties object in static methods. public class Utils { …
user2918640
  • 473
  • 1
  • 7
  • 25