databases/cassandra[45]: add run_depends on java
These ports need to have a specific JDK installed to run.
In cassandra3 this was already correctly configured.
NB: Cassandra 4 is out of beta for a long time.
PR: 296095
Approved-by: Angelo Polo <language.devel@>