gpt4 book ai didi

java - java -cp "*"是什么意思?

转载 作者:行者123 更新时间:2023-12-01 12:53:13 25 4
gpt4 key购买 nike

我正在 Windows 上开发斯坦福情感分类器。我想重新训练我自己的模型,网站上是这样指定的:

java -mx8g edu.stanford.nlp.sentiment.SentimentTraining -numHid 25 -trainPath train.txt -devPath dev.txt -train -model model.ser.gz

但这给了我错误:

could not find or load main class

但是将其更改为 java -cp "*" 后它就起作用了。

最佳答案

Class path entries can contain the basename wildcard character , which is considered equivalent to specifying a list of all the files in the directory with the extension .jar or .JAR. For example, the class path entry foo/ specifies all JAR files in the directory named foo. A classpath entry consisting simply of * expands to a list of all the jar files in the current directory.

来自Oracle Docs

关于java - java -cp "*"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24055468/

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