How to create jar file on windows?

to create a custom section theme. I would like to create a jar

my folder structure:

- jar - META-INF - resources - Primefaces-myrtheme - theme.css - images 

I tried the following command:

 > Jar-cvf nameOfMyTheme.jar 

but its not working :(

+4
source share
2 answers

You did not specify any input files for your team.

You need to do it as follows: -

 jar cvf nameOfMyTheme.jar YourClass.class 

Take a look at this ... http://docs.oracle.com/javase/tutorial/deployment/jar/build.html

+2
source

You will need to tell the jar team where to find the class files and resource files and any additional information that you would like to have in the manifest file. Information on using the jar command can be found here .

The -cvf command accepts this format.

 jar c[v0M]f jarfile [-C dir] inputfiles [-Joption] 
+1
source

Source: https://habr.com/ru/post/1437351/


All Articles