Two days ago. Have you checked for software updates? Go to Apple menu, choose Softw. Update to see if there are any.
Also, which mac model are you using?
You do need to be logged into a admin account to install software usually.
What is happening when you open the installer & attempt to install? Any error messages?
Which versions of java are listed in the Java preferences?
Which version of Java is listed first?