How To Compile And Run A Java Source File With Javac On Command Prompt (cmd)

preview_player
Показать описание
This video teaches you How To Compile And Run A Java Program With Javac On Command Prompt (cmd). What you need to do first is download the jdk by searching for it on google then you need to sava your java source file as a .java file. Then you need to add the path of the jdk you installed on to your system to your system environment variables. If you get the Java Is Not Recognized As An Internal Or External Command error when you type javac then the file name that means you haven't set the environment variable correctly. So please re-look at the tutorial and you should be fine.
Рекомендации по теме
Комментарии
Автор

You, my friend, have saved many people many hours of frustration.

willrocks
Автор

Thanks for this tutorial!
I've looked all over the internet and this is the only one I've found that actually explains how to create the path for java! Thank you again! :D

varmdoguy
Автор

thanks a ton . Btw what he has suggested is setting the path permanently. For those who aren't very comfortable and would like to set the path each time they open command prompt here is how it is to be done. Follow the steps until the path to the bin containing javac is copied. In CMD set the directory to where you've saved the program for instance c:\users\admin>cd\isas.  then c:\isas set path=%c%;C:\Program Files\Java\jdk1.7.0_45\bin what you will get is the prompt for the next command

thigilman
Автор

SO VERY HELPFUL...I GOT SAVED...OWE U A

kopfjager
Автор

I was searching for hours on how to solve this error thank you so much.

johnserra
Автор

Thanks so much! More helpful at this point than the beginner guide by Oracle themselves :P

NotjustGrey
Автор

Thanks a heap, you have saved me much frustration.

TheCrakrjack
Автор

what we must drill into our head is that java is highly case sensitive

thigilman
Автор

I loled all over my living room when I saw the 4 errors console message

shando_tube
Автор

thank you very much you help me full . like, favorate

xxmoamedxxminecraft
Автор

Thanks so much! I thought I could'nt find tutorials using cmd, almost everyone uses eclipse tho

angelicrox
Автор

Yes but how do you create Why was this top video for creating a source file.

alexhearn
Автор

I continued to get the error message "javac is not recognized as an internal or external command..." until I added the path to the Path variable under "System Variables (the second box down - selected edit - made sure to separate from the other stuff there with a semi-colon). Then it worked for me.

Yodaismycopilot
Автор

My java program has one error bad source file string then what can I do

karnkumar
Автор

what can you do with compliers? can you make a game or hack NASA? I would like to know more about what can be done with them if anyone knows any useful things, etc....I need a direction....

zeabea
Автор

It didnt work for me either, but I think i just copied the path wrong. I downloaded the 32 bit version and copied the way he did and it worked, so maybe 64bit has some additional problems.

willrocks
Автор

upset that still my cmd shows the same error as shown when path is not set, , , as u did, , , pls help me what to do... i m sooo fedup of my pc

shubhammalviya
Автор

i did that the source still dosent exist what the fuck

chrisbrow
welcome to shbcf.ru