Our C++ application hosts Sun’s JVM and I need to upgrade it to the newest version on Windows. I downloaded JDK 6u20, but I have no idea which folders to take into our installation. We currently have some version of Java 5 but it seems that whoever did it in the first place, cherry picked the files.
I’d like to know which folders to take from the installation of JDK. We are using JNI so I will also need all the include files/libs.
Also, the Java people are saying that I should take the files from JDK installation rather than the JRE, is there any difference? Maybe in the jars that ship in the JDK’s JRE?
Without knowing your application, it’s not possible to say which files can be left out, so I’d say use the entire JRE.
However, you can find out which files the original creator of the installer didn’t select by comparing the installer’s JRE files with the original JRE. You can then write up these files and take a guess as to why they are not needed by your application.
If in doubt, leave it in. 🙂
EDIT: The JRE redistribution license requires the software to be complete:
See http://java.sun.com/javase/6/webnotes/install/jre/README
However, the same document also mentions that the files are divided into required and optional files, and lists which files are optional. So, you can leave out the optional files.