How to set source for java libraries in Eclipse?

How to set source for java libraries in Eclipse?

+3
source share
4 answers

This happens automatically if you configured the JDK, not the JRE.

Usually, when you start eclipse, it installs the JRE that was used to start eclipse. Usually you want to override this with the JDK to get the source. For this:

  • First make sure you have JDK installed (not just JRE)
  • Run eclipse
  • Go to window-> Settings-> Java-> Installed JRE
  • Click Add ...
  • Select "Standard Virtual Machine" and click "Next ..."
  • Click "Directory ...", select the JDK installation directory and click "Ok"
  • Click Finish
  • , JDK
  • "Ok",

.

+2

, , ctr + , , " " , , .

"src.zip" JDK.

+1

, :

: . JDK. (Src.zip)

  • Java
  • Ctrl + .
  • , " "
  • src.zip. ( JDK)
  • !
+1
source

What do you mean with a java source? Package java.lang? Because you don’t need to “install” them. You must create a new Java project (any Java project). Could you describe your problem in more detail?

0
source

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


All Articles