If you want to change the Java Home for SQL Developer , You Have to Locate product.conf and set JAVAHOME to the new one.
On Linux :
Usually it's Located in /home/oracle
and Search For setJavaHome to new One
On Windows :
It's Depend on user :
and edit the same file.