-
Bug
-
Resolution: Fixed
-
P1
-
6u5
-
b02
-
b03
-
x86
-
windows_vista
-
Verified
While loading all Public Classes using Class.forName in Vista on a non-complete Kernel JRE it is throwing error downloading bundle.
Where as it works fine and downloads corr. bundles and loads classes in Windows XP.
Steps to reproduce :
1) install Kernel JRE
2) Run the attached Java Program (KernelJREUtils.java) by passing attached classes.log ( contains all the public classes from J2SE 6.0 API page)
3) Redirect the errors to some file ( java KernelJREUtils classes.log 2> vista.err)
Error file is attached err_vista.
Errors at a glance :
------
Error downloading bundle for java/awt/Font.class:
java.io.IOException: unable to create C:\Program Files\Java\jre6\bin\awt.dll
at sun.jkernel.Bundle.unpackBundle(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at KernelJREUtils.instantiate(KernelJREUtils.java:174)
at KernelJREUtils.runSerialClassLoader(KernelJREUtils.java:152)
at KernelJREUtils.main(KernelJREUtils.java:276)
Error downloading bundle for java/awt/Font.class:
java.io.FileNotFoundException: C:\Users\Administrator\appdata\locallow\kerneljre1.6.0_04\lib\bundles\java_awt_core.zip (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.jkernel.Bundle.unpackBundle(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at KernelJREUtils.instantiate(KernelJREUtils.java:174)
at KernelJREUtils.runSerialClassLoader(KernelJREUtils.java:152)
at KernelJREUtils.main(KernelJREUtils.java:276)
CNFE: "java.awt.Font"
etc etc.
Where as it works fine and downloads corr. bundles and loads classes in Windows XP.
Steps to reproduce :
1) install Kernel JRE
2) Run the attached Java Program (KernelJREUtils.java) by passing attached classes.log ( contains all the public classes from J2SE 6.0 API page)
3) Redirect the errors to some file ( java KernelJREUtils classes.log 2> vista.err)
Error file is attached err_vista.
Errors at a glance :
------
Error downloading bundle for java/awt/Font.class:
java.io.IOException: unable to create C:\Program Files\Java\jre6\bin\awt.dll
at sun.jkernel.Bundle.unpackBundle(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at KernelJREUtils.instantiate(KernelJREUtils.java:174)
at KernelJREUtils.runSerialClassLoader(KernelJREUtils.java:152)
at KernelJREUtils.main(KernelJREUtils.java:276)
Error downloading bundle for java/awt/Font.class:
java.io.FileNotFoundException: C:\Users\Administrator\appdata\locallow\kerneljre1.6.0_04\lib\bundles\java_awt_core.zip (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.jkernel.Bundle.unpackBundle(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at KernelJREUtils.instantiate(KernelJREUtils.java:174)
at KernelJREUtils.runSerialClassLoader(KernelJREUtils.java:152)
at KernelJREUtils.main(KernelJREUtils.java:276)
CNFE: "java.awt.Font"
etc etc.