创建文件时无法在jarfile cvf错误

发布于 2025-01-26 10:49:25 字数 387 浏览 0 评论 0原文

当我尝试从3个.class文件创建JAR文件时 (使用此命令Java -jar CVF Morpion.jar Main.class Player.Class Morpion.Class)此错误出现错误:无法访问Jarfile CVF。我已经在这里搜索了一些帮助,但是有关此错误的所有内容都是关于启动JAR文件的所有信息,但是我对此没有任何问题,它只是创建一个问题的文件。 我试图将CVF更改为CF,但它只是更改了错误消息,然后我尝试从命令中的morpion.jar.jar中删除JAR,但没有任何可用。 我正在使用Java 18.0.1,并且我有JDK,并且设置了Java_home,我可以找到Jar.exe文件的路径,但我无法使用它,因为“它不是内部命令或可执行文件“

When i try to create a jar file from 3 .class files
(with this command java -jar cvf morpion.jar main.class Players.class Morpion.class) this error appears Error: Unable to access jarfile cvf. i already searched some help here but everything about this error was about launching the jar file but i don't have any problem with it, it's just creating the file that is a problem.
i've tried to change cvf to cf but it just change the error message and i tried to remove the jar from morpion.jar in the command but nothing works.
i'm using java 18.0.1 and i have the jdk and my JAVA_HOME is set, i can find the path for the jar.exe file witheout any problem but i can't use it because "it's not an internal command or an executabable"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文