Reputation: 4573
Title is pretty clear for my question, suppose I deployed an java application in tomcat/glassfish now for some reason I need java path used by respective server so is there any way to get java path which is used by server?
Upvotes: 0
Views: 39
Reputation: 418
You can get the java.home
System Property, which should be exactly what you want:
System.getProperty("java.home");
Upvotes: 1