nc 一种读取配置文件的方法:

        /**
	 *  配置文件放在 nchome  ierp\\bin 目录下
	 */
	private static final long serialVersionUID = -8863109079333677894L;
	private static String ip ;
	private static String fileName = RuntimeEnv.getInstance().getNCHome()
	+ File.separator + "ierp" + File.separator + "bin" + File.separator
	+ "文件名.properties";// 取得属性文件的路径

	public static String getnc56ip() {
		try {
			if (ip == null) {
				FileInputStream input = new FileInputStream(fileName);
				Properties properties = new Properties();
				properties.load(input);
				ip = properties.getProperty("你的key");
			}
		} catch (Exception e) {
			//Logger.error(e.getMessage(), e);
		}
		return ip;
	}