This topic describes the Java runtime environments in which you can write function code in Function Compute.

Background information

Unlike scripting languages such as Python and Node.js, Java code must be compiled before it can be run on a Java virtual machine (JVM). For Java, Function Compute has the following limits:
  • No support for code compilation: You can upload only developed and compiled ZIP packages or JAR packages. Function Compute does not support Java-based compilation.
  • No support for online editing: You cannot edit code online because code cannot be uploaded. You can submit code only by uploading JAR packages or using Object Storage Service (OSS).

Java runtime

Function Compute supports the following Java runtime environments:

Version OS Architecture
Java 11 Linux x86_64
Java 8 Linux x86_64
Function Compute provides the following dependency libraries for Java runtime:

References