Java class has an INVALID status after loadjava command in oracle

2k views Asked by At

I have a problem with java class which I would like to load into oracle database. There was no any output after using 'loadjava' in windows command line:

loadjava -user lrn001/123456@LAND SharedAreaDecoder.class

but I verified the status of my java class in sql developer and I found that it had an invalid status: user_objects table

The class has been compiled in Java 8. I am using oracle database 12c. I've already tried to load another java classes and in each case the problem was the same so status was INVALID. Besides that I tried to use resolve and here is the result:

alter java class "SharedAreaDecoder" resolve;

Script output: Warning: execution completed with a warning. Java CLASS altered

The status after using the above command is still the same.

Using the below command gives more details:

loadjava -user lrn001/123456@LAND SharedAreaDecoder.class -resolve

errors : class SharedAreaDecoder ORA-29521: The name can't be found java/nio/charset/StandardCharsets The following operations failed class SharedAreaDecoder: resolution exiting : Failures occurred during processing

My Oracle JVM version

Select from user_erros

The error translation is: referenced name java/nio/charset/StandardCharsets could not be found

How to solve this issue?

0

There are 0 answers