在Mac上有\_JAVA_OPTIONS吗?

huangapple 未分类评论54阅读模式
标题翻译

Is there _JAVA_OPTIONS on Mac?

问题

macOS上是否有 _JAVA_OPTIONS?如果有,如何像在Windows上(Windows键和暂停/中断键)那样访问它?

英文翻译

I was wondering if there was _JAVA_OPTIONS on macOS. If yes, how can I get to it like on Windows (windows key and pause/break)?

答案1

得分: 0

_JAVA_OPTIONS 是一个环境变量,在 macOS 上没有像 Windows 上那样的界面来设置它,您必须在终端中定义它(针对该会话),或者在文件中定义它(针对所有将来的会话)。如果您选择在文件中设置它,可以根据您使用的终端是 .bash_profile 还是 .zshrc,将其添加到相应的文件中。可以参考这个链接查看示例。

英文翻译

_JAVA_OPTIONS, is an environment variable, theres is no screen on mac for setting it like on windows, you have to define it on your terminal (for that session) or in a file (for all future sessions) if you choose to set it on a file, that could be .bash_profile o .zshrc depending on which terminal you use, take a look at thisfor an example

huangapple
  • 本文由 发表于 2020年5月30日 23:46:56
  • 转载请务必保留本文链接:https://java.coder-hub.com/62104896.html
匿名

发表评论

匿名网友

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

确定