I tried
javac Something.java -cp ".; some\\\\directory\\\\xxx.jar"
and it worked. I could compile the file in this way.
But when running the file, i realized that I must put -cp in front, making it
java -cp ".;some\\\\directory\\\\xxx.jar" Something
Why is there such a difference?
Thanks
在运行时,您将在Something
之后提供的所有内容均视为程序参数
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.