Java Specs publishing fails with a missing class message

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When publishing Java Specs code, the operation will fail and the server logs will report a missing class.

Environment

Bamboo 7 or later

Diagnosis

After publishing Java Specs code, the operation will fail silently, but the server logs will show:

atlassian-bamboo.log

1 11-Aug-2021 14:52:23 [ERROR] Failed to execute goal com.atlassian.bamboo:bamboo-specs-runner:7.1.4:run (default-cli) on project bamboo-specs: Execution default-cli of goal com.atlassian.bamboo:bamboo-specs-runner:7.1.4:run failed: A required class was missing while executing com.atlassian.bamboo:bamboo-specs-runner:7.1.4:run: sun/applet/AppletSecurity

Cause

This error will appear when an unsupported JDK is used to either run Bamboo or compile your project.

Solution

Use a supported Java version. For more information, please check Supported platforms

Updated on March 13, 2025

Still need help?

The Atlassian Community is here for you.