Category Archives: Eclipse IDE

Add Java Docs to Eclipse/Source API

1.JAVA DOCS

  1. Extract the zip file in your local directory.
  2. From eclipse Window --> Preferences --> Java --> "Installed JREs" select available JRE (jre6: C:\Program Files (x86)\Java\jre6 for instance) and click Edit.
  3. Select all the “JRE System libraries” using Control+A.
  4. Click “Javadoc Location”
  5. Change “Javadoc location path:” from “http://download.oracle.com/javase/6/docs/api/” to “file:/E:/Java/docs/api/”.

2. SOURCE FOR APIs

  1. Go to your JDK installation. (C:\Program Files\Java\jdk1.8.0_66 for me).
  2. Unzip the src.zip file (becomes C:\Program Files\Java\jdk1.8.0_66\src\ for me).
  3. In the Eclipse editor window: CTRL + Click on a java.lang library class. (something like String).
  4. Eclipse will complain Source not found and tell you that you don’t have the source.
  5. Click Attach source -> External Location -> External Folder.
  6. Find your source folder (C:\Program Files\Java\jdk1.8.0_66\src\ for me).
  7. Click OK -> OK.
  8. Enjoy.

Read more …

Eclipse Shortcuts for Increased Productivity

Top 30 Eclipse Keyboard Shortcuts for Java Programmers

Ctrl + Shift + F: Automatic format code.

See more from source:

https://www.tutorialspoint.com/eclipse/eclipse_shortcuts.htm

https://www.linkedin.com/pulse/top-30-eclipse-keyboard-shortcuts-java-programmer-jayveersinh-solanki

https://dzone.com/articles/10-best-eclipse-shortcuts

https://dzone.com/articles/effective-eclipse-shortcut-key

https://www.javacodegeeks.com/2011/09/eclipse-shortcuts-for-increased.html

Core Java in 25 hours

Successful Blog: Java- write once, run away!