How to resolve 'ORA-02290: Check Constraint (SYS.JAVA_DEV_DISABLED) Violated' (Doc ID 2237740.1)

Last updated on MARCH 05, 2017

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


When attempting to recompile a package, the following error occurs.

alter package SCOTT.TEST_PKG compile
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-02290: check constraint (SYS.JAVA_DEV_DISABLED) violated

The issue can be reproduced at will with the following steps:
Attempt to [re]compile certain java related packages


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms