How to install Java EE perspective in Eclipse?

0

I want to start studying Java for web (Servlets, JSP, EJB, Servlets and JSP). I already have installed Tomcat, JRE, JDK 7 and Eclipse Kepler Standard.

How do I configure Eclipse to add the JEE perspective via plugins? I need to add the Enterprise Edition perspective because I do not want to have more than one IDE installed on my computer.

In addition to the JEE perspective in Eclipse, what differences between SE and EE issues require more facilities for me to start development? For example: Do JRE and JDK remain the same? Each issue (SE and EE) has a different JRE and JDK?

    
asked by anonymous 10.03.2014 / 07:23

2 answers

4

There is not just one IDE

First, there are other good IDE options for Java development, with the best-known NetBeans and IntelliJ . But do not be afraid of Eclipse.

Proper Eclipse version for Java EE

To develop in Java EE, my suggestion is to go to the Eclipse downloads page and download the Eclipse IDE for Java EE Developers . This is just a shortcut to having Eclipse Standard + JDT (Java development tools).

Eclipse works with multiple perspectives

Although you have recommended "Eclipse Java EE", this does not mean that this version only allows you to create Java EE applications. Eclipse is an IDE that works with plugins.

A single installation can contain several of them and you can easily switch between different "environments" of development through so-called "perspectives."

Accessing the "JavaEE" perspective, Eclipse will show the panels commonly used for JavaEE development.

On the other hand, you could also install the Pydev plugin and switch to their perspective to develop in Python.

Finally, it is not necessary to have more than one installation. Just do not overload Eclipse with too many plugins as it may start to slow down.

Java SE and Java EE

In practice, there is no difference between developing for Java EE or Java SE. You will always create Java classes.

What changes are the APIs used, that is, interfaces that you use to implement a program or ancillary classes.

The biggest difference is that Java EE usually requires additional dependencies that do not come with the JDK but are available through an Application Server such as JBoss or Glassfish.

Application Servers

Note that Tomcat is not a complete JEE server, as it does not natively provide APIs such as JTA, EJB, JPA, JSF, etc.

Because of this, it is known as a Web Container , that is, a Web Application Server that only provides web-specific APIs such as JSPs and Servlets.

However, you can manually add third-party libraries to enable JEE APIs in Tomcat.

Additional Help

If you have questions about the basic installation and use of Eclipse Kepler, take a look at my article:

Installing, Configuring, and Using Eclipse Kepler

    
10.03.2014 / 12:29
0

Dude, I did not understand your problem with Eclipse EE. You will be able to work normally (as if you were using the Standard version) whenever you want. There is no problem ...

As this is your first language, I recommend you study the OO paradigm a lot and train the basic concepts of language. Only after that I think it is worth studying JSP, Servlets ... Until then you can use the same standard version ...

In both cases, I recommend these handouts: Java and Object Orientation: link

Java for Web Development: link

Take it easy that you can not learn everything in one go! rs

Good luck! : D

    
10.03.2014 / 12:21