9/23/2017 - 3:37 PM

Java configure

Java jdk install and configure on Mac OS

  • Install jdk
  • Configure Environment Variables
  • Run appication

Go to preferences / Java / Installed JREs / Add

Java Home search this route: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Java Name: Java SE 6

edit bash_profile

nano .bash_profile or /usr/bin/pico .bash_profile;

bash_profile content

export JAVA_HOME=$(/usr/libexec/java_home) export JRE_HOME=$(/usr/libexec/java_home) export CLASSPATH=$CLASSPATH:/Users/jojacafe/UOC/tads_cast.jar

close terminal and run


compile application

javac or javac tads_cast.jar;.

run application

java EjercicioPractico1 or java tads_cast.jar;. EjercicioPractico1