Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This page links to help on widely used J# language tasks. To view other categories of popular tasks covered in Help, see How Do I in Visual J# Express.
- Getting Started with Visual J# Express
Provides some suggestions for getting started in Visual J#.
Java and J#
- How to: Use the Try/Catch Block to Catch Exceptions
Contains a code example that uses a try-catch block to catch a possible exception.
- How to: Create Enumerated Constants
Describes how J# enables you to create your own data types using the enum keyword.
- How to: Convert Java-Language Bytecode to MSIL Code
Describes how you can quickly convert many legacy Java applications to Visual J#.
- Supplemental UI Library
Provides supplemental library support for more information about applets.
J# and .NET
- How to: Implement an Interface in J#
Explains how the implements keyword enables your class to declare methods with the same signature as the interface and then implement them.
- How to: Use Specific Exceptions in a Catch Block
Explains that you should put catch blocks targeted to specific exceptions before a general exception catch block or the compiler might issue an error.
- Attaching Attributes
Explains how to use Visual J# to attach attributes to classes, fields, methods, parameters, and other programming elements.
- Calling Methods That Take Arguments By Reference
Describes how Visual J# follows the C++ style where you can directly call the method and pass the parameter just like in the normal case, and the Visual J# compiler does the conversion implicitly.
- Defining and Using Properties
Suggests you use Visual J# to access properties defined in .NET Framework classes. Visual J# translates properties in .NET Framework classes to the accessor methods: get_ and set_.
- Definition and Use of Events
Explains that Visual J# allows you to register for events published by .NET Framework classes.
- Using Enumerations
Suggests you use enumerations defined in the .NET Framework or other user-defined assemblies with the J# compiler.
- Calling Methods That Take Arguments By Reference
Describes how Visual J# follows the C++ style where you can directly call the method and pass the parameter just like in the normal case and the Visual J# compiler does the conversion implicitly.
- Common Language Specification Compliance Checking
Explains that for a given type to be used by other languages, it must be compliant with the CLS.
Exceptions
- Exception Handling Fundamentals
Contains suggestions on best practices for handling exceptions.
- Handling and Throwing Exceptions
Provides an overview on exception handling using the .NET Framework and Visual Studio, including best practices.
- How to: Use the Try/Catch Block to Catch Exceptions
Uses a try-catch block to catch a possible exception
- How to: Use Specific Exceptions in a Catch Block
Puts catch blocks targeted to specific exceptions before a general exception catch block or the compiler might issue an error.
Reflection
- Reflection Overview
Provides conceptual information about reflection and links for using it.
Accessing Native Functions
- Calling Native Methods
Explains how you can use the platform invocation services provided by the common language runtime to call into native code.
- How to: Call a Method in a DLL from Visual J#
Includes an example that shows you how to call both static and dynamic methods from the vjslib.dll library.
- PInvoke Sample (Call Unmanaged APIs)
Demonstrates how Visual J# can use the platform invoke services provided by the common language runtime to call unmanaged APIs.
Standards and Conventions
- How to: Compile a Java-language Application in Visual J#
Shows you how to create your own project, add your existing .java files, and compile them with J#.
- Common Language Specification Compliance Checking
Explains that the compiler provides support for checking types for compliance with the Common Language Specification (CLS).