MASES.JNetCLI 2.6.6

dotnet tool install --global MASES.JNetCLI --version 2.6.6
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local MASES.JNetCLI --version 2.6.6
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MASES.JNetCLI&version=2.6.6
                    
nuke :add-package MASES.JNetCLI --version 2.6.6
                    

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

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 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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.6.6 71 2/12/2026
2.6.5 186 11/27/2025
2.6.4 192 9/22/2025
2.6.3 268 9/13/2025 2.6.3 is deprecated because it has critical bugs.
2.6.2 161 8/21/2025
2.6.1 221 8/4/2025
2.6.0 101 8/3/2025
2.5.13 115 7/19/2025
2.5.12 249 2/2/2025
2.5.11 219 12/20/2024
2.5.10 209 11/4/2024
2.5.9 177 9/19/2024
2.5.8 134 7/31/2024
2.5.7 160 7/30/2024
2.5.6 184 7/28/2024
2.5.5 237 6/27/2024
2.5.4 211 6/22/2024
2.5.3 221 6/18/2024
2.5.2 192 6/11/2024
2.5.1 220 5/25/2024
Loading failed