安裝ubantu系統到配置Java開發環境

1、安裝系統html

一、製做系統啓動盤java

 

2、修改主題-美化linux

一、下載包shell

二、解壓/usr/share/themes/中apache

三、安裝gnome-tweaksvim

sudo apt-get install gnome-tweaks
sudo apt-get install gnome-tweak-tool
sudo apt-get install gnome-shell-extensions

打開gnome-tweaks配置主題oracle


3、安裝jdkmaven

一、下載jdkide

https://www.oracle.com/technetwork/java/javase/downloads/index.htmlgradle

二、解壓

sudo mkdir /usr/java
sudo mv jdk-11.0.3_linux-x64_bin.tar.gz /usr/java
sudo tar -zxvf jdk-11.0.3_linux-x64_bin.tar.gz

三、配置環境變量

sudo vim /etc/profile

在末尾加上
export JAVA_HOME=/usr/java/jdk-11.0.3
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
保存退出

source /etc/profile

4、安裝IDEA

一、下載安裝包

二、解壓

sudo mv ideaIU-2018.3.6.tar.gz /opt
cd /opt
sudo tar -xzvf ideaIU-2018.3.6.tar.gz 
cd idea-IU-183.6156.11/bin
./idea.sh

三、啓動

    (1)下載補丁將其放在idea-IU-183.6156.11/bin目錄下

    (2) 修改idea.vmoptions和idea64.vmoptions 

sudo vim idea.vmoptions 
再尾行添加
-javaagent:/opt/idea-IU-183.6156.11/bin/JetbrainsIdesCrack-4.2-release.jar
一樣的
sudo vim idea64.vmoptions 
再尾行添加
-javaagent:/opt/idea-IU-183.6156.11/bin/JetbrainsIdesCrack-4.2-release.jar

(3)啓動idea選則activation code填入

ThisCrackLicenseId-{    
"licenseId":"ThisCrackLicenseId",    
"licenseeName":"Cupid",    
"assigneeName":"",    
"assigneeEmail":"cupid@163.com",    
"licenseRestriction":"For This Crack, Only Test! Please support genuine!!!",    
"checkConcurrentUse":false,    
"products":[    
{"code":"II","paidUpTo":"2099-12-31"},    
{"code":"DM","paidUpTo":"2099-12-31"},    
{"code":"AC","paidUpTo":"2099-12-31"},    
{"code":"RS0","paidUpTo":"2099-12-31"},    
{"code":"WS","paidUpTo":"2099-12-31"},    
{"code":"DPN","paidUpTo":"2099-12-31"},    
{"code":"RC","paidUpTo":"2099-12-31"},    
{"code":"PS","paidUpTo":"2099-12-31"},    
{"code":"DC","paidUpTo":"2099-12-31"},    
{"code":"RM","paidUpTo":"2099-12-31"},    
{"code":"CL","paidUpTo":"2099-12-31"},    
{"code":"PC","paidUpTo":"2099-12-31"}    
],    
"hash":"2911276/0",    
"gracePeriodDays":7,    
"autoProlongated":false}

5、安裝mvn

一、下載maven

http://maven.apache.org

二、解壓到安裝目錄

sudo tar -xzvf apache-maven-3.6.1.tar.gz

三、配置

sudo vim /etc/profile

#添加
export M2_HOME=/usr/local/apache-maven-3.6.1
export PATH=${M2_HOME}/bin:$PATH

退出,使生效
source /etc/profile

6、安裝Gradle

一、下載Gradle

https://gradle.org

二、解壓到安裝目錄

sudo unzip gradle-5.4.1.zip

三、配置

sudo vim /etc/profile

#添加
export GRADLE_HOME=/usr/local/gradle/gradle-5.4.1
export PATH=$GRADLE_HOME/bin:$PATH

退出,使生效
source /etc/profile
相關文章
相關標籤/搜索