gpt4 book ai didi

java - 调用 JRuby 会显示 java 选项菜单

转载 作者:行者123 更新时间:2023-12-01 15:40:32 26 4
gpt4 key购买 nike

当我在命令行上运行 jruby.exe 或任何其他 ruby​​ 可执行文件(例如 rakebundle 等)时,它会打印 java 帮助消息(如如下)就好像我只是在命令行上执行了 java 一样。

我不知道这是怎么开始发生的。周五一切似乎都运转良好。我已经检查了我的 PATH 变量、JRUBY_OPTS 变量,一切都设置正确。如果有人理解为什么会发生这种情况以及我如何解决这个问题,我将不胜感激。我已经尝试了几个小时但没有成功。

示例:

cmd> rake

Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument

-splash:<imagepath>
show splash screen with specified image

最佳答案

Windows 更新似乎已经解决了该问题。这种情况不再发生。

关于java - 调用 JRuby 会显示 java 选项菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8116936/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com