InputStream in = this.getClass().getResourceAsStream("/Apertium/Client/ApertiumClient.properties"); Properties props = new Properties(); props.load(in); serv=props.getProperty("Apertium.IPRemote"); this.protocol=props.getProperty("Apertium.config.webapp.protocol");