Java + Spring development environment construction with VirtualBox + Ubuntu (Xfce4)


It is convenient to have one Linux environment that can be broken, so prepare it. Xfce4 is adopted because it is relatively light in the desktop environment of Ubuntu.


We aim to be able to develop Java + Spring web applications on Ubuntu.

Assumption: My environment

Environment construction procedure

VirtualBox DL

Ubuntu image DL

VM initial settings

When creating a new

Change HDD to 10GB-> 32GB

After new creation

Major items Medium item Sub-item
General Altitude Clipboard sharing: bidirectional
General Altitude Drag and drop: bidirectional
system Motherboard Main memory: 8192MB
system Motherboard Boot order: Remove floppy
system Motherboard Chipset: ICH9
system processor Number of processors: 2
system Acceleration Paravirtualized interface: KVM
display screen Video memory: 256MB
display screen Number of displays: 1
display screen Acceleration: Enable
display screen Acceleration: Enable
storage controller:IDE * Only at initial startup: Ubuntu iso image that has been downloaded
Shared folder Select a folder for sharing Check the mount

Ubuntu installation

After starting the VM, follow the on-screen instructions to install. Select Japanese in the first language selection. -> Reboot

Various settings of Ubuntu

Complete update support and Guest Addition installation.

Install Xfce4

#Install Synaptic Package Manager
$ sudo apt install synaptic

#Kill the conky process
$ killall conky

#In the search window`xfce4`And install the following
・ Xfce4
・ Xfce4-goodies

-> Reboot

Ubuntu (Xfce4) boot

On the login screen, select the xfce4 session from the * mark and log in.

Japanese setting (Option)

See IBus-Mozc:

User subordinates in English

$ LANG=C xdg-user-dirs-gtk-update

Install various development tools


Java / SDKMAN Official: Official:

#Installing SDKMAN
$ curl -s "" | bash
$ source "$HOME/.sdkman/bin/"

#Java installation
$ sdk list java
$ sdk install java

* Maven and Grade are OK with this
$ sdk install maven
$ sdk install gradle

VSCode Official:

$ curl | gpg --dearmor >
$ sudo install -o root -g root -m 644 /usr/share/keyrings/
$ sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/] stable main" > /etc/apt/sources.list.d/vscode.list'

$ sudo apt-get install apt-transport-https
$ sudo apt-get update
$ sudo apt-get install code

Git / Github

$ sudo apt install git

#Initial setting
$ git config --global "ottoman"
$ git config --global "[email protected]"

#ssh key generation&Register on Github
$ cd ~/.ssh(If not, make)
$ ssh-keygen -t rsa
 ->Public key( the contents on Github

#commit editor to vim
$ git config --global core.editor vim

SpringToolSuite (STS) + Japanese localization


Official: Download and unzip from * This time sts-4.6.1.RELEASE

#Create a directory for STS under opt
$ sudo mkdir /opt/sts

$ cp -r sts-4.6.1.RELEASE /opt/sts/

Create a boot shell


export JAVA_HOME=/home/swat/.sdkman/candidates/java/$JDK_VERSION
export PATH=$PATH:$JAVA_HOME/bin

cd /opt/sts/sts-$STS_VERSION.RELEASE/

Create launcher

Set to call the previous shell image.png

Localizing into Japanese

Official: Download the Linux version from image.png

#Sts the contents of features and plugins in the unzipped-4.6.1.Copy to RELEASE features and plugins
$ sudo cp -r ./features/jp.sourceforge.mergedoc.pleiades/ /opt/sts/sts-4.6.1.RELEASE/features/
$ sudo cp -r ./plugins/jp.sourceforge.mergedoc.pleiades/ /opt/sts/sts-4.6.1.RELEASE/plugins/

#Add the following to the ini file(sts-4.6.1.RELEASE/SpringToolSuite4.ini)

If you start it with this, it will be in Japanese image.png

Postman installation

sudo snap install postman

NVM / Node.js (bonus)


#NVM installation
$ curl -o- | bash

# .Check bashrc
$ cat .bashrc | grep -A3 'export NVM_DIR'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/" ] && \. "$NVM_DIR/"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

# .Reflect bashrc
$ source ~/.bashrc

#Check the version of nvm
$ nvm --version

# Node.js installation
$ nvm ls-remote
$ nvm install v12.16.3


I might put something like this

--DB client

Recommended Posts

Java + Spring development environment construction with VirtualBox + Ubuntu (Xfce4)
Spring Boot + Docker Java development environment construction
java development environment construction
[Environment construction] Build a Java development environment with VS Code!
Prepare Java development environment with Atom
Java web application development environment construction with VS Code (struts2)
Build WebAPP development environment with Java + Spring with Visual Studio Code
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.
Prepare Java development environment with VS Code
Laravel development environment construction with Docker (Mac)
Java development environment construction memo on Mac
Environment construction with Docker (Ubuntu20.04) + Laravel + nginx
Java environment construction
Create Spring Boot-gradle-mysql development environment with Docker
Java development environment
[Spring] Environment construction
Introduction to Java development environment & Spring Boot application created with VS Code
Spring Boot environment construction with Docker (January 2021 version)
[Jakarta EE 8 application development with Gradle] 1. Environment construction
[Java] Build Java development environment on Ubuntu & check execution
JAVA + STS (Spring Tool Suite) environment construction procedure
Wordpress local environment construction & development procedure with Docker
Create a Spring Boot development environment with docker
Build a Java development environment with VS Code
[Flutter] Ubuntu 20.04 environment construction
Java development environment memo
Build Java development environment with VS Code on Mac
Java development environment construction on Mac-JDK Install (2020 preservation version)
[Mac] VS Code development environment construction (Java, Gradle, Node.js)
Stable development environment construction manual for "Rails6" with "Docker-compose"
[Java] Environment construction procedure for developing struts 1.3 with Eclipse
Build Java development environment with WSL2 Docker VS Code
How to build Java development environment with VS Code
Prepare the environment for java11 and javaFx with Ubuntu 18.4
Build Java program development environment with Visual Studio Code
Database environment construction with Docker in Spring boot (IntellJ)
Java development environment construction (Mac + Pleiades All in One Eclipse 4.7 + Spring Boot + Gradle (Buildship))
[Spring Boot] Environment construction (macOS)
Java Config with Spring MVC
Java development environment (Mac, Eclipse)
JavaFX environment construction in Java 13
[Docker] Rails 5.2 environment construction with docker
Using Mapper with Java (Spring)
AtCoder Challenge Environment Construction (Java 8)
Docker × Spring Boot environment construction
Laravel environment construction (Ubuntu 18.04 LTS)
React environment construction with Docker
I tried to create a java8 development environment with Chocolatey
Web application development environment construction in Java (for inexperienced people)
Build a "Spring Thorough Introduction" development environment with IntelliJ IDEA
Case that gave up environment construction of react with ubuntu
Domain Driven Development with Java and Spring Boot ~ Layers and Modules ~
Create a Java and JavaScript team development environment (gradle environment construction)
Rails + MySQL environment construction with Docker
[Windows] WSL2 + Ubuntu + Node.js environment construction
Node.js environment construction with Docker Compose
[Eclipse Java] Development environment setting memo
Install java with Ubuntu 16.04 based Docker
Environment construction for Servlet application development
[Java] [Spring] [JavaScript] [gulp] [webpack] [uglify] Private AngularJS application development environment
Let's create Ubuntu environment with vmware