Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JAR File is Viewed as Folder

I have a JAR-file in the WEB-INF/lib directory of my project that is displayed as folder when I deploy my project to Tomcat.

I use Maven for getting JAR-files, Eclipse for building my app, and deploying to Tomcat.

Why is the JAR-file displayed as folder? I cannot use the file in this way, and Tomcat does not see it.

like image 778
koc9n Avatar asked Jun 11 '12 13:06

koc9n


People also ask

How do I view a .JAR file?

To view individual files in a non-executable jar file, you can obtain compression/decompression software that works with jar files. We recommend using either 7-Zip or WinRAR. Once you have installed this software, run the software, open the jar file, and extract the files contained in it.

Where is JAR file located?

A JAR file may contain a manifest file, that is located at META-INF/MANIFEST. MF . The entries in the manifest file describe how to use the JAR file. For instance, a Classpath entry can be used to specify other JAR files to load with the JAR.

Is jar just a ZIP?

A JAR file is essentially a zip file that contains an optional META-INF directory. A JAR file can be created by the command-line jar tool, or by using the java. util. jar API in the Java platform.


1 Answers

Setting for child project (using wtp)

This settings is for any child module if we have one parent maven project for him and we want to use wtp.

Eclipse gets changes from workspace.

For Example, we make changes in maven module and we don't need to install it and update dependencies for parent. Eclipse automatically updates the changes.

like image 103
koc9n Avatar answered Sep 28 '22 07:09

koc9n