Setting up an environment to do CS56 work on your own Mac (not ssh'ing into CSIL)
For certain kinds of programs, i.e. Download guts and glory macintosh. graphics, and especially sound, it may be more convenient to work directly on your Mac rather than ssh’ing into CSIL.
Prebuilt OpenJDK Binaries for Free! Java™ is the world's leading programming language and platform. AdoptOpenJDK uses infrastructure, build and test scripts to produce prebuilt binaries from OpenJDK™ class libraries and a choice of either OpenJDK or the Eclipse OpenJ9 VM. All AdoptOpenJDK binaries and scripts are open source licensed and available for free.
Anno 1404 game. For audio or sound programs, this is especially true.
What do you need to install on your Mac to be able to do this?
Instructions follow below. Note that installing MacOS: Homebrew may make some of this easier.
To see whether you already have the JDK installed, do this in a terminal window:
If you see some version of Java 1.8.something… then you are good to go.
If not, download and install a version for Mac OS from here:
![]()
This article tells you how to deal with having multiple versions of Java on your Mac, and what to do with the “tarball” file that you might find when you download OpenJDK 11 for Mac, since there are no obvious installation instructions. Unfortunately, the link to the tarball takes you to a page where the distribution is NO LONGER AVAILABLE. More on that below.
So if the link in that article does not have OpenJDK 11 for Mac, who does?
This worked for me. Note that it requires brew, a package manager for MacOS.
Here’s the short version:
To check if you now have Java 11, open a new Terminal window and do:
If it worked, you should see something like this:
Note: after installing Java 11, you may want to do:
Or if you already have Maven installed:
And then do:
To make sure that Maven is using Java 11 and not still using Java 8 or earlier.
I recently got a new Mac and followed the instructions above. I ended up with Java 11 as my default java compiled:
But I was frustrated the Maven was reporting that it was using Java 13:
So I went back and looked at the messages during the
brew install maven , and saw this:
It appears that Maven brings in Java 13 as a dependency. Not ideal if we are trying to target Java 11.
Openjdk 8 Jdk Download
However, my hope is that if we configure our
pom.xml files to use Java 11, perhaps this won’t be an issue.
Mac Install Openjdk 11
I will also see if I can figure out a way to get Maven to actually point to the Java 11 software as its default Java implementation.
Openjdk 11 Download Mac Os 10.12
If you need to install Apache Ant for any reason, first check to see if you already have it:
If instead, you get
command not found , then install Apache Ant in one of the following ways:
Openjdk 11 Download Mac Os 10.13
Install Openjdk Mac OsRelated topics:Openjdk Source Code Download
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |