Java Beginner Tutorial 7 - JAR (Java Archive) basics

preview_player
Показать описание
Hi, I am Raghav and today we will learn - How to create JAR file and
1. What is JAR
2. Why do we need JAR files
3. How to create JAR file from Java Project
4. How to extract contents from a JAR file (Java Decompiler)

JAR = Java Archive
- compressed format of a compiled java project
- contains .class files + meta data and some other resources
- used to distribute java code/libraries for use by other projects
- direct execution of java program (w/o IDE)

e.g. javamail jar

________ ONLINE COURSES TO LEARN ________

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ PROGRAMMING ------------

------------ IDE ------------

------------ MAVEN ------------

------------ OTHERS ------------

Keep Learning,
Raghav

----------- Connect with Raghav ------------

Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can
Рекомендации по теме
Комментарии
Автор

This is a perfect tutorial [~10 min in length, covers all the necessary topics with clarity]. Thank you Raghav sir!

afifkhaja
Автор

If Gaur Gopal Das is my spiritual guru, u r my technical guru. No words. I just fold my hands and say u r awesome

shruthivs
Автор

stunning! the pace, the content & the amount of round information given. I deeply appreciated it, Raghav

alexisdimas
Автор

Very good. Excellent content, logical, well explained, clear speech, digestible speaking speed and visuals are simple and effective. Thanks!

MrDFJohnson
Автор

Very well explained Raghav..Such deep topics are also needed although those are looking common, Thanks for video!

amollondhe
Автор

The concept of the jar is clear now. Meanwhile, what is the difference between 'export as jar' and 'export as runnable jar' ?

starSha
Автор

Very crisp and perfect tutorial. Thank you.

adityavedios
Автор

Fully cleared the doubt thank you so much

abirpaul
Автор

Hi, Thank you for all the useful tips, im getting an error while running a jar file. A JNI error has occurred, please check your installation and try again
Exception in thread "main" myFirstPackage/Hello has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
any lead?

TheYoungXplorer
Автор

It is working for only 1 file in the project but try to Create a JAR with a TestNG and POM framework having several packages and each package have several .java file. Can you create a JAR or Runnable JAR that way ?

ytdekhnevala
Автор

Hi Raghav,
one questions, since you have shown the practical of how to decompress/ or see the code of the jar file.So anyone can download others code(jars) from git or any other repository and decompress it and utilize it.Is it a security breach?

priyankagoyal
Автор

Hello, I would like to ask something..
I did a java project for my homework which is it works on console. And I have to give my project to school and they wanna see that works fine. If I only give them .jar, can they see that my project works right? Would that be enough? Thanks..

brc
Автор

thank you very much! awesome explaination

happyhippr
Автор

Hi Raghav, how to create a jar for the classes which are in src/test/java?

chandrasekhar
Автор

Hi Raghav Sir.

I have created a Jar file for creating a USER in my Application and it is working fine, but If I tried to execute that jar again it is not working because USER is created already.

Can you please explain how to pass testdata to a jar file at the time of execution?

asifshaik
Автор

which location i need to take after clicking on jar file

jyothimulakala
Автор

thank you so much man, the video is really clear and precise

mukulchhikara
Автор

Thank You Brother. You very much helped me to get started with JAR :)

kumarakantirava
Автор

the most efficient tutorial ever im blown away by ur clarity lol thanks much

ramdoula
Автор

You said that JARs only contains .class files and some other things. So, how is it possible to distribute Java source code like you say in this minute 1:12?

SuportoVc