MASES.JNetCLI
2.5.9
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global MASES.JNetCLI --version 2.5.9
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.5.9
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MASES.JNetCLI&version=2.5.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package MASES.JNetCLI --version 2.5.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
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
[!IMPORTANT] 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
- 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 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. |
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.5.11 | 108 | a month ago | |
2.5.10 | 103 | 2 months ago | |
2.5.9 | 125 | 4 months ago | |
2.5.8 | 75 | 6 months ago | |
2.5.7 | 69 | 6 months ago | |
2.5.6 | 93 | 6 months ago | |
2.5.5 | 139 | 7 months ago | |
2.5.4 | 116 | 7 months ago | |
2.5.3 | 137 | 7 months ago | |
2.5.2 | 100 | 7 months ago | |
2.5.1 | 148 | 8 months ago | |
2.5.0 | 136 | 8 months ago | |
2.4.0 | 208 | 2/29/2024 | |
2.3.0 | 207 | 2/20/2024 | |
2.2.5 | 225 | 1/30/2024 | |
2.2.4 | 222 | 1/27/2024 | |
2.2.3 | 205 | 1/24/2024 | |
2.2.2 | 199 | 1/24/2024 | |
2.2.1 | 203 | 1/20/2024 | |
2.2.0 | 202 | 1/17/2024 | |
2.1.1 | 216 | 12/18/2023 | |
2.1.0 | 252 | 11/25/2023 | |
2.0.2 | 290 | 10/18/2023 | |
2.0.1 | 230 | 7/11/2023 | |
2.0.0 | 215 | 7/5/2023 | |
1.5.5 | 216 | 5/5/2023 | |
1.5.4 | 226 | 4/16/2023 | |
1.5.3 | 248 | 4/10/2023 | |
1.5.2 | 252 | 3/13/2023 | |
1.5.1 | 268 | 2/9/2023 | |
1.5.0 | 290 | 2/8/2023 | |
1.4.15 | 354 | 11/21/2022 | |
1.4.14 | 366 | 11/9/2022 | |
1.4.13 | 356 | 11/9/2022 | |
1.4.12 | 384 | 10/30/2022 | |
1.4.11 | 394 | 10/27/2022 | |
1.4.8 | 450 | 10/20/2022 |