Compiling the AWS Elastic Beanstalk demo threw exception No Java compiler available-Collection of common programming errors
Arch Linux features the usual distinction between the Java Runtime Environment (JRE) package and the Java Development Kit (JDK) as shown for other OS in How to download and install prebuilt OpenJDK packages as well, e.g. for Debian or Ubuntu:
The openjdk-7-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-7-jdk package. [emphasis mine]
The respective package names of OpenJDK are obviously a bit unfortunate and misleading in this regard (though understandable), insofar both packages feature openjdk in its name, but only one the actual JDK – the same similarity applies for the Arch Linux jre7-openjdk and jdk7-openjdk package double.
Thus, you’ll simply have to install the appropriate JDK package for Arch Linux and should be good to go, i.e. likely jdk7-openjdk as per a Arch Linux Package Database search for jdk.
Good luck!