You r running JAVA that’s okay, but on which OS i.e. window or Linux ? U didn’t mention here. though I am providing some solution 4 u.
1. if this is windows, then set the environment variable and must download the latest java sdk standard version.
2. If this is linux, then after 1st install the java is crashed when u r opening firefox. so u have to again reinstall the software with java sdk standard version
the (1) point is the crucial point that u have to concentrate that i was sent mail on this.