All Products
Search
Document Center

Function Compute:Java runtime environment

Last Updated:Jun 04, 2026

Function Compute supports Java 8 and Java 11 runtimes for function development. Java functions must be compiled and uploaded as JAR or ZIP packages.

Background

Java requires compilation before running on a JVM, unlike Python or Node.js. The following limitations apply in Function Compute:

  • Code compilation not supported: Upload only compiled ZIP or JAR packages. Function Compute does not compile Java code.

  • Online editing not supported: Submit code by uploading JAR packages or using Object Storage Service (OSS).

Java runtimes

Function Compute supports the following Java runtimes:

Version

Operating system

Architecture

Java 11

Linux

x86_64

Java 8

Linux

x86_64

Function Compute provides the following dependencies for Java runtimes:

  • com.aliyun:fc-java-core: Defines handler interfaces and context objects.

  • com.aliyun:fc-java-events: Provides event types for common event sources.

  • FC SDK for Java: The official Function Compute SDK for Java.

Related topics