It's not in the list of forbidden extensions in the config file, so I don't know why phpdig wouldn't index a java link. You can easily establish whether phpdig will or won't index a java link by trying to index just one page. For example, this one:
http://www.java.com/en/index.jsp