Reputation: 21450
My Oracle 9i comes with JDK 1.3. I want to use some classes that were introduced in JDK 1.4+. So can I copy the latest JDK (1.6) over the C:\oracle\oraclehome\jdk folder. Thank you.
EDIT: I should add that I want to use some JDK 1.4+ library classes in my java stored procedures. If I cannot change the internal JVM, where can I place the jar files so that the JVM knows where to resolve my references? Or do I have to use loadjava for these new classes?
Upvotes: 5
Views: 2143
Reputation: 30848
Bear in mind that you can always install another JDK/JRE that doesn't clash with the Oracle installed one or the "internal" one.
We have 4/5 different JRE/JDK installations on some of our servers, since different applications require different java versions.
Upvotes: 1
Reputation: 231751
You cannot change the version of the JVM that runs inside the database (i.e. the version of the JVM that would be used for Java stored procedures).
The version of the JDK that you see on the file system at C:\oracle\oraclehome\jdk is not the same as the version of the internal JVM. The JDK you see on the file system is there just to run the various Java based external GUIs that come with Oracle (beginning with the Oracle Universal Installer and including things like the Database Configuration Assistant (DBCA)). Although you could from a technical standpoint overwrite that install, it wouldn't affect the JVM used for Java stored procedures.
Upvotes: 4