JDK-4079419 : Runtime.exec() ACCESS_DENIED with 16-bit application
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.1,1.1.3
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-09-16
  • Updated: 1999-01-15
  • Resolved: 1999-01-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.2.0 1.2beta4Fixed
Related Reports
Duplicate :  
Relates :  
Description
Three files to reproduce the problem has been attached.

   1. Rt2.java     : a Java source code
   2. lha.exe      : a Windows 16-bit application
   3. kobspin2.lzh : an input file to the application above

Exact steps to recreate the problem : 

   1. Place the attached source code (Rt2.java) onto your
      x86-PC with Windows NT 4.0 operation system. 

   2. Compile it with the javac and place the resulting byte
      code (Rt2.class) into one of your CLASSPATH directory.
	command line: javac Rt2.java
                        copy Rt2.class <your-class-directory> 

   3. Place the attached file lha.exe into c:\util
      directory, and kobspin2.lzh into c:\temp directory.

   4. Run the java application Rt2.   
	command line: java Rt2

      An exception should occur with the traceback exactly the 
      same as that in my original bug report.

According to a Microsoft Win32 SDK document, error number 5 from 
the CreateProcess API means "ACCESS_DENIED"

If this description still lacks something, please contact me again.

Hisato Kato
Steel CALS Consortium
mailto://###@###.###
 

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.2beta4 INTEGRATED IN: 1.2beta4
14-06-2004

EVALUATION This is a tricky bug. Even the Microsoft recent jview can not handle this. ###@###.### 1998-02-04 The above evaluation is wrong. The actual reason is we can not create a 16-bit in detached-mode. The 16-bit application must be attached to the 32-bit ntvdm process. ###@###.### 1998-02-09
09-02-1998

SUGGESTED FIX Create 16-bit application in attached mode when calling CreateProcess(). ###@###.### 1998-02-09
09-02-1998