查找 Eclipse 构建的类文件
当 Eclipse 构建我的工作区时,我假设它会创建 Java .class 文件。还应该部署什么到我正在运行的 JBoss AS 上?
你知道在哪里可以找到 Eclipse 临时创建的这些类文件吗?
When Eclipse builds my workspace, I assume that it creates Java .class files. What else should otherwise deploy to my running JBoss AS?
Do you know where I can find these class files that Eclipse temporarily creates?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
右键单击您的项目,然后单击属性。现在单击“Java 构建路径”部分,您将能够在“源”选项卡上查看并设置默认输出文件夹。我相信 Eclipse 默认为“bin”
,但很可能只是将这些内容复制到 JBoss 中。您需要将应用程序部署为 .war 文件,该文件基本上是具有不同扩展名的 .zip。在“蚂蚁战争任务”上搜索一些示例和文章。
Right click on your project, and then click on properties. Now click on the Java Build Path section, and you will be able to see and set the Default output folder on the "Source" tab. I believe Eclipse defaults to "bin"
More than likely though, it won't be enough to just copy these over to JBoss. You'll need to deploy your application as a .war file, which is basically a .zip with a different extension. Do some googling on "ant war task" for some examples and articles.
正如 gregcase 所说,您想要部署一个 .war 文件,如果您希望 Eclipse 为您执行此操作,只需右键单击该项目,选择“导出”,然后在“web”下选择“WAR 文件”。
将此文件复制到 $JBOSS_HOME/server/default/deploy/ 即可设置。
As gregcase has said, you want to deploy a .war file, and if you want Eclipse to do this for you, just right-click on the project, select "export" and under "web" choose "WAR file."
Copy this file to $JBOSS_HOME/server/default/deploy/ and you should be set.