[LINUX] Memo A beginner tried to build a Java environment and Japaneseize it on Ubuntu 18.04.2 LTS.

This is my first post. I have only learned ruby on rail at a programming school, but I am interested in linux and am doing various trials and errors.

This time, I will try to build a Java environment and install eclipse, which is an editor, and translate it into Japanese.

First of all, type the command.

java -version

↑ Check if Java is included. (If so, Java installation is complete)

Next is this command. Addition of PPA. (* What is PPA? → Abbreviation for Personal Package Archive, which looks like an App Store.)

sudo add-apt-repository -y ppa:webupd8team/java sudo apt-get update

Install java8.

sudo apt-get install oracle-java8-installer oracle-java8-set-default

Java has been installed. I feel like it was less difficult than ruby or ruby on rails (because I'm ignorant ... (laughs))

After that, I set it to use.

◯ Set to use Oracle (SUN) JDK sudo update-java-alternatives --jre -s java-8-oracle sudo update-java-alternatives --jre-headless -s java-8-oracle sudo update-java-alternatives -s java-8-oracle

sudo update-alternatives --config java ↑

update-java-alternatives -l

You can now use it.

Create a "test.java" file with a text editor (try writing sample code such as hello java) At the command prompt, go to the directory with ↑ and

javac test.java

Type in.

When compiled, a file called "test class" will be created, so At the command prompt again, type "java test".

If it works with this, it's OK.

Next, I put in eclipse.

First of all, from the failure method. First, I installed eclipse from "ubuntu software" (the one with the A mark and the Amazon-like mark). In this case, I could not find the file necessary for Japanese localization and it ended in failure.

Therefore, download the ZIP file from the official website + unzip it and install it.

Official site: https://www.eclipse.org/ There is an orange download button in the upper right corner. I was able to download the file for linux without selecting anything.

After unzipping, proceed as instructed by the installer. (Sorry for throwing round)

↓ ↓ ↓

It's done (^^) Thank you to those who develop the installer.

Finally, I will translate it into Japanese. On linux you have to make changes directly.

Official URL of Pleiades: http://mergedoc.osdn.jp/

From here Please download the file for LINUX of "Pleaides plug-in" instead of "Pleia des all in one". (The installer is not provided. Please unzip the zip, refer to readme.txt, manually place Pleiades, and edit the config file. ")

After unzipping, do various things while reading the readme. It's very easy to understand in Japanese. (Thanks to Pleiades)

In the eclipse-java-2018-12-eclipse directory, There are "features" and "plugins" in the file you downloaded earlier, so copy and paste them.

Finally, Add a little inside "eclipse.ini" in the same directory. On the last line

-Xverify:none -javaagent:plugins/jp.sourceforge.mergedoc.pleiades/pleiades.jar

Just add and save. It was surprisingly easy. This is also thanks to the efforts of the genius engineer who cannot see everything.

The above is a memo for beginners to build an environment. I hope it helps someone.

Recommended Posts

Memo A beginner tried to build a Java environment and Japaneseize it on Ubuntu 18.04.2 LTS.
When I tried to build a Rails environment on WSL2 (Ubuntu 20.04LTS), I stumbled and fell.
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
[Latest] How to build Java environment on Ubuntu
How to build Java environment on Ubuntu (Linux)
A story when a beginner gets stuck trying to build a vim 8.2 + python 3.8.2 + lua plugin environment on Ubuntu 18.04.4 LTS
How to build a new python virtual environment on Ubuntu
Build Python3 and OpenCV environment on Ubuntu 18.04
Build Linux on a Windows environment. Steps to install Laradock and migrate
Build a Kubernetes environment for development on Ubuntu
I tried to build an environment of Ubuntu 20.04 LTS + ROS2 with Raspberry Pi 4
Build a PYNQ environment on Ultra96 V2 and log in to Jupyter Notebook
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Let's make a Makefile and build it (super beginner)
How to build a Django (python) environment on docker
[Go + Gin] I tried to build a Docker environment
CTF beginner tried to build a problem server (web) [Problem]
How to build a Python environment on amazon linux 2
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
How to create a Python 3.6.0 environment by putting pyenv on Amazon Linux and Ubuntu
Install LAMP on Amazon Linux 2 and build a WordPress environment.
A memo on how to easily prepare a Linux exercise environment
Build a machine learning scikit-learn environment with VirtualBox and Ubuntu
How to share OS and Vim clipboard on Ubuntu 18.04.3 LTS
Build a Python environment and transfer data to the server
A python beginner tried to intern at an IT company
When I tried to install PIL and matplotlib in a virtualenv environment, I was addicted to it.
How to build a LAMP environment using Vagrant and VirtulBox Note
Build a Chainer environment using CUDA and cuDNN on a p2 instance
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Building a Python environment on Ubuntu
Build a Python environment on your Mac with Anaconda and PyCharm
# 3 Build a Python (Django) environment on AWS EC2 instance (ubuntu18.04) part2
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build a python3 environment on CentOS7
Shell script to build pyenv environment on ubuntu in one shot
I tried to build a SATA software RAID configuration that boots the OS on Ubuntu Server
Everything from building a Python environment to running it on Windows
Build your Django app on Docker and deploy it to AWS Fargate
[Personal memo] Get data on the Web and make it a DataFrame
Try to build python and anaconda environment on Mac (by pyenv, conda)
Linux screen distribution on Ubuntu Memo that wants to be a Linux screen distribution YouTuber
I tried to build a Mac Python development environment with pythonz + direnv
Steps to build a Django environment with Win10 WSL Ubuntu18.04 + Anaconda + Apache2
How to build a sphinx translation environment
Build a python environment on MacOS (Catallina)
Python virtual environment and packages on Ubuntu
A memo with Python2.7 and Python3 on CentOS
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
Build a Python + OpenCV environment on Cloud9
A python beginner tried to intern at an IT company [Day 2 chatbot survey]
A python beginner tried to intern at an IT company [Day 1 development process]
From nothing on Ubuntu 18.04 to setting up a Deep Learning environment in Tensor
Flutter in Docker-How to build and use a Flutter development environment inside a Docker container
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
When I tried to create a virtual environment with Python, it didn't work
Build a flask app made with tensorflow and dlib to work on centos7
I made an image classification model and tried to move it on mobile
Build a python environment to learn the theory and implementation of deep learning
[I'm an IT beginner] I tried my best to implement Linux on Windows