-
Bug
-
Resolution: Fixed
-
P2
-
8u91, 8u102, 9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8168216 | 8u152 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8163599 | 8u121 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8156024 | 8u112 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8159646 | 8u111 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8158834 | 8u102 | Dmitry Markov | P2 | Resolved | Fixed | b11 |
JDK-8158394 | 8u92 | Dmitry Markov | P2 | Resolved | Fixed | b32 |
JDK-8167693 | emb-8u121 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8162034 | emb-8u111 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8157018 | 7u121 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8158831 | 7u111 | Dmitry Markov | P2 | Closed | Fixed | b11 |
JDK-8157019 | 6u131 | Dmitry Markov | P2 | Resolved | Fixed | b01 |
JDK-8158829 | 6u121 | Dmitry Markov | P2 | Closed | Fixed | b09 |
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Java Web Start 11.91.2.14
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
The system property 'user.dir' which previously resolved to the user's working directory is now resolving to the 'java.home' value when a JNLP application is launched using java web start packaged in Java 8 u91 on Windows.
This does not appear to be broken in the OS X version.
REGRESSION. Last worked in version 8u77
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
Java Web Start 11.77.2.03
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run any JNLP app with the Java Webstart console displayed. Press 's' to print the system properties.
With Java Web Start 11.77.2.03 or previous the user's working directory is shown. For Java Web Start 11.91.2.14 the java.home directory is shown.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expect 'user.dir' to show the user's working directory
Java Web Start 11.77.2.03
Using JRE version 1.8.0_77-b03 Java HotSpot(TM) 64-Bit Server VM
java.home = C:\Users\David\Downloads\jre-8u77-windows-x64.tar\jre1.8.0_77
java.io.tmpdir = C:\Users\DAVID\AppData\Local\Temp\
java.library.path = C:\Users\David\Downloads\jre-8u77-windows-x64.tar\jre1.8.0_77\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Mozilla Firefox;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;"C:\Users\David\Downloads\jre-8u77-windows-x64.tar\jre1.8.0_77\bin";.
java.protocol.handler.pkgs = com.sun.javaws.net.protocol|com.sun.deploy.net.protocol|com.sun.deploy.net.protocol
java.rmi.server.RMIClassLoaderSpi = com.sun.jnlp.JNLPRMIClassLoaderSpi
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_77-b03
java.security.manager =
java.security.policy = file:C:\Users\David\Downloads\jre-8u77-windows-x64.tar\jre1.8.0_77\lib\security\javaws.policy
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_77
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = Oracle Corporation
java.vm.version = 25.77-b03
javaplugin.proxy.config.type = direct
javawebstart.version = javaws-11.77.2.03
user.dir = C:\Program Files (x86)\Mozilla Firefox
ACTUAL -
'user.dir' shows the java.home directory.
Java Web Start 11.91.2.14
Using JRE version 1.8.0_91-b14 Java HotSpot(TM) 64-Bit Server VM
java.home = C:\Users\David\Downloads\jre-8u91-windows-x64.tar\jre1.8.0_91
java.io.tmpdir = C:\Users\DAVID\AppData\Local\Temp\
java.library.path = C:\Users\David\Downloads\jre-8u91-windows-x64.tar\jre1.8.0_91\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Mozilla Firefox;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;"C:\Users\David\Downloads\jre-8u91-windows-x64.tar\jre1.8.0_91\bin";.
java.protocol.handler.pkgs = com.sun.javaws.net.protocol|com.sun.deploy.net.protocol|com.sun.deploy.net.protocol
java.rmi.server.RMIClassLoaderSpi = com.sun.jnlp.JNLPRMIClassLoaderSpi
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_91-b14
java.security.manager =
java.security.policy = file:C:\Users\David\Downloads\jre-8u91-windows-x64.tar\jre1.8.0_91\lib\security\javaws.policy
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_91
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = Oracle Corporation
java.vm.version = 25.91-b14
javaplugin.proxy.config.type = direct
javawebstart.version = javaws-11.91.2.14
user.dir = C:\Users\David\Downloads\jre-8u91-windows-x64.tar\jre1.8.0_91
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Launch one of the Java tutorial examples e.g.:
https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/BorderDemoProject/BorderDemo.jnlp
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Revert to older java version
- backported by
-
JDK-8156024 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8157018 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8157019 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8158394 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8158834 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8159646 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8162034 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8163599 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8167693 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8168216 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Resolved
-
JDK-8158829 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Closed
-
JDK-8158831 System property 'user.dir' now set to 'java.home' value rather than user's working directory
- Closed
- duplicates
-
JDK-8155614 Wrong user.dir in jre1.8.0_91
- Closed
- relates to
-
JDK-8156822 Application started using javaws now starts in {java.home} rather than current directory
- Resolved