|
| 1 | +--- |
| 2 | +layout: share |
| 3 | +title: Starting with Java and Node.js development on Ubuntu Linux |
| 4 | +date: 2015-7-9 |
| 5 | +categories: [ubuntu,linux,java,nodejs,2015] |
| 6 | +--- |
| 7 | + |
| 8 | + |
| 9 | +## {{ page.title }} |
| 10 | + |
| 11 | +<p class="meta">{{ page.date }}</p> by Paul Verest |
| 12 | + |
| 13 | +[Ubuntu](http://www.ubuntu.com/) is major Linux distribution |
| 14 | +[wikipedia article](https://en.wikipedia.org/wiki/Ubuntu_(operating_system)) |
| 15 | + |
| 16 | +One should select LTS version, as for example [Help](https://help.ubuntu.com/) |
| 17 | +is full only for LTS versions and Node.js packages are [supported for LTS](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) |
| 18 | +but not latest versions. |
| 19 | + |
| 20 | +### Installing Java JDK 8 |
| 21 | + |
| 22 | +There are many [Java implementations for Ubuntu](https://help.ubuntu.com/community/Java). |
| 23 | +Let's stick with Oracle JDK: |
| 24 | + |
| 25 | +<http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html> |
| 26 | + |
| 27 | + sudo add-apt-repository ppa:webupd8team/java |
| 28 | + sudo apt-get update |
| 29 | + sudo apt-get install oracle-java8-installer |
| 30 | + |
| 31 | +Check what exact version you got: |
| 32 | + |
| 33 | + java -version |
| 34 | + javac -version |
| 35 | + |
| 36 | +See also <https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get> |
| 37 | + |
| 38 | +### Installing Enide 2015 (Eclipse-based IDE) |
| 39 | + |
| 40 | +Based on <http://ubuntuhandbook.org/index.php/2014/06/install-latest-eclipse-ubuntu-14-04/> |
| 41 | + |
| 42 | +1. Download Enide for Linux. |
| 43 | +2. extract to /opt/Eclipses/Enide-2015-7-linux-gtk-x64-20150706/ |
| 44 | + |
| 45 | + sudo gedit /usr/share/applications/enide-2015-7.desktop |
| 46 | + |
| 47 | +paste |
| 48 | + |
| 49 | + [Desktop Entry] |
| 50 | + Name=Enide 2015-7 |
| 51 | + Type=Application |
| 52 | + Exec=/opt/Eclipses/Enide-2015-7-linux-gtk-x64-20150706/eclipse/eclipse |
| 53 | + Terminal=false |
| 54 | + Icon=/opt/eclipse/icon.xpm |
| 55 | + Comment=Enide 2015-7 (Eclipse 4.5 based) |
| 56 | + NoDisplay=false |
| 57 | + Categories=Development;IDE; |
| 58 | + Name[en]=Enide 2015-7 |
| 59 | + |
| 60 | +### Installing Node.js |
| 61 | + |
| 62 | +https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager |
| 63 | + |
| 64 | +https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server |
| 65 | + |
| 66 | + sudo apt-get update |
| 67 | + sudo apt-get install nodejs |
| 68 | + sudo apt-get install npm |
| 69 | + |
| 70 | +Or the latest using <https://github.com/nodesource/distributions> |
| 71 | + |
| 72 | + curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash - |
| 73 | + sudo apt-get install -y nodejs |
| 74 | + |
| 75 | + |
0 commit comments