dotnet tool install --global MASES.JNetCLI --version 2.4.0
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.4.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MASES.JNetCLI&version=2.4.0
nuke :add-package MASES.JNetCLI --version 2.4.0

title: JNet CLI tool of Java/JVM suite for .NET _description: Describes the CLI tool to use Java/JVM classes from any command-line shell



[!IMPORTANT] The dotnet tool needs a JRE/JDK installed within the system (see JVM identification)


To use the CLI interface (JNetCLI) runs a command like the following:

  • dotnet tool
jnet -i
  • Docker image
docker run -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/ if JCOBridge is not able to identify a suitable JRE installation.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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.4.0 134 2/29/2024
2.3.0 145 2/20/2024
2.2.5 150 1/30/2024
2.2.4 158 1/27/2024
2.2.3 135 1/24/2024
2.2.2 134 1/24/2024
2.2.1 124 1/20/2024
2.2.0 133 1/17/2024
2.1.1 157 12/18/2023
2.1.0 168 11/25/2023
2.0.2 218 10/18/2023
2.0.1 185 7/11/2023
2.0.0 166 7/5/2023
1.5.5 176 5/5/2023
1.5.4 181 4/16/2023
1.5.3 204 4/10/2023
1.5.2 220 3/13/2023
1.5.1 240 2/9/2023
1.5.0 250 2/8/2023
1.4.15 313 11/21/2022
1.4.14 323 11/9/2022
1.4.13 317 11/9/2022
1.4.12 343 10/30/2022
1.4.11 350 10/27/2022
1.4.8 406 10/20/2022