MacOS
- You need SoyLatte. Please install it in
/usr/local/soylatte, i.e. the Java compiler should be/usr/local/soylatte/bin/javac. - Download the "binaries only" Java Mint zip file from the Java Mint implementation page. In this example, I have saved the file on my desktop, i.e. at
/Users/mgricken/Desktop. - Open a console.
- Change into the /usr/local directory:
cd /usr/local - Unzip it as root. This means you have to type in your password:
sudo unzip /Users/mgricken/Desktop/JavaMint-r13871-binaries.zip - Set the
MINT_HOMEandPATHenvironment variables:export MINT_HOME=/usr/local/JavaMint
export PATH=$PATH:$MINT_HOME/langtools/bin - To make this permanent, edit your
.bash_profileor.bashrcfile and put the two lines from step 6 line at the end of the file.
mintc and run them using mint.mintc Power.java
mint PowerThere are samples in the
/usr/local/JavaMint/langtools/mintTest directory. You cannot compile them there, however, because the directory is read-only unless you are the root user. So unzip the Java Mint implementation zip file somewhere else, e.g. in your Documents directory.
0 comments:
Post a Comment