On November 17, 1998, the District Court granted Sun Microsystems' request for a preliminary injunction in an ongoing lawsuit with Sun Microsystems regarding Java and Microsoft's Java implementation. The order requires Microsoft to change the default mode in our software development tools for Java such that Microsoft's language extensions and compiler directives must be actively enabled. Further, Microsoft must present a message to developers that programs written to take advantage of these features may not operate on other Java virtual machines and that future Microsoft products may be prohibited by court order from incorporating keyword extensions and compiler directives for its Java software development tools.

In order to comply with the court's order, this version of Visual J++ has modifications to the way in which Microsoft's language extensions and directives are treated. When creating a new blank project, Microsoft's language extensions and directives are disabled. If you wish to enable these extensions and directives, you should select the "Properties..." menu item from the "Project" menu. Change the "Configuration" item to indicate "All Configurations", and select the tab marked "Compile". To enable language extensions, uncheck the box labeled "Disable Microsoft Language Extensions." When you uncheck this box, you will see the text of a message informing you about Microsoft's language extensions, as required by the order. Language extensions must be enabled separately for each project that you work on.

Many features of Visual J++ require Microsoft language extensions to operate properly. If you attempt to use one of these features, but have not enabled language extensions for your project as described above, you will get a message box indicating that language extensions must be enabled in order for this feature to work as expected. If you select "Yes" on this message box, language extensions will be enabled for your project, and you will see the informational message. If you select No, language extensions will remain at their default, disabled setting.

The following features and operations require language extensions to be enabled in order to operate correctly:

* Adding a form.
* Marking a class as a COM (component object model) class.
* Using a COM component from a project.
* Creating a project type that requires Microsoft Windows or the Microsoft Windows Foundation Classes, such as a Windows Application, COM DLL, or WFC Control.
* Loading a project that has language extensions enabled, and which was created with a previous version of Visual J++ 6.0.

If you do not enable language extensions when using one of the above features, you may receive errors and/or warnings from the compiler when you attempt to compile your project. The following are typical examples of the kind of error messages you may see in this case:

'eventname' is not a field in class 'Form1' (J0234)
Expected 'class' or 'interface' (J0020)
Directive '@dll' ignored -- extensions are turned off (J5020)
Directive '@com' ignored -- extensions are turned off (J5020)

If you use the Microsoft Visual J++ Compiler (JVC) from the operating system command prompt, the default operation of the compiler has been changed so that Microsoft language extensions and directives are not enabled. If you wish to take advantage of these extensions, you must enable them by using the "/x-" switch when invoking the compiler. If you use batch files, "make" files, or other mechanisms to invoke the Visual J++ command line compiler (JVC), you may need to add this switch to these files.

If you use the development environment to build from the command line, by using the "/make" option on devenv.exe,  you may get the informational message about extensions in a graphical dialog. To avoid this dialog, you must open  your project in the environment, confirm that you want Microsoft extensions enabled, and read the informational  message. You must then save your project. After you save your project with this new version of Visual J++, you will  be able to build that project from the command line without seeing the informational message again.

For more information about the Sun/Microsoft lawsuit and its impact on the Visual J++ product, please see http://msdn.microsoft.com/visualj

The following is the full text of the informational message about Microsoft's language extensions, exactly as presented in the product:

Note: Use of the Microsoft language extensions for Java results in compiled code that will run only on Windows systems with the Microsoft Virtual Machine for Java installed and may not run on other virtual machines. The Microsoft Virtual Machine for Java is installed with Windows 98 and a freely redistributable version is included with this product. While future versions of Microsoft Java's development tools may be prohibited by court order from incorporating keyword extensions and compiler directives not contained in Sun's Java language specification, any code written and compiled with this version of the product will be unaffected by such a ruling.  

