I have improved javadeps.c. Here is the lattest code.
Created attachment 12603 [details] c source code for new javadeps.c
Added to rpm CVS, will be in rpm-4.0.3 and later.