J/Direct
J/Direct was a technology included in some versions of Microsoft Java Virtual Machine, which allowed direct calls into the Windows API.[src] J/Direct was specific of Microsoft's Virtual Machine, in replacement of the standard Java Native Interface (JNI).[src] A Java program which used J/Direct would not run on platforms other than Microsoft Windows.[src] The release of J/Direct (along with AFC and WFC), was part of an effort by Microsoft to gain leadership on the growing Java community.[src] Since this destroyed one of the main advantages of Java, its cross-platform nature, J/Direct was often seen as an attempt by Microsoft to undermine Java's cross-platform capabilities, and an example of the tactic of embrace, extend and extinguish.[src] After the drop by Microsoft of their specific Java virtual machine, and the switch to the .NET environment, J/Direct was no longer maintained.[src]
J/Direct was a technology included in some versions of Microsoft Java Virtual Machine, which allowed direct calls into the Windows API.[src] J/Direct was specific of Microsoft's Virtual Machine, in replacement of the standard Java Native Interface (JNI).[src] A Java program which used J/Direct would not run on platforms other than Microsoft Windows.[src] The release of J/Direct (along with AFC and WFC), was part of an effort by Microsoft to gain leadership on the growing Java community.[src] Since this destroyed one of the main advantages of Java, its cross-platform nature, J/Direct was often seen as an attempt by Microsoft to undermine Java's cross-platform capabilities, and an example of the tactic of embrace, extend and extinguish.[src] After the drop by Microsoft of their specific Java virtual machine, and the switch to the .NET environment, J/Direct was no longer maintained.[src] ==Architecture== J/Direct used a kind of annotation in Java code to make the link between Java and Windows functions.[src] As annotations did not exist in Java when J/Direct was designed, Microsoft used a special syntax in Java comments.[src] For example, to declare the GetSysColor function in the User32 API: /** @dll.import("USER32", entrypoint="GetSysColor") */ static native int getSysColor(int nIndex); The Microsoft Java implementation already provided a pre-defined package which provided a set of pre-defined classes bound to the User32, Gdi32.dll, and Kernel32.dll APIs.[src] Additionally, the Microsoft VM used some built-in rules to be able to bind automatically the Java code to some Windows API functions.[src] For example, it chose automatically between ANSI and Unicode versions of Windows API functions.[src] ==See also== Java Native Interface Java Native Access P/Invoke, the equivalent .NET API ==References== ==External links== Writing Windows-Based Applications with J/Direct[src]
18 sentences · 18 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"J/Direct." encyclopegia.org, 2025, https://encyclopegia.org/wiki/j-direct. Accessed 29 November 2026.
Chicago
"J/Direct." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/j-direct.
APA
encyclopegia.org. (2025). J/Direct. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/j-direct
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON