Menu

一个Java程序员眼中的Mac OS(系列七:Java 开发环境)

2017年7月11日 - 工作台

Java 开发环境

本文初衷

先总结

JDK

# JDK 1.8
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export JRE_HOME
export PATH
export CLASSPATH
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane

sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk

IntelliJ IDEA

IntelliJ IDEA JDK 设置

Maven

MAVEN_HOME=/Users/youmeek/my_software/work_software/maven3.3.9
PATH=$PATH:$MAVEN_HOME/bin
export MAVEN_HOME
export PATH

Gradle

 # Gradle
 GRADLE_HOME=/Users/youmeek/my_software/work_software/gradle4.2
 PATH=$PATH:$GRADLE_HOME/bin
 export GRADLE_HOME
 export PATH

Tomcat

MySQL

[mysql]
default-character-set = utf8

[mysqld]
symbolic-links=0
log-error=/var/log/mysql/error.log
default-storage-engine = InnoDB
collation-server = utf8_unicode_ci
init_connect = 'SET NAMES utf8'
character-set-server = utf8
lower_case_table_names = 1
max_allowed_packet = 50M

Git

标签:,