My Oracle Support Banner

javac exits with error "constant string too long" (Doc ID 1328852.1)

Last updated on NOVEMBER 15, 2020

Applies to:

Java SE JDK and JRE - Version 8 to 8
Information in this document applies to any platform.

Symptoms

The Java language compiler 'javac' fails to compile Java source code
and exits with error message "constant string too long". Example:


For an actual example see BigString.java

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.