I found a fix for my computer, might work on others.
After reading around some forums on other websites due to encountering problems with my java, I found a program called Jarfix, run it once and it fixed all my java problems
http://johann.loefflmann.net/en/software/jarfix/index.html