You cannot change the version of the JVM that runs inside the database (i.e. the version of the JVM that will be used for Java stored procedures).
The version of the JDK that you see on the file system in C: \ oracle \ oraclehome \ jdk does not match the version of the internal JVM. The JDK that you see on the file system is just the launch of the various Java-based GUIs that come with Oracle (starting with the Oracle Universal Installer and including things like Database Configuration Assistant (DBCA)). Although you can technically overwrite this installation, it will not affect the JVM used for Java stored procedures.
source
share