如何设置环境配置?

huangapple go评论83阅读模式
英文:

How to set environment setting?

问题

https://downloads.jboss.org/byteman/4.0.20/byteman-programmers-guide.html#environment-settings
[enter image description here](https://i.stack.imgur.com/8Ru0t.png)
如何设置 "org.jboss.byteman.compileToBytecode" 属性?
这个文档没有提供示例。

我尝试设置环境属性如下:

export org.jboss.byteman.dump.generated.classes=1

但出现了一个问题:
-bash: export: 'org.jboss.byteman.dump.generated.classes=1': 不是一个有效的标识符
英文:

https://downloads.jboss.org/byteman/4.0.20/byteman-programmers-guide.html#environment-settings
enter image description here
how to set "org.jboss.byteman.compileToBytecode" property?
this document doesn't give an example.

I try to set environment proproty as follow:

export org.jboss.byteman.dump.generated.classes=1

but get an issue:
-bash: export: `org.jboss.byteman.dump.generated.classes=1': not a valid identifier

答案1

得分: 1

这是一个JVM属性。您可以使用以下方式设置它:

java -Dorg.jboss.byteman.dump.generated.classes=1 -javaagent:$BYTEMAN_HOME/lib/byteman.jar=script:appmain.btm AppMain foo bar baz
英文:

This is a JVM property. You can set it this way:

java -Dorg.jboss.byteman.dump.generated.classes=1 -javaagent:$BYTEMAN_HOME/lib/byteman.jar=script:appmain.btm AppMain foo bar baz

huangapple
  • 本文由 发表于 2023年2月8日 17:31:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/75383705.html
  • byteman
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定