![]() |
VOOZH | about |
dotnet add package MASES.JCOBridge --version 2.6.9
NuGet\Install-Package MASES.JCOBridge -Version 2.6.9
<PackageReference Include="MASES.JCOBridge" Version="2.6.9" />
<PackageVersion Include="MASES.JCOBridge" Version="2.6.9" />Directory.Packages.props
<PackageReference Include="MASES.JCOBridge" />Project file
paket add MASES.JCOBridge --version 2.6.9
#r "nuget: MASES.JCOBridge, 2.6.9"
#:package MASES.JCOBridge@2.6.9
#addin nuget:?package=MASES.JCOBridge&version=2.6.9Install as a Cake Addin
#tool nuget:?package=MASES.JCOBridge&version=2.6.9Install as a Cake Tool
Information and examples on www.jcobridge.com.
Templates moved on NuGet JNet Templates
GitHub hosts some public repositories based on JCOBridge:
Other products extending JCOBridge can be found on https://www.jcobridge.com/products/
Built on top of the field proven DLR plugin available in the Sinapse platform (https://www.sinapsesystem.com), JCOBridge guarantees the best performance in JVM and CLR worlds integration.
CLR - Available for .NET Framework (Windows only), 8, 9 and 10 on Windows (x86/x64/Arm64), Linux (x64/Arm/Arm64) and MacOS (x86_64/Aarch64) (other platforms/architectures available on demand):
Class both directly or like a developer can done using the .class keyword in JavaClass or using dynamic feature of .NETClass or using dynamic feature of .NETJVM - Available for .NET Framework (Windows only), 8, 9 and 10 on Windows (x86/x64/Arm64), Linux (x64/Arm/Arm64) and MacOS (x86_64/Aarch64) (other platforms/architectures available on demand):
TypeTypeTypeImagine you have the following Java Class:
public class MyJavaClass
{
//Static member
static public String myStaticJavaHelloWorld()
{
return "Hello Static World from Java!!";
}
//Instance member
public String myJavaHelloWorld()
{
return "Hello World from Java!!";
}
//Instance member
public double myJavaAdd(double a, double b)
{
return a+b;
}
}
JCOBridge helps to use the previous Java class from C# to access both static and instance methods.
Define a class that use the Java code:
class MyJavaUsingClass : SetupJVMWrapper
{
public void Execute()
{
string hello = DynJVM.MyJavaClass.myStaticJavaHelloWorld();
Console.WriteLine(hello); //Print "Hello Static World from Java!!"
var myJavaClass = DynJVM.MyJavaClass.@new();
hello = myJavaClass.myJavaHelloWorld();
Console.WriteLine(hello); //Print "Hello World from Java!!"
double result = myJavaClass.myJavaAdd(2.0, 3.0);
Console.WriteLine("{1:0.0}",result); //Print "5.0"
}
}
Add JCOBridge initialization before call the Execute method.
using MASES.LicenseManager.Common;
using MASES.JCBridge.C2JBridge;
using System;
static void Main(string[] args)
{
MyJavaUsingClass JavaTest = new MyJavaUsingClass();
JavaTest.Execute();
}
Other examples are available on JCOBridge website
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Framework | net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
This package has no dependencies.
Showing the top 2 NuGet packages that depend on MASES.JCOBridge:
| Package | Downloads |
|---|---|
|
MASES.JNet
.NET suite for Java™/JVM™ - a comprehensive suite of libraries and tools to use Java™/JVM™ APIs (Java, Scala, Kotlin, ...) and .NET side-by-side |
|
|
MASES.JCOReflectorEngine
JCOReflector Engine - JCOBridge based Java class generator that mimic .NET classes |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.6.9 | 971 | 6/11/2026 |