MASES.JNetCLICore
2.5.13
dotnet add package MASES.JNetCLICore --version 2.5.13
NuGet\Install-Package MASES.JNetCLICore -Version 2.5.13
<PackageReference Include="MASES.JNetCLICore" Version="2.5.13" />
<PackageVersion Include="MASES.JNetCLICore" Version="2.5.13" />
<PackageReference Include="MASES.JNetCLICore" />
paket add MASES.JNetCLICore --version 2.5.13
#r "nuget: MASES.JNetCLICore, 2.5.13"
#:package MASES.JNetCLICore@2.5.13
#addin nuget:?package=MASES.JNetCLICore&version=2.5.13
#tool nuget:?package=MASES.JNetCLICore&version=2.5.13
title: JNet CLI tool of .NET suite for Java™/JVM™ _description: Describes the CLI tool to use Java™/JVM™ classes from any command-line shell
JNet: CLI
Installation
- dotnet tool hosted on NuGet: check https://www.nuget.org/packages/MASES.JNetCLI/ and https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools for deep installation instructions.
- Docker image hosted on GitHub and Docker Hub: follow instruction within the page and general instruction on https://docs.docker.com
- The image hosts both .NET 6 and JRE 11 runtimes
The dotnet tool needs a JRE/JDK installed within the system (see JVM identification)
Usage
To use the CLI interface (JNetCLI) runs a command like the following:
- dotnet tool
jnet -i
If the previous command raises the error described in Intel CET and JNet, the only solution is to apply the following workaround (within an elevated shell) and disable CET:
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\jnet.exe" /v MitigationOptions /t REG_BINARY /d "0000000000000000000000000000002000" /f
- Docker image
docker run ghcr.io/masesgroup/jnet -i
docker run masesgroup/jnet -i
Command switch available
jnet accepts the following command-line switch:
- Interactive (i): Activates an interactive shell
- RunCommand (r): executes the main method of a specific Java class in argument and exit
- Script (s): Executes the c# script in the file arument
- JarList (jl): A CSV list of JAR to be used or folders containing the JARs
- NamespaceList (nl): A CSV list of namespace to be used for interactive shell, JNet namespace are added automatically
- ImportList (il): A CSV list of import to be used
Plus other switches available at Command line switch page.
JVM identification
One of the most important command-line switch is JVMPath and it is available in JCOBridge switches: it can be used to set-up the location of the JVM library (jvm.dll/libjvm.so) if JCOBridge is not able to identify a suitable JRE installation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- MASES.JNet (>= 2.5.13)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.7)
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.14.0)
-
net8.0
- MASES.JNet (>= 2.5.13)
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.14.0)
-
net9.0
- MASES.JNet (>= 2.5.13)
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.14.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
2.5.13 | 19 | 7/19/2025 |