Eclipse 中运行时目标的 StandardServletContainer
对于通用项目,可以将 JRE_CONTAINER
添加到类路径,对于 Web 容器服务器运行时是否可以这样做?
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
For a generic project its possible to add a JRE_CONTAINER
to classpath, is something like this possible for the Web Container Server Runtime?
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
是的,我相信是这样。我正在运行 Eclipse Galileo,可以通过以下方式更改 JRE:
Properties
Java Build Path
Libraries
选项卡或者,您还可以手动更改
.classpath
文件。最后,您可以使用 Maven 等构建管理器来管理所使用的版本/库。Yes, I believe so. I'm running Eclipse Galileo and I can change the JRE by:
Properties
Java Build Path
Libraries
tabAlternatively, you could also manually change the
.classpath
file. Finally, you could use a build manager such as Maven to manage the versions/libraries used.我不确定你到底想做什么,但你可以通过 Java Build Path > 添加配置服务器的 jars图书馆>添加库>服务器运行时。
I'm not sure exactly what you're trying to do but you can add the jars of your configured server via
Java Build Path > Libraries > Add Library > Server Runtime
.对于处理 WTP(Web 工具平台)的项目,您可以看到这些条目:
或这里:
他们可以来带有定义:
也可以在与 JRE 警告的关系中找到。
For projects dealing with WTP (Web Tool Platform) you do see those kind of entries:
or here:
They can come with a definition:
Found also in relation with JRE warnings.
据我了解你的问题,你想更改jvm版本。
您可以通过转到首选项>来做到这一点爪哇。您可以在那里更改jvm版本。这将影响整个工作区。据我所知,不同的项目不能有不同的java版本。
AS far as i can understand your question, you want to change the jvm version.
This you can do by going to preferences> java. there you can change the jvm version.This will take affect on the whole workspace. As far as i know , you cant have different java versions for different projects.
不确定你想要什么,但你可以在运行时声明一个库“构建路径>库>添加库”,或者你可以声明你自己的变量“构建路径>库>添加变量”,它可以包含jar你想要...
Not sure what you want but you can declare a Library to you're runtime "Build Path > Libraries > Add Library" or you can declare your own variable "Build Path > Libraries > Add Variable" which can contain the jars you want...