You can call Java (or Python, Ruby, C etc) libraries from Erlang if you really have to. I'd bet Erlang's libraries would be quite sufficient for a wide range of apps, though.
Where did you run into pain trying to use Erlang outside of telcom apps? Just curious...