获取tomcat安装地址

System.out.println(new File(System.getProperty("user.dir")));

System.out.println(new File(System.getProperty("catalina.home")));


运行结果为:   

F:apache-tomcat-6.0.37in
F:apache-tomcat-6.0.37


原文地址:https://www.cnblogs.com/luhuimin/p/3393895.html