Java

Supported Java Versions

For a list of runtimes that AppFog supports run:

$ af runtimes

+---------+-------------+---------+
| Name    | Description | Version |
+---------+-------------+---------+
| ruby18  | Ruby 1.8.7  | 1.8.7   |
| ruby192 | Ruby 1.9.2  | 1.9.2   |
| ruby193 | Ruby 1.9.3  | 1.9.3   |
| java    | Java 1.7    | 1.7.0   |
| python2 | python 2.7  | 2.7.3   |
| node04  | nodejs .04  | 0.4.12  |
| node06  | nodejs .06  | 0.6.17  |
| node08  | nodejs .08  | 0.8.14  |
| node10  | nodejs .10  | 0.10.29 |
| php     | PHP 5.3     | 5.3.10  |
| php54   | PHP 5.4     | 5.4.33  |
| php55   | PHP 5.5     | 5.5.17  |
| php56   | PHP 5.6     | 5.6.1   |
+---------+-------------+---------+

Deploying Java Apps

You can deploy most Java apps by simply generating a WAR file, then running af push from the target directory.

Custom JVM Parameters

You can add custom JVM parameters like -Duser.timezone by specifiying JAVA_OPTS as an environment variable:

$ af env-add <app-name> JAVA_OPTS=<value>

You can also include the $HOME variable to point to the Tomcat's lib directory.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.