Visual J++

Uses your system voice; voice and rate in settings.

Snapshot

≈ 3 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

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

Text derived from https://en.wikipedia.org/w/index.php?oldid=1377138432 under CC BY-SA 4.0; modifications have been made.