Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (10.2k points)

In Java, you often see a META-INF folder containing some meta files. What is the purpose of this folder and what can I put there?

1 Answer

0 votes
by (46k points)
edited by

Commonly articulating, you should not put anything into META-INF yourself. Rather, you should rely on against everything you apply to package up your JAR. This is one of the states where I believe Ant excels: defining JAR file visible characteristics. It's very simple to say something like:

<jar ...>

<manifest>

<attribute name="Main-Class" value="MyApplication"/>

</manifest>

</jar>

At the slightest, I guess that's clear... :-)

Are you interested in learning Java from the basics! Refer to this video on Java provided by Intellipaat:

The aim is that META-INF should be deemed an in-house Java meta record. Don't mess with it! Any data you want to combine with your JAR should be stored in some other sub-directory or at the source of the JAR itself.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Sep 11, 2019 in Java by Krishna (2.6k points)

Browse Categories

...