- Java Archive file(JAR)
- JAR is an acronym of Java archive
- JAR is a compressed format of a compiled Java project.
- Contains .class files And some metadata And some other resources.
- Used to distribute Java code/libraries for use by other projects.
- To create a jar file Using eclipse go to project right Click on the project And select export.
- To execute jar from terminal use
- java -jar filename.jar
- When we decompress a jar file We get our package and class file along with a folder Meta-INF which has a MANIFEST.MF
- The manifest file describes the Java file.
- Create jar from console
- jar -cf test.jar package-name
- View Data in Jar
- jar -tf test.jar
- Add new package in jar
- Jar -uf test.jar new-package
- WAR file
- War file Is An abbreviation of web archive.
- War is used to deploy web applications on different servers.
- WAR bundles, HTML, pages, servlets, JSP, and web.xml And other files related to web development.
- WAR helps us to easily deliver and deploy projects.
- A WAR file represents one web application.
- web.xml Contains the web metadata info of the WAR file.
- EAR files
- EAR files are an Abbreviation of Enterprise Archive Files.
- Represents Enterprise application.
- Contains anything from Java J2EE for example EJB, JMS,Servlets, JSP’s, EJB’s, JMS et cetera.
- In many cases, EAR contains both WAR and JAR files.
- It contains a descriptor called as manifest.
- app.xml contains the metadata info of the EAR file.
- Introduction
- Installation
- Junit
- Arrays
- Classes
- Data Types
- Expressions
- Interfaces
- JDBC
- Loops
- OOPS
- Serializable
- Strings
- Constructors
- Package
- Java Servlets
- Deployment
- Logging
- JSP
- ANT
- Web Services and Sockets
- Struts
- JPA
- Object Injection
- Annotations
- Reflection API
- Static Blocks
- Java Native Interface (JNI)
- Multithreading
- Tomcat Server
- Java Web Toolkit(JWT)
- Archive Files
- EJB(Enterprise Java Beans)
- JConsole
- Memory Profiling
- Hashing
- Exceptions
- Java Map Interface
- Java 8
- Garbage Collection
- Java 11
- Collections
Archive Files
Subscribe to:
Posts (Atom)
-
What is the way to import only static members of a class? We can import using “import static packagename.classname.*” We can import using “i...
-
Q What is the difference between Array List and Linked List? Array List and Linked List both extend the List interface which extends Coll...
-
How do you detect a deadlock in a running Java program? We can use Jconsole to check for Deadlock which comes with JDK. There are also other...
No comments:
Post a Comment