ok, cmq ho fatto quel metodo l'ho scritto 200 anni fa, non mi piaceva un granchè.
al momento ho fatto semplicmente così:
codice:@FXML public void initialize() { try { Properties props = new Properties(); props.load(getClass().getClassLoader().getResourceAsStream("info.properties")); String version = props.getProperty("app.version"); System.out.println(version); } catch (IOException e) { GenericDialog.showDialog(e.getMessage(), Alert.AlertType.ERROR); } }

Rispondi quotando