I recently switched to apple. I have custom made java program (jMarkov) where the coder told me for the windows machine to set the JAVA_HOME variable.

"%JAVA_HOME%\bin\java" -classpath bin com.company.jmarkov.JMarkov

How do I set this variable in apple?

In order to run this jMarkov program in Windows I run this program from the dos prompt.

jmarkov.exe file1 file2

How do I run this in apple? from the console?