JDK-4510690 : Dynamic link library nio.dll not found when opening pipes (b82)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2001-10-04
  • Updated: 2001-10-16
  • Resolved: 2001-10-09
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.4.0 beta3Fixed
Related Reports
Relates :  
Description
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b82)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b82, mixed mode)

Running nio tests on windows 2000 results in an error dilog box. And after closing it following exception comes.

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\j2sdk1.4.0-beta3\j
re\bin\nio.dll: Can't find dependent libraries
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1447)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1363)
        at java.lang.Runtime.loadLibrary0(Runtime.java:775)
        at java.lang.System.loadLibrary(System.java:835)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.Util.load(Util.java:225)
        at sun.nio.ch.IOUtil.<clinit>(IOUtil.java:302)
        at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:27)
        at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:29
)
        at EmptyRead.main(EmptyRead.java:18)


###@###.### 2001-10-03
The workaround for this problem is to incluse net.dll in the PATH.

###@###.### 2001-10-08
java version "1.4.0-internal"
Java(TM) 2 Runtime Environment, Standard Edition (build1.4.0-internal-iag_04_oct_2001_15_50)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b82, mixed mode)
 Fix is verified in PIT build. 
###@###.### 2001-10-16
verified in b83.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta3 FIXED IN: merlin-beta3 INTEGRATED IN: merlin-beta3 VERIFIED IN: merlin-beta3
14-06-2004

EVALUATION Here's a minimum failing test: import java.nio.channels.Pipe; public class Basic { public static void main(String[] args) throws Exception { Pipe p = Pipe.open(); } } The loads in sun.nio.ch.Util.load() need to be reordered. -- iag@sfbay 2001-10-04
04-10-2001

SUGGESTED FIX sun/nio/ch/Util.java: *** /tmp/geta26349 Thu Oct 4 15:03:52 2001 --- /tmp/getb26349 Thu Oct 4 15:03:52 2001 *************** *** 223,231 **** return; loaded = true; java.security.AccessController - .doPrivileged(new sun.security.action.LoadLibraryAction("nio")); - java.security.AccessController .doPrivileged(new sun.security.action.LoadLibraryAction("net")); } } --- 223,231 ---- return; loaded = true; java.security.AccessController .doPrivileged(new sun.security.action.LoadLibraryAction("net")); + java.security.AccessController + .doPrivileged(new sun.security.action.LoadLibraryAction("nio")); } } -- iag@sfbay 2001-10-04
04-10-2001