Creating, Compiling, & Executing a Java Program
ฝัง
- เผยแพร่เมื่อ 23 ส.ค. 2024
- Java Programming: Creating, Compiling, and Executing a Java Program
Topics discussed:
1. Creating a Java program using a simple text editor.
2. Compiling the Java program using the Command Window.
3. Running the Java program using the Command Window.
4. What happens exactly when we compile and run our Java program.
Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
Contribute: www.nesoacademy...
Memberships: bit.ly/2U7YSPI
Books: www.nesoacademy...
Website ► www.nesoacademy...
Forum ► forum.nesoacad...
Facebook ► goo.gl/Nt0PmB
Twitter ► / nesoacademy
Music:
Axol x Alex Skrindo - You [NCS Release]
#JavaByNeso #JavaProgramming #CreatingJavaProgram
your academy is the best academy i have ever seen,with micro videos u cover the content as deep as possible.
Very enlightening. The outspoken Java programmer really knows his stuff.
one of the most best and clear courses, thank you for learning us, I am very happy, I watched the first video and I found myself watching 10 others :D
Best playlist for learning java ,thank you.
amazing sir, please upload more videos in a day as much as possible for you. we are waiting your lecture.
For the lazy 😊:
public class Welcome {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
😂 😂
was struggling to find good lectures but finally I saw your vid3os and change my mind 😊😊
You people are really giving qualitative education , Thank You:)
This course is too good, thank you
This course is too good to be free. Thank You for such amazing content
Sir we regularly wait for ur videos.. . We missed your video a lot sir..
Thanks for the lessons. Keep on the good work!
Hi sir i have problem after writing javac Main.java
When i press enter it shows code like
Main.java:1:error:class main is public,should be declared in a file named main.java
And so on
Such a clear explanation. Thanks a lot.
Man I have never seen somone teaching better than this... Very precious and indepth
System.out.print("Thank you brother")
Thank you for making these videos !
Your Amazing
I like ur classes
The way you teaching it's really amazing 🤩🤩
Thank You
Thanks Sir, keep going. Please upload 2-3 video in a day by taking some time.
Thanks for the detailed explanation of the whole course
You are the best. Step by step tutorial
You sound like mufti menk.. by the way your way of teaching is great
Very well explained! Thank you so much!
THANK YOU VERY MUCH ! YOU ARE THE BEST TEACHER
Thank you brother 🙂
Hey bro I am stuck at a point where after typing the command "javac Welcome.java"
The result is
Javac is not recognised as an internal or external command, operable program or batch file.
Pls help me out waiting for your reply thank you.
I am also stuck with the same problem
@@sumantaadak5541 I tried to install the intelijidea again and it worked I made sure that while copying the path in the properties I don't type % and any other symbols.
You have to go to the properties again and in the environment settings you will have to paste the path of the intelijidea again without any symbol just copy the path and paste it as it is and it will run properly.
Thank you
@@avnishkumar7331 intelijidea means?
I don't know
@@sumantaadak5541 have you watched the 7th lec where the installation of java was taught watch that video again and follow all the steps just don't put any symbols while pasting the path symply copy the path and paste it as it is.
@@avnishkumar7331 ohhh yeah yeah ! Actually I skipped the 7 th lecture .
Thank you for the information
I don't understand this video..😢😢
good work king, love you
if you get this error ---> error: package system does not exist
go back to notepad and change the 's' in system.out from small case to upper case. (System.out) -- CAPITAL 'S'
Love your style, thanks.
hi!!! I must say your content and style of explaining things is really helpful. I had concern may be you can get time and help me out. Not able to use Intelij IDEA. Some Error of DSL 111, which restricting me to use Intelij IDEA.
Anyone got this error? (the Welcome.class seems to have been well generated)
"C:\Users\ps\Desktop>java Welcome
Error: Could not find or load main class Welcome
Caused by: java.lang.ClassNotFoundException: Welcome
"
"java " works...🤔:
"C:\Users\ps\Desktop>java Welcome.java
Hello World!"
I don't have PC😢
@@AbhishekSingh-cu1fe ❤
My according it's very helpful. That's why make more video
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: Welcome has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Go to add/remove programms - uninstall JavaSE runtime. Keep only Java SE Delevopment Kit (JDK).
Thanks sir for this. It's useful
Thanks sir!
superb class
بسم الله ماشاء الله عليك يا استاذ علي
Public class welcome {
Public static void main(string[ ] args){
System .out println("Avi"). }
}
Thank you sir.. that was great!
Hello sir, please make video lectures on Network Theorems for AC circuits
Very cool, I didn't know about it
I really like your videos keep it up bro :)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: Welcome has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 52.0
how can i fix this :(
please help
Please tell me. Which is better ecosystem java or c#?
Thanks again sir...
You r the best please make course about flutter and ios and android
Please sir atleast upload 3 videos in a day
If it’s saying path not found try this > cd one drive then cd desktop
C:\Users\prudh>cd Desktop
The system cannot find the path specified.
kindly please help me to fix this.
Jvm has to be installed seperately for doing this?
When I am entering the command in the command prompt it showing the result not found .it shows like this .....what I have to do now sir
There is one wrong information provided in this video....
it is not necessary to name the class same as the name of the file.....
Sir you said that tha file name should be same as class name what if I have many classes
Even if the file extension is java ...cmd is saying that file not found...what should I do..😟🥺😭
Same problem
Change dir so that you end up in your .java
Your classes are owsome,but somewhere I made mistake I can't know what it is,it doesn't show as yours
thank you so much no words for your explanation
If you’re on Mac, cmd is same as terminal as you may know
in my cmd it is showing that javac' is not recognized as an internal or external command,
operable program or batch file.
did you add it to environment path?
@@theamanpanchal hello bro can u telle how to fix this i am having same problem
why is the cmd not working with the program i created to compress even doing evething like explain?
Computer Networks please
Thank you sir !
I cannot navigate to desktop : C:\Users\xxxxxx>cd Desktop
The system cannot find the path specified. its showing this .
i cannot locate the desktop in cmd with "cd Desktop ".plz help i have windows 11
it was going great till my laptop didn't recognize the javac command
my cmd shows system cannot find the path as i give cd desktop command
Nice
You are just closing your project and creating new one but before that tell how to save the project in intellij so that we can open it and run when we want
Hello Im using Mac and cant follow the compiling part
nice👍👍
The system cannot find the path specified is the error msg
Yes same problem
I see error on my desktop after doing this why error is coming anyone help me to correct it
which type of error u r getting
@@nbk330 now my problem is solved thx for asking
Nyc sir
when i run the command (java Welcome.java) i got an error. how can i fix this pls
Me too
when i type javac command it says an error.
even i also downloaded the java
same :(
@@saibhavaniprasadpotukuchi754 I had the same issue, I think it's because he switched from having his class called Welcome to calling it Main.
Try this: in notepad -
public class Welcome{
public static void main(String[] args){
System.out.println("Welcome to Java!");
}
}
Save it as Welcome.java
Go to cmd and navigate to the desktop
Type Javac Welcome.java
You should be able to execute it now with Java Welcome in cmd
Hope it helps, sorry it's two months later.
I am not able to command desktop 😵😵😵
@@Jmeskill help me out of this
Sir can you please start teaching Python please?
done
7:00 Guys.....Trust me I am not able to understand what does tha "Badran" means in that CMP as in my PC it ain't showing that up!
Please if anyone could DO REPLY!
Bro it's the name of the user of the computer.
hello....sir..i am getting error while compiling....near cd desktop ...any suggestions from u
same
@@vishnupriya_6380 how you guys sort out this problem?plz help
thank you sir.
Why only Desktop???
Sir pls make videos on python plss sir
My question is opened to anyone for answers, how do I go about compiling Java on Linux.
please upload python vedio soon
error: package system does not exist
system.out.println("valo sucks");
^
please help sir
In system it should have capital S.
System
Because Pascal convention rule .
First letter should be S
System.out.print("Thank you Sir😊");
Ur a computer or what ur speaking like that only bro
the teacher is russian probably, bu he knows his stuff
Write the code peoperly you will definitely get the answer ex: System. Not system.
please teach HTML
ERROR:
C:\Users\DELL\Desktop>javac Main.java
Main.java:5: error: reached end of file while parsing
{
^
1 error
Me too bro
Did you find a solution
that feeling when you have a mac💀
I LOVE INDIA WOOO
❤❤❤
Amo sir I can't understand any one in that??
1 error
exelence
download sublime text 3 😘😘
I had error:I
I had the same issue, I think it's because he switched from having his class called Welcome to calling it Main.
Try this: in notepad -
public class Welcome{
public static void main(String[] args){
System.out.println("Welcome to Java!");
}
}
Save it as Welcome.java
Go to cmd and navigate to the desktop
Type Javac Welcome.java
You should be able to execute it now with Java Welcome in cmd
Hope it helps, sorry it's two months later.
U sound lyk an angry russian villain
Thanku so much sir it's really useful.