Java Beginner Tutorial 7 - JAR (Java Archive) basics

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025

Комментарии • 146

  • @afifkhaja
    @afifkhaja 5 лет назад +13

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

    • @RaghavPal
      @RaghavPal  5 лет назад +2

      You're welcome Afif

    • @zes3813
      @zes3813 4 года назад

      no such thing as beginx or not, do, be, can do, be any nmw and any s perfect

    • @standup_comedy03
      @standup_comedy03 3 года назад

      @@RaghavPal sir what to do if we want to make it do without command prompt like a app pls sir any solution

  • @alexisdimas4299
    @alexisdimas4299 6 лет назад +16

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

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for the message Alexis

  • @ramdoula506
    @ramdoula506 4 года назад +2

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

    • @RaghavPal
      @RaghavPal  4 года назад

      so happy and humbled to see your message Ramdou

  • @danielle1093
    @danielle1093 3 года назад +1

    Great video. You blew this topic right out the water! Your teaching style is very effective. Straight to the point and detailed enough!

  • @chadzulu4328
    @chadzulu4328 Год назад

    Your tutorial is perfect, Raghav. This really, really helped me out. Thanks!

  • @shruthivs5866
    @shruthivs5866 3 года назад +1

    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

    • @RaghavPal
      @RaghavPal  3 года назад

      So happy & humbled to see your message Shruthi

  • @Queennyla16
    @Queennyla16 4 года назад

    Hands down the best and simplest explanation of .jar that I have ever heard

    • @RaghavPal
      @RaghavPal  4 года назад +1

      So happy & humbled to read this

  • @manaswishige3745
    @manaswishige3745 4 года назад +1

    Thank you very much for sharing your knowledge.it is really helpful..

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad it was helpful Manaswini

  • @MdFarhan-zy7qs
    @MdFarhan-zy7qs 8 месяцев назад

    Hats off ✌🏻✌🏻✌🏻🤗

  • @tariqulshuvon5021
    @tariqulshuvon5021 3 года назад

    till now best video on jar

  • @kumarakantirava429
    @kumarakantirava429 5 лет назад +2

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

    • @RaghavPal
      @RaghavPal  5 лет назад

      So happy to know this Kumara

  • @abirpaul9027
    @abirpaul9027 3 года назад

    Fully cleared the doubt thank you so much

  • @mukulchhikara2210
    @mukulchhikara2210 7 лет назад +3

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

    • @RaghavPal
      @RaghavPal  7 лет назад +1

      thanks for watching Mukul

  • @debomitasen3665
    @debomitasen3665 4 года назад +1

    Great tutorial! You make learning so easy. Thank you

    • @RaghavPal
      @RaghavPal  4 года назад

      You're very welcome Debomita

  • @maxweber6556
    @maxweber6556 3 года назад

    The way you explain the things that is awesome and really comprehensive ,I think anybody can understand. Great work Raghav bhai

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Thanks a ton Tarrique

  • @shivaagarwal7406
    @shivaagarwal7406 4 года назад

    In 10 minutes you have covered much about jar.. Thanks a lot..

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Most welcome 😊Shiva

  • @karthicknk2827
    @karthicknk2827 3 года назад

    Hi Raghav, video is good. I would recommend you to put video on following topics
    1. How objects are getting created in memory when we start running our bytecode.
    2. How this abstaract and inheritance are working by using memory allocation and memory usage concepts
    If you covered on these it would be great for understanding more.
    Or could you suggest reference for learning this topics .I am very interested

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Karthick, I will plan on this

  • @SabineQmets
    @SabineQmets 2 года назад

    Hello Raghav, your videos are very understandable and good to follow. Thank you!

  • @englishbro7436
    @englishbro7436 3 года назад

    Amazing!

  • @ChandanKumar-ni7ll
    @ChandanKumar-ni7ll Год назад

    very well explained. thanks

  • @kedarjadhav2339
    @kedarjadhav2339 2 месяца назад

    thank you very much sir

    • @RaghavPal
      @RaghavPal  2 месяца назад

      Most welcome Kedar

  • @starSha1982
    @starSha1982 4 года назад

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

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Shaji, When you export as jar, you can use this in any other framework or system and import the inner classes and functions and use them. When you export as runnable jar, you can run your program by running the jar directly

  • @MrDFJohnson
    @MrDFJohnson 3 года назад

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

  • @amollondhe5483
    @amollondhe5483 4 года назад

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

  • @adityavedios
    @adityavedios 4 года назад

    Very crisp and perfect tutorial. Thank you.

    • @RaghavPal
      @RaghavPal  4 года назад

      You're very welcome Aditya

  • @dattamugale9663
    @dattamugale9663 4 года назад

    Thanx..🙏Well explained..!

  • @DonkeyFrog
    @DonkeyFrog 7 лет назад +2

    Thanks for the knowledge

  • @redcapmilk
    @redcapmilk 4 года назад

    A tutorial that actually works, thanks.

  • @ramkumarsundaravel8301
    @ramkumarsundaravel8301 4 года назад

    Perfect Explanation. Thanks Bro

  • @mauryar16
    @mauryar16 6 лет назад +1

    Nicely explained

  • @mr.RAND5584
    @mr.RAND5584 4 года назад

    So portable. I can run it in any pc or laptop as long as there is java 8. I have run my javafx with mysql for three machine so amazing.

    • @RaghavPal
      @RaghavPal  4 года назад

      So happy to know this Marcial

  • @mohamedhussien2101
    @mohamedhussien2101 2 месяца назад

    Great

  • @rimzhim_v
    @rimzhim_v 6 лет назад

    Very helpful and easy to understand

  • @woofelator
    @woofelator 5 лет назад

    Very helpful, man!

    • @woofelator
      @woofelator 5 лет назад

      I'd personally like to do this via command line

    • @RaghavPal
      @RaghavPal  5 лет назад

      Yes, cmd mode is always good

  • @Buzca
    @Buzca 5 лет назад

    Great video. Thank you

  • @priyankagoyal2158
    @priyankagoyal2158 5 лет назад

    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?

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Priyanka, there may be some restrictions on 3rd party jars

  • @meytal-3478
    @meytal-3478 5 лет назад

    Thank you!!!! For clear and usefull session!!!

  • @rajeswari6946
    @rajeswari6946 5 лет назад

    Thank you! Its really helpful

    • @RaghavPal
      @RaghavPal  5 лет назад

      You're welcome Rajeswari

  • @arpandutta3591
    @arpandutta3591 4 года назад

    AMAZING thank you so much

    • @RaghavPal
      @RaghavPal  4 года назад

      You're welcome Arpan

  • @SuportoVc
    @SuportoVc Год назад

    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?

    • @RaghavPal
      @RaghavPal  Год назад +1

      That's a good question. JAR files only contain compiled Java bytecode, so they cannot be used to distribute Java source code. However, there are a few ways to distribute Java source code:
      * **In a separate file:** You can distribute the Java source code in a separate file from the JAR file. This file can be a .zip file, a .tar file, or a plain text file.
      * **In a comment in the JAR file:** You can also distribute the Java source code in a comment in the JAR file. This is not as secure as distributing the source code in a separate file, but it is a way to make the source code available to those who want it.
      * **Using a source code hosting service:** There are a number of source code hosting services that allow you to store and distribute Java source code. These services typically provide a web interface where you can upload your source code and share it with others.
      Here are some of the popular source code hosting services:
      * GitHub
      * Bitbucket
      * GitLab
      * SourceForge
      * CodePlex
      I hope this helps

    • @shivamkakade4484
      @shivamkakade4484 22 дня назад

      @@RaghavPal thanks 🙏👍

  • @heybelindah
    @heybelindah 5 лет назад

    Hi Raghav- at 7:41, when I right click > use Archive Utility, it creates a cpgz zip file. I'm not able to create the folder with your steps.
    Am I doing something wrong?
    Thanks for your videos!

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Belinda, can you get and try some other unzip tool

  • @TheYoungXplorer
    @TheYoungXplorer 2 года назад

    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" java.lang.UnsupportedClassVersionError: 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?

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Harmeet, this can help webdeasy.de/en/error-a-jni-error-has-occured-how-to-fix-this-java-error/

  • @atillaselem4827
    @atillaselem4827 7 лет назад

    very clear and good information! thx

  • @triggermindscape2031
    @triggermindscape2031 7 лет назад

    Thanks - it was clear and easy

  • @harshaabeyvickramaa
    @harshaabeyvickramaa 3 года назад

    Thank you for this short but complete tutorial ❤

    • @RaghavPal
      @RaghavPal  3 года назад

      You're welcome Harsha

  • @happyhippr
    @happyhippr 7 лет назад

    thank you very much! awesome explaination

  • @youtubewasoncebetter
    @youtubewasoncebetter 5 лет назад

    Thank you so much uncle ji

  • @ytdekhnevala3648
    @ytdekhnevala3648 3 года назад

    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 ?

    • @RaghavPal
      @RaghavPal  3 года назад

      I will suggest to go with a Maven Project in this case

  • @gunjankapoor9163
    @gunjankapoor9163 4 года назад

    Hi Raghav. I am stuck somewhere. I created a Java project and under package created a class file that has the main method. When I am trying to compile the project to create .jar file, it doesn't show the class file. It shows the package. This i am doing via Seal content from JAR Export page in eclipse. For Main Class, it blank.
    Please suggest.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Gunjan, hope you have rechecked all the steps from the video. While creating the jar are you specifying the manifest class. Pls check the video again

    • @gunjankapoor9163
      @gunjankapoor9163 4 года назад

      @@RaghavPal Thanks for replying back. Let me check again. Also, I had the main class.

    • @gunjankapoor9163
      @gunjankapoor9163 4 года назад

      @@RaghavPal Everything was the same, not sure why had the issue earlier. Created again and now can create a Jar. Thanks a lot.

  • @bat_man1138
    @bat_man1138 Год назад

    Nyc vid

  • @chandrasekhar7680
    @chandrasekhar7680 5 лет назад

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

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Chandra, it should be done in the same way. Are you facing any errors. Moreover what is the scenario that you need to create jar. This is not very efficient always.

  • @Combine1331
    @Combine1331 7 лет назад

    Very good tutorial! Thank you!

    • @RaghavPal
      @RaghavPal  7 лет назад +1

      Thanks for watching.

  • @harshitamittal175
    @harshitamittal175 3 года назад

    I had deployed an application using java -jar command.. now it is running on server perfectly (on linux that command is not exit itself).. is there anything that we can add in command so that it exit on its own.

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Harshita, will need to check the app, can find some general commands online

  • @warriorfb2010
    @warriorfb2010 7 лет назад

    Very helpful. Thanks!

  • @brc9428
    @brc9428 7 лет назад +1

    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..

    • @RaghavPal
      @RaghavPal  7 лет назад +1

      Hi Burcu, if you can package all your project + its dependencies in the jar, then surely you can share it.

    • @brc9428
      @brc9428 7 лет назад +2

      Automation Step-by-Step - Raghav Pal Thanks for your answer. I suppose it would be enough if I'll do the same things in the video, right?

    • @RaghavPal
      @RaghavPal  7 лет назад +1

      Should be able to do it. Just try it out.

  • @asifshaik1038
    @asifshaik1038 3 года назад

    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?

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Asif, I will plan a session

    • @asifshaik1038
      @asifshaik1038 3 года назад

      Thank you very much, Raghav sir ❤️

  • @limbritadaikalam1847
    @limbritadaikalam1847 5 лет назад

    Thanks!

    • @RaghavPal
      @RaghavPal  5 лет назад

      You're welcome Limbrit

  • @srinivaskadiyalaSKC
    @srinivaskadiyalaSKC 5 лет назад

    Hi Raghav,
    I have tried to use JD-GUI.jar and Windows JD-GUI, when I try to open the App.jar file which I have created. It does not show any thing.

    • @srinivaskadiyalaSKC
      @srinivaskadiyalaSKC 5 лет назад

      Please ignore my comment.
      It is a bug in JD-GUI.
      github.com/java-decompiler/jd-gui/issues/260

    • @RaghavPal
      @RaghavPal  5 лет назад

      Ok Srinivas

  • @mohamedkanu66
    @mohamedkanu66 3 года назад

    Please provide the decompiler website

  • @jyothimulakala3286
    @jyothimulakala3286 7 лет назад

    which location i need to take after clicking on jar file

    • @RaghavPal
      @RaghavPal  7 лет назад

      Hi Jyothi, you need to take the location where your jar file is located

  • @jojojawjaw
    @jojojawjaw 6 лет назад

    THANK YOU

  • @jyothimulakala3286
    @jyothimulakala3286 7 лет назад

    after selecting main class iam not getting iam getting warfile

    • @RaghavPal
      @RaghavPal  7 лет назад

      Jyothi, you can see earlier tutorial of this series and check if you have created the java project and program in the same way as shown

  • @krishnamurthy7027
    @krishnamurthy7027 6 лет назад +1

    helped me to know the basics clearly

  • @jyothimulakala3286
    @jyothimulakala3286 7 лет назад

    can u help me what will i do

    • @RaghavPal
      @RaghavPal  7 лет назад

      pls see the reply on your other comments and try it.

  • @onurucar1112
    @onurucar1112 4 года назад

    better than my +100k usd paid professor.

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Humbled to see this message Onur. Hope you like other works here - automationstepbystep.com/

  • @alexandersviridov8682
    @alexandersviridov8682 3 года назад

    OK

  • @ChanceTEK
    @ChanceTEK 3 года назад

    Excellent video! Thank you.