首页 > 解决方案 > 如何获取 Websphere 服务器运行时基本目录路径

问题描述

我正在开发一个 Eclipse 插件,我需要使用我的插件访问从 JSP 生成的 .class 文件。我能够使用以下代码获取 Tomcat 运行时基目录

TomcatServer s = (TomcatServer) ServerCore.getServers()[0].loadAdapter(TomcatServer.class, monitor);
s.getRuntimeBaseDirectory();

有什么方法可以像这样访问 Websphere 服务器运行时基本目录吗?

标签: javaeclipseeclipse-pluginwebsphere

解决方案


推荐阅读