OHPen
July 30th, 2008, 10:15
Hi all,
while playing with modified java classloaders i discovered, that the original java classloaders are different from JDK to JRE (yes i mean even if both JDK and JRE have the same version.)
You can for example proof it if you download JDK v1.5.0_06. After installation you have a directory in which the JDK is located (with a nested JRE directory) and additionally a seperate JRE which was also installed with the second installation process. If you now compare the hashes of the classloaders of both JREs you will see that it is different.
I don't get how they can distribute different classloaders with the same installation. Has anyone an idea why they distribute two different classloader per package ?
Regards,
PAPiLLiON
while playing with modified java classloaders i discovered, that the original java classloaders are different from JDK to JRE (yes i mean even if both JDK and JRE have the same version.)
You can for example proof it if you download JDK v1.5.0_06. After installation you have a directory in which the JDK is located (with a nested JRE directory) and additionally a seperate JRE which was also installed with the second installation process. If you now compare the hashes of the classloaders of both JREs you will see that it is different.
I don't get how they can distribute different classloaders with the same installation. Has anyone an idea why they distribute two different classloader per package ?
Regards,
PAPiLLiON