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
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
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?
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?
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
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!
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?
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 ?
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.
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
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.
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.
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..
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?
This is a perfect tutorial [~10 min in length, covers all the necessary topics with clarity]. Thank you Raghav sir!
You're welcome Afif
no such thing as beginx or not, do, be, can do, be any nmw and any s perfect
@@RaghavPal sir what to do if we want to make it do without command prompt like a app pls sir any solution
stunning! the pace, the content & the amount of round information given. I deeply appreciated it, Raghav
Thanks for the message Alexis
the most efficient tutorial ever im blown away by ur clarity lol thanks much
so happy and humbled to see your message Ramdou
Great video. You blew this topic right out the water! Your teaching style is very effective. Straight to the point and detailed enough!
Thanks Daniel
Your tutorial is perfect, Raghav. This really, really helped me out. Thanks!
Glad it helped Chad
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
So happy & humbled to see your message Shruthi
Hands down the best and simplest explanation of .jar that I have ever heard
So happy & humbled to read this
Thank you very much for sharing your knowledge.it is really helpful..
Glad it was helpful Manaswini
Hats off ✌🏻✌🏻✌🏻🤗
Thanks Farhan
till now best video on jar
Thanks a lot
Thank You Brother. You very much helped me to get started with JAR :)
So happy to know this Kumara
Fully cleared the doubt thank you so much
Most welcome Abir
thank you so much man, the video is really clear and precise
thanks for watching Mukul
Great tutorial! You make learning so easy. Thank you
You're very welcome Debomita
The way you explain the things that is awesome and really comprehensive ,I think anybody can understand. Great work Raghav bhai
Thanks a ton Tarrique
In 10 minutes you have covered much about jar.. Thanks a lot..
Most welcome 😊Shiva
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
Hi Karthick, I will plan on this
Hello Raghav, your videos are very understandable and good to follow. Thank you!
Most welcome Sabine
Amazing!
Thanks
very well explained. thanks
Glad it was helpful!
thank you very much sir
Most welcome Kedar
The concept of the jar is clear now. Meanwhile, what is the difference between 'export as jar' and 'export as runnable jar' ?
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
Very good. Excellent content, logical, well explained, clear speech, digestible speaking speed and visuals are simple and effective. Thanks!
Glad you liked it!
Very well explained Raghav..Such deep topics are also needed although those are looking common, Thanks for video!
Thanks a ton
Very crisp and perfect tutorial. Thank you.
You're very welcome Aditya
Thanx..🙏Well explained..!
Most welcome 😊
Thanks for the knowledge
You're welcome
A tutorial that actually works, thanks.
Glad it helped
Perfect Explanation. Thanks Bro
You are welcome Ram
Nicely explained
thanks
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.
So happy to know this Marcial
Great
Thanks
Very helpful and easy to understand
You're welcome Varsha
Very helpful, man!
I'd personally like to do this via command line
Yes, cmd mode is always good
Great video. Thank you
You're welcome Pablo
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?
Hi Priyanka, there may be some restrictions on 3rd party jars
Thank you!!!! For clear and usefull session!!!
You're welcome Meytal
Thank you! Its really helpful
You're welcome Rajeswari
AMAZING thank you so much
You're welcome Arpan
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?
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
@@RaghavPal thanks 🙏👍
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!
Hi Belinda, can you get and try some other unzip tool
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?
Hi Harmeet, this can help webdeasy.de/en/error-a-jni-error-has-occured-how-to-fix-this-java-error/
very clear and good information! thx
you're welcome
Thanks - it was clear and easy
You're welcome Zafar
Thank you for this short but complete tutorial ❤
You're welcome Harsha
thank you very much! awesome explaination
you're welcome Caleb
Thank you so much uncle ji
You're welcome
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 ?
I will suggest to go with a Maven Project in this case
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.
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
@@RaghavPal Thanks for replying back. Let me check again. Also, I had the main class.
@@RaghavPal Everything was the same, not sure why had the issue earlier. Created again and now can create a Jar. Thanks a lot.
Nyc vid
Thanks
Hi Raghav, how to create a jar for the classes which are in src/test/java?
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.
Very good tutorial! Thank you!
Thanks for watching.
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.
Hi Harshita, will need to check the app, can find some general commands online
Very helpful. Thanks!
You're welcome Dylan
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..
Hi Burcu, if you can package all your project + its dependencies in the jar, then surely you can share it.
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?
Should be able to do it. Just try it out.
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?
Hi Asif, I will plan a session
Thank you very much, Raghav sir ❤️
Thanks!
You're welcome Limbrit
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.
Please ignore my comment.
It is a bug in JD-GUI.
github.com/java-decompiler/jd-gui/issues/260
Ok Srinivas
Please provide the decompiler website
I will check
which location i need to take after clicking on jar file
Hi Jyothi, you need to take the location where your jar file is located
THANK YOU
You're welcome :)
after selecting main class iam not getting iam getting warfile
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
helped me to know the basics clearly
Thanks for watching.
can u help me what will i do
pls see the reply on your other comments and try it.
better than my +100k usd paid professor.
Humbled to see this message Onur. Hope you like other works here - automationstepbystep.com/
OK
Thanks for watching
Excellent video! Thank you.
Most welcome