标题翻译
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
专注分享java语言的经验与见解,让所有开发者获益!
评论