Mac OS Yosemite(10.10.3)系统下环境配置

时间:2023-03-08 16:05:56

/etc/bash_profile

#Java

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_65.jdk/Contents/Home

export PATH=$PATH:$JAVA_HOME/bin

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

#Maven

export M2_HOME= /Users/apple/Desktop/software/maven-3.1.1

export PATH=$PATH:$M2_HOME/bin

#Scala

export SCALA_HOME=/Users/apple/Desktop/software/scala-2.10.5

export PATH=$PATH:$SCALA_HOME/bin

#Spark

export SPARK_HOME=/Users/apple/Desktop/software/spark-1.3.1-bin-hadoop2.6

export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin