Java problem? Can't find path.

I recently updated Java,
Now whenever I try to start Forge, I get this message:
"The registry refers to a nonexistant Java Runtime Enviromnent Installation or the runtime is corrupted.
The system cannot find the path specified."
I can't find where the program looks for the path, so I can't correct it!
Any help would be greatly appreciated.
Now whenever I try to start Forge, I get this message:
"The registry refers to a nonexistant Java Runtime Enviromnent Installation or the runtime is corrupted.
The system cannot find the path specified."
I can't find where the program looks for the path, so I can't correct it!
Any help would be greatly appreciated.