有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java共享eclipse/springsource工具套件服务器启动配置

我有几个启动配置,通过保存。启动文件到我的项目。该项目是一个spring MVC网络应用程序

启动文件具有VM参数和类路径条目,它们取决于vFabric tc服务器的安装位置和JVM的安装位置。我想与我的团队分享这些启动配置,所以我想知道如何用eclipse变量替换这些完整路径,以便任何人都可以使用这些配置,而不管springsource工具套件安装在哪里

有必要的变量吗?它们是什么?提前谢谢。全部。启动文件如下所示:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.vmware.server.tc.launchConfiguration">
<booleanAttribute key="com.springsource.sts.server.insight.ui.insightConfigured" value="true"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/spring-insight-instance/bin/insight-bootstrap-tcserver-1.8.3.RELEASE.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_05&quot; path=&quot;2&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/tomcat-7.0.27.A.RELEASE/bin/bootstrap.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/tomcat-7.0.27.A.RELEASE/bin/tomcat-juli.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Program Files/Java/jdk1.7.0_05/lib/tools.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;C:/Users/Chris/Documents/springsource/vfabric-tc-server-developer-2.7.0.RELEASE/spring-insight-instance/lib/aspectjweaver-1.6.12.M2.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_05"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="start"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dcatalina.base=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance&quot; -Dcatalina.home=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\tomcat-7.0.27.A.RELEASE&quot; -Dwtp.deploy=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance\wtpwebapps&quot; -Djava.endorsed.dirs=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\tomcat-7.0.27.A.RELEASE\endorsed&quot; -Daspectj.overweaving=true -Djava.awt.headless=true -Dgemfire.disableShutdownHook=true -Dinsight.base=&quot;C:\Users\Chris\Documents\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance\insight&quot; -Xmx1024m -XX:MaxPermSize=256m -Xss192k"/>
<stringAttribute key="server-id" value="VMware vFabric tc Server Developer Edition     v2.7"/>
</launchConfiguration>

共 (1) 个答案

  1. # 1 楼答案

    在Eclipse中,类路径变量在窗口中配置首选项Java构建路径类路径变量。在那里配置了适当的变量后,按照here提供的说明进行操作

    希望这有帮助