创建文件时无法在jarfile cvf错误
当我尝试从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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论