Skip to content

Instantly share code, notes, and snippets.

@emprit1988
Last active May 7, 2019 14:14
Show Gist options
  • Save emprit1988/9038a8ecfbe40c710fae38ee23793987 to your computer and use it in GitHub Desktop.
Save emprit1988/9038a8ecfbe40c710fae38ee23793987 to your computer and use it in GitHub Desktop.
Setup Java , Spring CLI , IntelliJ , Maven
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install default-jdk
get path from:
sudo update-alternatives --config java
sudo gedit /etc/environment
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
source /etc/environment
echo $JAVA_HOME
------------------------------------NOt using now--------------------------------------------------
https://huongdanjava.com/install-spring-boot-command-line-interface-on-ubuntu.html
latest cli
http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/2.1.4.RELEASE/
export PATH="/home/local/JMANDIGITAL/prithvi/spring-2.1.4.RELEASE/bin:$PATH"
source ~/.bashrc
spring --version
------------------------------------Idea IDE ---------------------------------------------------------
snap package didnt work in ubuntu 16 (permission problem), works well in ubuntu 18.
https://www.javahelps.com/2015/04/install-intellij-idea-on-ubuntu.html
cd /bin
ln -s <path to idea.sh> idea - now it is available in the dash under "idea"
open dash, type idea and start IntelliJ
right click on the icon in the sidebar and add it to the starter
------------------------------------Install Maven ----------------------------------------------
https://www.javahelps.com/2017/10/install-apache-maven-on-linux.html
------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment