Visual J Sharp
Paradigm | Object-oriented, structured, imperative |
---|---|
Developer | Microsoft |
First appeared | July 1, 2002 |
Final release | v2.0 Second Edition
/ 18 May 2007 |
Platform | .NET Framework |
Influenced by | |
Java and Visual J++ |
Visual J# (pronounced "jay-sharp") is a discontinued implementation of the J# programming language that was a transitional language for programmers of Java and Visual J++ languages, so they could use their existing knowledge and applications with the .NET Framework.[1][2] It was introduced in 2002[3] and discontinued in 2007, with support for the final release of the product continuing until October 2017.
J# worked with Java bytecode as well as source so it could be used to transition applications that used third-party libraries, even if their original source code was unavailable.[citation needed] It was developed by the Hyderabad-based Microsoft India Development Center at HITEC City in India.[4][5]
The implementation of Java in Visual J++, MSJVM, did not pass Sun's compliance tests leading to a lawsuit from Sun, Java's creator, and creation of J#. 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 with J++), i.e. their build of Oracle's OpenJDK,[6] which Microsoft plans to support for at least 6 years, for LTS versions, i.e. to September 2027 for Java 17.
Fundamental differences between J# and Java
Java and J# use the same general syntax but there are non-Java conventions in J# to support the .NET environment. For example, to use .NET "properties" with a standard JavaBean class, it is necessary to prefix getter and setter methods with the Javadoc-like annotation:
/** @beanproperty */
…and change the corresponding private variable name to be different from the suffix of the getXxx/setXxx names[citation needed].
J# does not compile Java-language source code to Java bytecode (.class files), and does not support Java applet development or the ability to host applets directly in a web browser, although it does provide a wrapper called Microsoft J# Browser Controls for hosting them as ActiveX objects. Finally, Java Native Interface (JNI) and raw native interface (RNI) are substituted with P/Invoke; J# does not support remote method invocation (RMI).[7]
InfoWorld said: "J#'s interface to the .NET framework is solid, but not as seamless as C#. In particular, J# code cannot define new .NET attributes, events, value types, or delegates. J# can make use of these language constructs if they are defined in an assembly written in another language, but its inability to define new ones limits J#'s reach and interoperability compared to other .NET languages."[8]
Contrariwise, Microsoft documentation for Visual Studio 2005 details the definition of .NET delegates,[9] events,[10] and value types[11] directly in J#.
History of J#
In January 2007, Microsoft announced:[12]
- That Microsoft would produce an updated version of Visual J# 2.0, including a 64-bit redistributable version, called J# 2.0 Second Edition to meet customer demand for 64-bit runtime support. Microsoft released Visual J# 2.0 Second Edition in May 2007.[13]
- Retirement of the J# language and Java Language Conversion Assistant from future versions of Visual Studio. The last version, shipping with Visual Studio 2005, was supported until 2015.
- Calling J# code from .NET 4.0 code would fail unless vjsnativ.dll was pre-loaded.[14]
The download of Visual J# 2005 Express Edition is no longer available from Microsoft's website.
Visual J# is out of support including the Visual J# 2.0 Redistributable Second Edition released in 2007, that was supported through to 2017 "(5 years mainstream and 5 years extended support) on EN-US locales."[15][16]
See also
References
- ↑ "Visual J# Home" (in en). https://msdn.microsoft.com/en-us/vstudio/bb188593.
- ↑ "Java to .NET Framework Migration Workshop: Free Online Training". http://msdn2.microsoft.com/en-us/vjsharp/aa700852.aspx.
- ↑ Microsoft News, [1], 1 July 2002
- ↑ S Prasanna, Microsoft's VJ#.Net is made in India, Express Computer, 29 July 2002
- ↑ "The Hindu Business Line : Microsoft lines up big plans for Hyderabad centre". www.thehindubusinessline.com. http://www.thehindubusinessline.com/bline/2002/08/15/stories/2002081500530700.htm.
- ↑ "Announcing General Availability of Microsoft Build of OpenJDK" (in en-US). 2021-05-25. https://devblogs.microsoft.com/java/announcing-general-availability-of-microsoft-build-of-openjdk/.
- ↑ "Visual J# Migration". MSDN Library. http://msdn.microsoft.com/en-us/library/7622y256(v=vs.80).aspx.
- ↑ Yager, Tom (2001-11-21). "Just don't call J# Java". InfoWorld. https://www.infoworld.com/article/2075819/just-don-t-call-j--java.html.
- ↑ "delegate (Visual J#)". MSDN Library. https://msdn.microsoft.com/en-us/library/0kks3c36(v=vs.80).aspx.
- ↑ "Definition and Use of Events". MSDN Library. https://msdn.microsoft.com/en-us/library/09b0135h(v=vs.80).aspx.
- ↑ "User-Defined Value Types". MSDN Library. https://msdn.microsoft.com/en-us/library/wysdab55(v=vs.80).aspx.
- ↑ Microsoft Developer Network, Visual J# Product Announcement, 10 January 2007
- ↑ "Visual J# 2.0 Second Edition Redistributable Download". http://www.microsoft.com/downloads/details.aspx?familyid=42C46554-5313-4348-BF81-9BB133518945&displaylang=en.
- ↑ "Calling J# code from .NET 4.0 - Windward Wrocks". http://blogs.windwardreports.com/davidt/2011/02/calling-j-code-from-net-40.html.
- ↑ "Visual J# Home". https://msdn.microsoft.com/en-us/vstudio/bb188593.
- ↑ "End of Support for Visual Studio 2008 – in One Year" (in en-US). https://blogs.msdn.microsoft.com/visualstudio/2017/04/10/end-of-support-for-visual-studio-2008-in-one-year/.
External links
Original source: https://en.wikipedia.org/wiki/Visual J Sharp.
Read more |