[英]What does “build:” mean in the java -cp option?
I was learning about Frege and saw this command line: 我正在学习Frege,并看到以下命令行:
$ java -Xss1m -cp build:fregec.jar examples.SimpleIO
I've never seen that build:
before. 我从未见过这样的
build:
以前。 What does that mean and what does it do? 这是什么意思,它是做什么的?
More context: https://github.com/Frege/frege/issues/289 更多上下文: https : //github.com/Frege/frege/issues/289
I don't see it documented in this official article or when I type java
at the command line. 我没有在这篇官方文章中或在命令行输入
java
时看到它。
:
is the separator, so it's including build
and fregec.jar
on the classpath. :
是分隔符,因此它包括classpath上的build
和fregec.jar
。
Looking at Frege specifically, you first use it to compile some code and create some class files in the build
directory. 专门研究Frege,首先使用它来编译一些代码,并在
build
目录中创建一些类文件。 For example: 例如:
java -Xss1m -jar fregec.jar -d build SimpleIO.fr
Then to run the compiled code you need both Frege itself, and the class files you just created, on the classpath: 然后,要运行已编译的代码,您需要在类路径上同时使用Frege本身和刚刚创建的类文件:
java -Xss1m -cp build:fregec.jar examples.SimpleIO
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.