English 中文(简体)
设置Eclipse,与Java EE合作
原标题:Set up Eclipse to work with Java EE

第一,我对EEE和Eclipse(在我生活中第二次与Eclipse合作:)说,我是新鲜的。

随后,我启动了由其他人创建的Eclipse项目。 它正在使用Java EE(一些EJB, Persistence AP......)。 这个项目无法运行,因此有错误汇编——我无法利用EEE图书馆——它喜欢:

“alt

它没有了解说明,也没有快速确定。 另外,该项目还包括Maven Dependencies(我设法安装了Eclipse的Maven plugin)和所有从属人开设的班子在法典中都发出警告。 与此类似:

alt text

How do I set up Eclipse to work with this EE project to be able to compile and run it ? Thank you for answers.

EDIT: I m using Eclipse 2.0.0.2 and I have to use it - its the Rational Team Concept version of Eclipse and version above 2.0.0.2 are not compatible with RTC server.

问题回答

To the point, you ve got to include the Java EE API in the buildpath of the project. The Java EE API is in essence the application server, such as for example Oracle Glassfish as you seem to already have.

在Eclipse,在正确的底层箱子上开放Servers。 如果有的话,你需要补充。 Rightclick where and Options New。 izar人应该说自己。 如果对Sun或Oracle玻璃鱼没有选择,那么你会单独安装Eclipse plugin。 在新的Eclipse版本中,你可以通过点击额外服务器改编机/,在izar顶点击,然后选择。 页: 1 如果在旧的Eclipse版本中,你需要按照的指示人工安装。

一旦把服务器并入Eclipse(或实际上已经安装了一台),那么你就应当把动态的网络项目打上正轨,并排在有针对性的运行时间<>。 选择综合服务器。 必要时重新启用。

建议汇编

  1. make your Java level 5 or above by Window > Preferences > Java Compiler set drop-down to anything above or equal to 1.5.
  2. Clean your project by clicking on Project > clean...
  3. Right click on the top folder of the project and Maven > update project configuration and Maven > update project configuration

To build

右侧点击项目顶侧,run as. > maven Clean,然后运行,如.和; ......

希望这一帮助

BTW,为什么不使用Eclipse 3.6.x或新版本?





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...