JvmBridge.Tool 26.11.19.7823

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global JvmBridge.Tool --version 26.11.19.7823
                    
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 JvmBridge.Tool --version 26.11.19.7823
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=JvmBridge.Tool&version=26.11.19.7823
                    
nuke :add-package JvmBridge.Tool --version 26.11.19.7823
                    

JvmBridge.Tool

The jvmbridge command, a .NET tool that ships next to the JvmBridge package.

dotnet tool install --global JvmBridge.Tool

jvmbridge dump

Disassembles a class in the style of javap -c, from a class file or from a jar:

jvmbridge dump Service.class --method handle
jvmbridge dump app.jar                       # lists the classes
jvmbridge dump app.jar --class com/acme/Service

jvmbridge patch --dry-run

Previews what the patches of an agent would do to class files, without a JVM. The tool runs the agent's Configure against an offline JVM, then applies the patches it registered to the classes you give it:

jvmbridge patch --dry-run --agent bin/Release/net10.0/MyAgent.dll --classes app.jar --disassemble

Only patches registered in Configure are visible; patches an agent registers later, and custom TransformClass overrides, are not previewed. Use a tool version at least as new as the JvmBridge package the agent was built with.

jvmbridge pack

Packs the published native libraries of an agent, and the jars of single platforms, into one jar that java -javaagent starts on any of its platforms:

jvmbridge pack -o agent.jar --agent linux-x64=publish/linux-x64/MyAgent.so --agent win-x64=publish/win-x64/MyAgent.dll
jvmbridge pack -o agent.jar --jar linux-x64/MyAgent.jar --jar linux-arm64/MyAgent.jar
java -javaagent:agent.jar=log=debug -jar app.jar

The jar carries a small launcher class that extracts the library of the running platform into a private directory under java.io.tmpdir and loads it; that directory must be writable. The agent then starts as if it had been attached to the running JVM, with the text after = as its options. A JVM that finds no library for its platform stops at startup with a message that names the platforms the jar has.

A project that builds with the JvmBridge package can write these jars without the tool: <JvmBridgeAgentJar>true</JvmBridgeAgentJar> makes dotnet publish write a one-platform jar beside the library, and the JvmBridgeMergeAgentJars target combines such jars.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
26.11.20.3910 10 11/20/2026
26.11.20.3606 17 11/20/2026
26.11.20.3517 11 11/20/2026
26.11.19.7823 45 11/19/2026
26.11.18.9307 45 11/18/2026
26.11.18.2199 54 11/18/2026
26.11.18.1773 52 11/18/2026
26.11.17.5183 52 11/17/2026
26.11.16.9471 83 11/16/2026
26.11.16.2576 100 11/16/2026
26.11.15.9621 90 11/15/2026
26.11.12.3660 92 11/12/2026
26.11.12.3002 91 11/12/2026
26.11.11.5979 86 11/11/2026
26.11.10.9660 96 11/11/2026
26.11.10.9155 87 11/10/2026
26.11.10.8181 83 11/10/2026
26.11.10.7408 94 11/10/2026
26.11.10.7204 79 11/10/2026
26.11.10.6716 87 11/10/2026
Loading failed

- chore(deps): ⬆️ update void-community/actions digest to 61ac0ce (32947c1)