How to integrate Java EE documents / APIs in Eclipse?

I want to configure my Eclipse installation so that when I use the content help and hover over / checking the method there, it shows me the Java EE documentation. How to integrate it?

+4
source share
1 answer

You will need to find your documentation and server JAR server, and then add the JAR to the installed JRE and attach the documentation. This answer assumes that you have already installed your server and integrated it into Eclipse.

Documentation

You can link documentation in several ways:

, , .

Servlet JAR

JAR . JAR , . :

  • Tomcat: lib/servlet-api.jar
  • Glassfish: modules/javax.servlet-api.jar

. , , JAR.

JAR JRE Eclipse

JRE :

  • Eclipse Window, Preferences.
  • jre, Installed JREs.
    • , Java Installed JREs.
  • Java , jre7.
    • Standard VM.

:

  • Edit.
  • JRE system libraries Add External JARs....
  • JAR Open. .

JAR Javadoc Location.... .

  • , Javadoc URL ( ).
  • Javadoc location path Browse , , package-list index.html.

JAR ZIP

  • , Javadoc in archive.
  • Archive path Browse (, /home/docs/jdk-6-doc.zip).
  • Path within archive Browse , package-list index.html (, docs/api).

  • Validate, , .
  • OK, Finish , , OK.
  • , Eclipse. =)

+3

Source: https://habr.com/ru/post/1540549/


All Articles