VoiceAttack does not utilize Java, nor JavaScript (which are, despite the name, completely different and separate languages/products; you likely have Java SE 8).
Removing such products should not affect VoiceAttack itself, but could of course affect any applications on your machine that do utilize them.