Skip to content

CrystalNet-Tech2/dotNet4Java_Tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotNet4Java Tutorials

The samples in this directory use dotNet4Java to use .NET DLLs and .Net Framework Class Libraries in JAVA illustrating how you can levarage the possibilities of dotNet4Java in your JAVA projects.

dotNet4Java

The dotNet4Java is a .Net Runtime Library for Java which helps Java developers work with .Net framework and 3rd party libraries in Java with ease. It is designed to provide a way to interact with applications written in anyone of the .Net languages (such as C#, Visual Basic.Net, Delphi.Net, JScript.Net, etc) from Java.

What dotNet4Java can do:

  • Access .Net Framework Class Library (such as Collections, IO, Networking, Security, Cryptogrphy etc).
  • Access 3rd Party .Net Libraries.
  • Hosts the .Net Common Language Runtime (CLR) in Java.
  • Can load and access assemblies/types from 3rd party .Net libraries or executable files.
  • Can load and access .Net assemblies/types from Global Assembly Cache (GAC)
  • Can invoke members of a .Net types (such as constructor, fields, properties, methods and events).
  • Can create instance of .Net object.
  • Can handle .Net exceptions.
  • Can handle, access and invoke .Net events.
  • There are tools to import and generate .Net Libraries into Java class files.
  • ...and many more.

License

The Apache License 2.0 applies to all saples in this repository.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Running Tutorial Projects

To run the tutorial project:

  • Clone the repository to your local machine.
  • Download latest release of dotNet4Java Setup and Install: http://www.crystalnet-tech.com/Products/dotNet4Java/download
  • Open the project using InterlliJ IDEA or other JAVA IDE of your choice.
  • Add the dotNet4Java JAR from the installation to the tutorial project.