Amogh
Amogh

Reputation: 4573

Any way to get java path used by tomcat/glassfish in web application

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

Answers (1)

Jürgen
Jürgen

Reputation: 418

You can get the java.home System Property, which should be exactly what you want:

System.getProperty("java.home");

Upvotes: 1

Related Questions