I agree. I overlooked some of this stuff when I first started on Java and now here I am looking for videos like this lol. I'd like a continuation of this video talk about how classpaths are related to namespace and directory structure, and go into the innards of the jar file like the manifest file.
Hello Freed! It was a really good video, mainly because it was well explained. I hope you make more videos of this type (kind of like "java essentials") in the future, because I'm just starting and having some help would be a great :)
hey man thx for this demo!! so at the end when you compiled Main.java with cp =../lib.jar , I notice you didn't include the working dir, which is . Is that a convention for compilation? Since when we run programs we do need to include both jar and working dir into classpath... thank you!
@3:29 Compilation can't be successful in my case, unless the option -cp . is indicated. This is not the first time I ought to specify classpath, actually, I have to specify it every time, but I guess this is because I don't have CLASSPATH variable defined in system variables? Could you fill me in on any details that I might have missed?
Actually, it's the other way around; if compilation fails without -cp . then you have a CLASSPATH variable which overrides the default. Depending on your operating system, try one of the following: echo %CLASSPATH% echo $CLASSPATH This should show you the overriding value.
6:20 also in my case it only works if I use double quotation marks for the cp as in following: java -cp "..;." Main. Any thoughts? upd. it's quite a pain to figure it out on your own because the topic itself is difficult and i have to follow everything to the T but even then it's not uncommon for something to go wrong; it has already gone twice during the video. upd.2 but anyway the video is great! :)
@@fredoverflow omg that is so true! thank you so much! It is defined to Tomcat lib that apparently I used during the course I was taking to become a java programmer so that I could find a job. Speaking about it, is it still relevant to learn java or are there more promising directions? ps. your channel is good - you deserve so much more subs!
@@elizavetavinokurova7624 Are you using Git Bash on Windows? That's the only constellation I know which needs quotes and semicolon. (CMD and PowerShell should work without the quotes.)
Git for Windows comes with Git Bash. During installation, there is an option to make its bash commands available from the ordinary Windows Command Prompt (cmd), as well.
That was brilliant. Make a bigger series on those overlooked low level essentials of Java, please :)
I agree. I overlooked some of this stuff when I first started on Java and now here I am looking for videos like this lol. I'd like a continuation of this video talk about how classpaths are related to namespace and directory structure, and go into the innards of the jar file like the manifest file.
with all the IDEs features, i had no idea what's happening in the background, this video helped me alot thank you!
This was refreshingly direct. Thank you. Sick of all these other tutorials that never explain things from the ground up.
I wished I found your video yesterday. I just spent the whole day trying to find out about this!! Thank you very much!!
your video is excellent experiment on the details of java/javac, kudos 👍👍
Great video on how to use -cp. Honestly, I had no idea javap -c existed. Thanks for this.
Great example and explanation about one of the most confusing topics in Java, please do more such videos about the Java processes
Stuff I should have known by now but finally do thanks to this video. Thank you
So that is a class path. Well explained. Thank you!
Hello Freed! It was a really good video, mainly because it was well explained. I hope you make more videos of this type (kind of like "java essentials") in the future, because I'm just starting and having some help would be a great :)
Amazing explanation, thank you for this helpful video.
Awesome video! Only 327 thumbs up? This video definitely needs some sharing so it gets the attention it deserves!
very nice video on classpath using cp option
Absolutely brilliant video. We definitely need more of those!
Excellent tips
excellent
Thanks man. Very clear example. ☝️😀
Very good 🙂
Great video, thanks
Awesome video !
Thank you for this video
Very claer. Thank you
Thank you for the tutorial
Thank you bro you are genius.
Thank you so much for this tutorial!
Great video!
thank you good sir! subscribed!
hey man thx for this demo!! so at the end when you compiled Main.java with cp =../lib.jar , I notice you didn't include the working dir, which is . Is that a convention for compilation? Since when we run programs we do need to include both jar and working dir into classpath... thank you!
The classpath is for .class files, not .java files.
Brilliant, even though name ClassPath suggests the meaning, It is hard to understand until example (such as this) is shown.
This was interesting to know, thanks!
excellent video !
Thanks a lot
interesante, cuesta entederle pero buen video.
*Applause* Thank you.
Thank you a lot man
Danke dir
thank you !
@3:29 Compilation can't be successful in my case, unless the option -cp . is indicated. This is not the first time I ought to specify classpath, actually, I have to specify it every time, but I guess this is because I don't have CLASSPATH variable defined in system variables? Could you fill me in on any details that I might have missed?
Actually, it's the other way around; if compilation fails without -cp . then you have a CLASSPATH variable which overrides the default.
Depending on your operating system, try one of the following:
echo %CLASSPATH%
echo $CLASSPATH
This should show you the overriding value.
6:20 also in my case it only works if I use double quotation marks for the cp as in following: java -cp "..;." Main. Any thoughts? upd. it's quite a pain to figure it out on your own because the topic itself is difficult and i have to follow everything to the T but even then it's not uncommon for something to go wrong; it has already gone twice during the video.
upd.2 but anyway the video is great! :)
@@fredoverflow omg that is so true! thank you so much! It is defined to Tomcat lib that apparently I used during the course I was taking to become a java programmer so that I could find a job. Speaking about it, is it still relevant to learn java or are there more promising directions? ps. your channel is good - you deserve so much more subs!
@@elizavetavinokurova7624 Are you using Git Bash on Windows? That's the only constellation I know which needs quotes and semicolon.
(CMD and PowerShell should work without the quotes.)
@@elizavetavinokurova7624 Technology is highly regional; scan the local job ads. My employer uses Java in ~90% of projects.
how come your Windows system uses bash?
Git for Windows comes with Git Bash. During installation, there is an option to make its bash commands available from the ordinary Windows Command Prompt (cmd), as well.
Please improve the sound
thanks jesus
thank you!!!
this guy looks like issac newton.
OMG! The audio!!!!
what is -sourcepath used for in javac ???