7u67, 8u20, 9
|Issue||Fix Version||Assignee||Priority||Status||Resolution||Resolved In Build|
|JDK-8148495||6u115||Vivi An||P2||Resolved||Not an Issue|
Using JRE version 1.7.0_67-b01 Java HotSpot(TM) Client VM
Java Web Start 10.67.2.01
ADDITIONAL OS VERSION INFORMATION :
Window 7 Service Pack 1
EXTRA RELEVANT SYSTEM CONFIGURATION :
Internet Explorer 11
A DESCRIPTION OF THE PROBLEM :
"java.class.path" starting with 1.7.0_67 is "." (in 1.7.0_60 it was deploy.jar).
Therefore the "root" class loader (sun.misc.Launcher$AppClassLoader) is first given the chance to load the class from the file system in the current directory ("user.dir") . This results in very slow startup time when there are thousand of classes to load and the "user.dir" is a network drive ( 3 minutes vs 10 seconds before ).
Can verify what is the java.class.path and user.dir by having java console started and pressing letter "s"
REGRESSION. Last worked in version 7u60
ADDITIONAL REGRESSION INFORMATION:
JRE version 1.7.0_67-b01 Java HotSpot(TM) Client VM
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) install process monitor to see file activity
a) download zip from http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
c) start Procmon.exe
d) press Filter Icon
e) Select "Process Name" "is" "jp2launcher.exe" "Include"
f) press Add
g) Select "Path" "ends with" ".class" "Include"
h) press Add
2) Start Internet Explorer 11
3) Navigate to http://docs.oracle.com/javase/tutorial/uiswing/examples/misc/index.html
4) click on Launch for AccessibleScrollDemo ( or any other)
EXPECTED VERSUS ACTUAL BEHAVIOR :
Process Monitor shows no class files accessed since they are all in JAR files.
Process Monitor shows classes being accessed in "user.dir", all show PATH NOT FOUND
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Process Monitor shows PATH NOT FOUND
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
See java examples on web for a JNLPs. Any JNLP file will show the problem with trying to access class files in current directory.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
No workaround found. Cannot override classpath or set user.dir using java-vm-args or property name/values in JNLP file.
- backported by
JDK-8135468 Web Start looks in currently directory for all classes prior to jars - slow
JDK-8140830 Web Start looks in currently directory for all classes prior to jars - slow
JDK-8147119 Web Start looks in currently directory for all classes prior to jars - slow
JDK-8148495 Web Start looks in currently directory for all classes prior to jars - slow
JDK-8139548 Web Start looks in currently directory for all classes prior to jars - slow
JDK-8148494 Web Start looks in currently directory for all classes prior to jars - slow