You have to check the COMPATIBLE parameter in init.ora. It needs to be set to 8.1.0.0.0

Shutdown the instance, make the change and then
re-create the DBMS_JAVA objects by running .../javavm/install/initjvm.sql as user SYS.

Now, do the export.