Hi all ! To get the path of Java home. I write:
String path = System.getProperty("java.home");
String path = System.getProperty("jboss.home");
Use,
System.getProperty("jboss.home.dir");