Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Java Tomcat Mavenのインストール

Posted at

この記事はWeb開発をするまでの一部です

Open-JDKのインストール

sudo yum -y install java java-1.8.0-openjdk-devel
java -version

バージョン番号が表示されれば、インストールが成功しています。

openjdk version "1.8.0_60"
OpenJDK Runtime Environment (build 1.8.0_60-b27)
OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)

Tomcat

sudo yum -y install tomcat
rpm -qa tomcat

バージョン番号が表示されれば、インストールが成功しています。

Maven

sudo yum -y install maven
mvn --version

バージョン番号が表示されれば、インストールが成功しています。

この時、古いjavaがインストールされると思いますので、削除します。

sudo yum list installed|grep open-jdk
sudo yum remove -y java-1.7.0-openjdk-headless
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?