Shared Hosting for Everyone, imagined by developers, for developers.Discovering the Public Cloud
The default version can be changed from the alwaysdata administration, under Environment > Java. This is the version that is especially used when you start
Versions are not necessarily already installed.
To use a Java version that is different from the default one:
[VERSION]with the desired Java version).
Your Java environment starts off empty, with no ready installed libraries.
To deploy an HTTP application with Java, create a User program type site in the Web > Sites section.
You need to specify the command that will start your Java application, for example1:
$ java -Xmx512m -jar jenkins.war --httpListenAddress=$IP --httpPort=$PORT
$ java -jar app.jar --server.address=:: --server.port=$PORT
Your application must absolutely listen to IP
:: and the port shown in the site configuration in the Command field or use the IP and PORT environment variables.
Options depend on the application, you must refer to it’s documentation to find out which options to use if it is necessary to specify the IP and port in the command. This can also be configuration file options. ↩︎