So I'm compiling, and I wrote compile.bat
as I usually would:
@echo off
cls
cd .
javac resources/*.java
jar cmf program.jar manifest.txt resources/*.class
but it says:
resources\*.class : no such file or directory
Invalid switch - "*.class".
What am I doing wrong this time? I've never had this error.
Top comments (2)
Can you check where jar.exec is located, the synatax of
jar cmf is wrong..
docs.oracle.com/en/java/javase/14/...
Thanks for the help.