Visual J++
Visual J++ is Microsoft's discontinued implementation of Java. Syntax, reserved words (keywords), and formal grammar conventions are the same as Java's. It was introduced in 1996 and discontinued in January 2004, replaced to a certain extent by J# and C#. The implementation, MSJVM, did not pass Sun Microsystems' compliance tests, leading to a lawsuit from Sun, Java's creator. Microsoft ceased such support for the MSJVM on December 31, 2007 (later Oracle bought Sun, and with it Java and its trademarks). Microsoft however, officially started distributing Java again in 2021 (though not bundled with Windows or its web browsers as before), i.e. their build of Oracle's OpenJDK, which Microsoft plans to support for at least six years, for LTS versions, i.e. to September 2027 for Java 17.
Visual J++ is Microsoft's discontinued implementation of Java. Syntax, reserved words (keywords), and formal grammar conventions are the same as Java's. It was introduced in 1996 and discontinued in January 2004, replaced to a certain extent by J# and C#. The implementation, MSJVM, did not pass Sun Microsystems' compliance tests, leading to a lawsuit from Sun, Java's creator. Microsoft ceased such support for the MSJVM on December 31, 2007 (later Oracle bought Sun, and with it Java and its trademarks). Microsoft however, officially started distributing Java again in 2021 (though not bundled with Windows or its web browsers as before), i.e. their build of Oracle's OpenJDK, which Microsoft plans to support for at least six years, for LTS versions, i.e. to September 2027 for Java 17. package org.wikipedia.examples; import com.ms.ui.ActionEvent; import com.ms.ui.ActionListener; import com.ms.ui.Button; import com.ms.ui.Form; public class SimpleForm { public static void main(String[] args) { Form form = new Form("Simple Form"); Button button = new Button(); button.setText("Click Me"); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { form.setText("Button Clicked!"); } }); form.add(button); form.show(); } } Calling ActiveX: package org.wikipedia.examples; import com.ms.activeX.ActiveXComponent; import com.ms.activeX.Variant; public class Example { public static void main(String[] args) { try { ActiveXComponent ax = new ActiveXComponent("InternetExplorer.Application"); ax.setProperty("Visible", new Variant(true)); ax.invoke("Navigate", new Variant("http://www.microsoft.com")); } catch (Exception e) { e.printStackTrace(); } } } Calling the Windows API: package org.wikipedia.examples; import com.ms.win32.RegistryKey; import com.ms.win32.User32; public class Example { public static void main(String[] args) { // Spawn a message box User32 user32 = new User32(); user32.MessageBox(0, "Hello from Windows API!", "Visual J++", 0); // Read a registry key RegistryKey key = new RegistryKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion"); String productName = key.getStringValue("ProductName"); System.out.printf("Product Name: %s%n", productName); } } ==References== ==External links== Product Features in Visual J++ – By Edition Microsoft Visual J# Microsoft Java Website Sun's Agreement with Microsoft
References
No reference rows published for this article.
Cite this article
MLA
"Visual J++." encyclopegia.org, 2026, https://encyclopegia.org/wiki/visual-j. Accessed 24 November 2026.
Chicago
"Visual J++." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/visual-j.
APA
encyclopegia.org. (2026). Visual J++. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/visual-j
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON