The short answer is:
alter java class "java class name" resolve;
For example: alter java class "/e6bc455_DocumentGenerator" resolve;
The long answer is given in the post titled "Long road to loadjava" in Frederic Tang's blog.
The following metalink notes describe some well known invalid java classes: