Repository navigation
Setting up Java development environment
ferng edited this page Jul 25, 2017
·
25 revisions
I had too much grief with STS, it stomped all over my repositories (filling them up with maven shit like configs and local sources, everything took hours to do (what with maven pulling down and refreshing stuff all the time), then STS has started crashing, went back to Eclipse which was a bit better, but not much. In the end I just jumped to Intellij for Java stuff, works like a charm.
- Windows download: http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Linux - java:
#as root
vi \etc\apt\sources.list
# Debian Unofficial
deb http://ftp.uk.debian.org/debian/ squeeze main contrib non-free
apt-get update
apt-cache search java8
apt-get install sun-java8-jdk- Download java documentation:
mkdir -p ~/dgedit/javaDev/docs/java ~/dgedit/javaDev/docs/javafx
cd ~/dgedit/javaDev/docs/java
cp ~/../Downloads/jdk-*-apidocs.zip .
unzip jdk-*-apidocs.zip
rm jdk-*-apidocs.zip
cd ~/dgedit/javaDev/docs/javafx
cp ~/../Downloads/javafx-*-apidocs.zip .
unzip javafx-*-apidocs.zip
rm javafx-*-apidocs.zip/usr/lib/jvm/java-7-oracle/bin/jvisualvm| Item | Value |
|---|---|
| Editor > General > Breadcrumbs | Off |
| Editor > General > Code Folding | All Off |
| Editor > General > Appearance > Show parameter name hints | Off |
| Editor > Font | Consolas |
| Editor > File and Code Templates | Remove all headers |
| Plugins | jk |
| Tools > Web Browsers | Chrome |
| Appearance & Behaviour > Keymap > Tool Windows > Maven Projects | Alt+0 |
| Appearance & Behaviour > Keymap > Main Menu > Window > Editor Tabs > Split Horizontally | Ctrl+Alt+Slash |
| Appearance & Behaviour > Keymap > Main Menu > Window > Editor Tabs > Unsplit | Ctrl+Alt+Shift+Slash |
project structure | artifacts | exploded war | output directory
C:\Users\fernandog\Documents\envs\apache-tomcat-8.0.30\webapps\runlog-web
- Download eclipse
#as fern
cd ~/Downloads
tar -zxvf eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz
#as root
mv /home/fern/Downloads/eclipse /opt- window > preferences > general > workspace > "New text file line delimiter".
- window > preferences > general > editors > text editors > display tab width: 2
- window > preferences > general > editors > text editors > insert spaces for tabs
- window > preferences > general > editors > text editors > show print margin: 80
- window > preferences > general > appearance > colors and fonts > basic > text editor fonts > 9
- window > preferences > general > appearance > colors and fonts > basic > header font > 11
- window > preferences > general > perspectives > java : make default
- window > preferences > general > keys > Add BookMark > ALT + B
- window > preferences > general > keys > Toggle ToolBar > ALT + 2
- window > preferences > java > editor > folding > deselect "Enable folding..."
- window > preferences > java > editor > save actions:
- Add 'this' qualifier to unqualified field accesses
- Add 'this' qualifier to unqualified method accesses
- Change non static accesses to static members using declaring type
- Convert control statement bodies to block
- Add final modifier to private fields
- Put expressions in parentheses
- Add missing '@Override' annotations
- Add missing '@Override' annotations to implementations of interface methods
- Add missing '@Deprecated' annotations
- Remove unnecessary casts
- Remove trailing white spaces on all lines
- window > preferences > java > installed jre > add > Standard VM > jdk directory
- window > preferences > java > installed jre > edit > Default VM arguments: -ea
- window > preferences > ant > editor > folding > deselect "Enable folding..."
- window > preferences > ant > editor > formatter > tab size : 2
- window > preferences > ant > editor > formatter > deselect: "Use tab character..."
- window > preferences > run/debug > console > console buffer size : 400000
- window > preferences > run/debug > console > display tab width : 4
- window > preferences > run/debug > console > show when program writes stdout : disable
- window > preferences > run/debug > console > background colour : 0
- window > preferences > run/debug > console > stdout colour : 255
- goto: http://findbugs.sourceforge.net/downloads.html
- download plugin: http://sourceforge.net/projects/findbugs/files/findbugs%20eclipse%20plugin/2.0.3/edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131105-14951.zip
# as root
cd /opt/eclipse/plugins
cp ~/edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131105-14951.zip .
unzip edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131105-14951.zip
rm edu.umd.cs.findbugs.plugin.eclipse_2.0.3.20131105-14951.zip- goto: http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor
- download plug in: http://sourceforge.jp/projects/amateras/downloads/51002/tk.eclipse.plugin.htmleditor_2.1.0.jar/
# as root
cd /opt/eclipse/plugins
cp /home/fern/Downloads/tk.eclipse.plugin.htmleditor_2.1.0.jar .NOT FOR HSQLDB
- Help > Install New Software:
- Work with: --All Available Sites--
- Database Development: Data Tools Platform Extender SDK