All Products
Search
Document Center

Function Compute:Overview

Last Updated:Mar 21, 2024

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

Background

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 in Function Compute, the following limits apply:

  • Code compilation not supported: You can upload only developed and compiled ZIP packages or JAR packages. Function Compute does not support Java-based compilation.

  • Online editing not supported: 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

The following table describes the Java runtimes supported by Function Compute.

Version

Operating system

Architecture

Java 11

Linux

x86_64

Java 8

Linux

x86_64

Function Compute provide the following dependency libraries for Java runtimes:

  • com.aliyun:fc-java-core: defines information such as the handler interface and context objects used in a request handler.

  • com.aliyun:fc-java-events: provides the event types of common event sources.

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

References