How to Install & Run Java in Visual Studio Code [2023] | VS Code Java | Java Extensions in VS Code
HTML-код
- Опубликовано: 9 июл 2023
- This video is about - how to set up and run a Java program in visual studio code on Windows. In this video, I have shown a step-by-step complete guide for setting up Java in VS Code.
In the first part of the video, I have shown the installation of Java JDK, 2nd part VS Code installation, and in the last part installing extensions required for Java in VS Code and creating and running Java program in it.
Visual Studio Code installation link
👇👇👇👇
code.visualstudio.com/
Search "visual studio code for java" in your browser such as Chrome and click on the first link.
Java JDK 20 Download Link
👇👇👇👇
www.oracle.com/in/java/techno...
In this VSCode tutorial for beginners, I'll be showing you how to use Visual Studio Code for Java Development. I'm going to show you how you can configure visual studio code (vs code) to run JAVA programs on Windows11 OS. You can use the same method to install the Java program and JDK(java development kit).
🔔 ✅Subscribe to my Channel to learn more about Computer Programming, computer tools, and technologies.
Thanks for watching my videos till the end, if you like my work please do Like, Comment, and Share!!
-----------------------------------------------------------------------
Channel Subscription:
🔗 / cscornersunitarai
Java Programming Tutorial Playlist
🔗 • Java Programming Tutorial
------------------------------------------------------------------------
🎥 Tools I used for recording
www.amazon.in/shop/cscornersu...
------------------------------------------------------------------------
CONNECT WITH ME ON:
►Facebook - / cscornersunitarai
►Personal Facebook A/c - / sunita.sharmarai
►Instagram - / cscornersunitarai
►Telegram - t.me/cscorner
►LinkedIn - / cscornersunitarai
------------------------------------------------------------------------
#javavscode
#vscode
#javaprogramming
#vscodejava
#visualstudiocode
run java in vs code,run java program in vscode,how to run java file in vs code,how to setup java in visual studio code,visual studio code,java in visual studio code,how to run java in visual studio code,java in vscode,visual studio code java,run java in visual studio code,how to run java in vscode,vscode java,vs code java,java vscode,visual studio java,run java program in visual studio code,how to run java in visual studio,visual studio code java windows 10/11
Mam, you don't know how much you helped me with this video, i was stuck in error which was "could not find the main method".After i found your video and decided to exactly follow your steps, i deleted all previously installed jdk and vs code and re-downloaded it again as you have shown.Then i done what exactly you have done in-here, then i run my code and boom!!, it ran. I was very happy.Then i decided to write a little thank you message for your guidance. So, yes, Thank you very much once again, and you've got a subscriber. 😊😊
Thank you so much for this lovely words❤
You're welcome👍 please subscribe 😊
Yhh the same thing happened to me bro with the whole main method thing thankgod I found her
@@theKazuha117 Glad my video helped you 😊 Please subscribe👍
ma'am you explained it so easily , I got error while running my code and you resolve all of my errors. Thank you so much for making this video and it helps me so much
Glad my video helped you 😊 Please subscribe👍
ma'am you explained it so easily , I got error while running my code and you resolve all of my errors. Thank you so much for making this video and it helps me so much.😇
Glad to hear that!
You're welcome😊please subscribe👍
Steps were explained very smoothly💯....Gonna practice our INS Practicals😃
Glad u liked it!
steps are easy and clearly explained this tutorial is one of the finest tutorials in youtube :)
You're most welcome 👍 Please subscribe😊
After seeing many videos, i literally bored of trying resolve the issue.. Couldn't find any video.. But mam ur video finally brought a huge relief for me... Thanks for the video, thanks for the help.. Great job mam
Glad my video helped you 😊 Please subscribe👍
Thanks a lot Ma'am, I face many errors while running a code you solved it with ease.😊😊😊😊
Glad my video helped you 😊 Please subscribe👍
absolutely useful, now I can use java in vscode independently
Glad I could help!
You're welcome😊please subscribe👍
Thank you so much mam i facing this issue since last 2 day i see many video but i don't solve this error after seeing your video and follow every step i solve my problem thank you so much 🙏
If you facing same error after follow step once restart your pc and after your error will be solved
You’re welcome 😊Please subscribe👍
Explained very easiest way thanks a lot❤❤🎉 to solve my problems
Glad to hear that😊 Please subscribe
This video was helpful for me. Thank you for sharing
Glad my video helped you 😊 Please subscribe👍
Reallay awesome explination... Really you deserve❤️... Thank you so much...
Glad my video helped you 😊 Please subscribe👍
Thank you so much ❤ it was soooo helpful thanks once again😇😊
Glad my video helped you 😊 Please subscribe👍
Tq u so much mam....this video is very useful to me and other students also . Thanks a lot
Most welcome 😊 Please share & subscribe
thank u so much mam , before this i have installed any jdk but my code is not running and not show output, but after watching this video solved my whole problem😇
Glad my video helped you 😊 Please subscribe👍
Thanks your video is so helpful to me to set up my vscode😊
You're welcome 😊 Please subscribe
Thank you your Video helped me a lot 😊 and Nice to see that you reply each and every comment once again Thank you Mam✨
Glad my video helped you 👍 please support by subscribing 😊
Thanks a lot for the introduction🥰🥰🥰
Glad my video helped you 😊 Please subscribe👍
Really Very helpful video mam.
Thank you 🙏
You're welcome👍 please subscribe
Thank you! You might want to restart your pc after setting the Path variable (this is what resolved all my issues)
Ohk
Thanks for this guide , it has really helped me alot
Glad to hear it! Please subscribe
You are the best this was so helpfull
Glad my video helped you.
You're welcome 👍 Please subscribe😊
at last, this video solved my problem. Thanks alot madam
Most welcome 😊 please subscribe
Okay @@CSCORNERSunitaRai
thankyou Mam it was really helpful... How ever i had to restart my laptop in order to not get an error
Glad my video helped you 😊 Please subscribe👍
Thanku so much Mam💖
this is very helpful video❣
Glad my video helped you😊👍 please subscribe
Excellent..!
Glad you like it!
You're welcome 👍 please subscribe
Mam i was facing problem in setting up the jdk file , every time it was showing error . After 1 week finally i found your video and solved the problem ❤❤❤❤❤❤
Glad to hear that! Please subscribe👍
Thanks a lottt.....you are just so awesome😇
You're welcome 😊 Please subscribe
Thanks mam it is very helpful
You're welcome! Please subscribe👍
Tnq maddam...U have done a great job
It's my pleasure! Please subscribe
Thanks to you specially for this video 👏
Glad my video helped you 😊 Please subscribe👍
@@CSCORNERSunitaRaiSure why not.
Thank you so much ma'am ❤️❤️
You're welcome 👍 please subscribe😊
Thanks mam it's working
You're welcome 👍 Please subscribe😊
Very helpful video thanks mam ❤❤
Glad you liked it 👍
Very good explanation to understand easily 🎉
Glad to hear that
Most welcome 😊 Please subscribe👍
you are the best!
Glad my video helped you 😊 Please subscribe👍
Thank you very much. 😄
You're welcome 😊 Please subscribe
Thank you sooooo much maaaaam this video helped me alot...... thank you so much making such videos tqsm❤ maaaaam ........
Glad my video helped you 😊 Please subscribe👍
Thanks ma'am this video is very helpful!
Glad my video helped you 😊 Please subscribe👍
Glad my video helped you 😊 Please subscribe👍
thank you very much
THANK YOU ! PLEASE SUBSCRIBE ! 🎉🌟
Thanku maam this video is very useful🎉
Glad my video helped you 😊 Please subscribe👍
Ma'am you are great
😂
Glad my video helped u!
You're welcome 😊 Please subscribe
U really help me madam.thanku so much
Glad my video helped you 😊 Please subscribe👍
Well done sister!
Thank you!
You're welcome👍 Please subscribe😊
Thankyou...
Welcome 😊please subscribe
itne acche se samjhane ke kiye bohut bohut thanks
Apka bhi thnx mera channel select karne ke liye 👍 Bus ab subscribe kar do
@@CSCORNERSunitaRai kr diya👍
Thank you so much
You're welcome👍 plz subscribe
You saved me ❤
Glad my content helped you😊 Please subscribe👍
@@CSCORNERSunitaRai subscribed already
you are great mam mai ise video ko kitane years se find kar raha tha
Glad my video helped you 😊 Please subscribe👍
Thanks a lot 👍
You're welcome👍 please subscribe😊
@@CSCORNERSunitaRai Done
thank you ma'am
Glad my video helped you 😊 Please subscribe👍
Thanks a lot ma'am ☺️
You're welcome 😊 Please subscribe
THANKYOUUU❤
You're welcome 😊 Please subscribe
Very clear and useful 🤍
Thanks!
You're welcome 😊 Please subscribe
Thank you so much ❤
You're welcome 😊 Please subscribe
Ok ma'am ☺️✨
thanks mam you are great 😍😍😍
You're welcome!😊 Please subscribe👍
Thank You❤
You're welcome👍please subscribe😊
Thanks mam
You're welcome👍 please subscribe😊
Thank you mam 😌
You're welcome 😊 Please subscribe
Thanks ma
Most welcome 😊 Please subscribe👍
🫡 excellent
Glad my video helped you 😊 Please subscribe👍
Mam plz make one video on how to run php code on vscode. Plzzz .. it's a long process . Plz make an video on it
Okay sure
love u mam
🤗please subscribe
in my vs code this error is showing
Could not find or load main class HelloDemo
Did you followed steps shown in video?
Watch video again
Getting Same error 😢
@@patilbgmiYT u need to open folder and then create java file, make sure ur class name and file name is same
Mam, Make A Video to use Java Fx in VSCode
Ok I'll try
Error: Could not find or load main class Hellosaikat
Caused by: java.lang.ClassNotFoundException.
mam how to fix it??
and mam in my program file there is no java folder .what should i do???🙂
Please follow the video once again
Mam I am not getting seperate file like class on the left side but I am getting output. Is it correct or should I get seperate class on left side
If u r getting output then it should be correct.
But mostly class file is generated
'javac' is not recognised as an internal or external command,operable program or batch file
What to do
U need to set java path in environmental variable
Mam i downloaded jdk and vs code was pre installed i just created a file and run the code yet i got the out put i didn't follow your steps how was that possible
Don't just create file, go to file menu use option open folder.
Follow video once again
After doing same thing im not able to get output its coming like classnotfoundexception
Please follow the video once again properly. I'm sure you will resolve error.
when new code written and run then privious code output display in terminal what should i do
U need to just click on delete button right side of output tab
Hello mam fir se ek problem aa gyi ab kya kru vs code download kiya ,extention ,code runner, live server ,env,camd prompt, bhi bhi error aa rha hai
Kya error hai
Mam my auto suggestion is showing Scanner only in case sensitive how to correct it
type it
I have followed the steps in your video, but when I try to run the code a notification appears in my terminal like this
Test.java:1: error: package java.will does not exist
import java.will.Scanner;
^
Test.java:7: error: cannot find symbol
Scanner sc=new Scanner(System.in);
^
symbol: class Scanner
location: class test
Test.java:7: error: cannot find symbol
Scanner sc=new Scanner(System.in);
^
symbol: class Scanner
location: class test
3 errors
how to solve it ma'am?
Check package name
It's java.util.Scanner
how to reduce the big path in the terminal like in your PC Ma'am?
It's my folder path. Whatever folder u will open it will take that path
Invalid jdk home specified can't locate java installation probem hai aur cmd prompt external and internal problem
Jdk ka path set kar do environmental variable mein
@@CSCORNERSunitaRai kiya hai mam nhi ho rha hai 😞😓
Ma'am I have a problem when I click run it will showing "error:could not find or load main class hellodemo
Causes by:Java.lang.classnotfoundexception:hellodemo"
Please reply maam😢😢😢
Did you followed video correctly?
U need to click on open folder and then select folder and then create java file inside it.
error: Class names, 'hello', are only accepted if annotation processing is explicitly requested
1 error , what does it means mam?
Ur file name and class name should matching
could you please explain how to get auto suggestions, thanks
Use Ctrl+Space to trigger the suggestions manually
or
type any package name followed by .
The code is running...but as i edit the code ,still previous output is displaying,not the edited one.
What to do.?😊
Ctrl+s, save then run
Also close previous terminal
Will it also work for window 7?
Yes
After clicking on the path in env the edit button is not working
Check this video
ruclips.net/video/u5NsHGKZ8oo/видео.html
@@CSCORNERSunitaRai this comment solved my issue
syntax error on token "class", @ expected . how to solve this problem
Join my telegram and Share ur code on my telegram
Thank ma'am but I didn't need to set environment variable it sat automatically 😅
Yes
But others IDE need environmental variable hence we set
Mam its showing error.. while downloading Code Runner and says try downloading manually....
Check again
Mam aapne Jo bataya waisa hi kara mane aapka program run ho gya fir dusra program run karta hu to fir se woh same error aa rahi he could not find or load main class aa raha he kya karu
Aapko apne java program ko folder mein rakhna hai.
Select file menu - open folder option
Mam I am unable to use code snippets what to do mam should I install Java extension and code runner
Which code snippet U r asking?
Yes install code runnner
@@CSCORNERSunitaRai Just installing will enable me to use snippets
@@CSCORNERSunitaRai Mam inbuilt like psvm for public static main void and syso for system. out. in and so on like if we just type one letter it shows recommendation that is it u wanted to type this
Ma’am it is not showing edit option in system variable.
(new and delete also)
9:06
Try this video for solving this error
ruclips.net/video/u5NsHGKZ8oo/видео.html
I have eclipse in my laptop, if I do this procedure in visual studio code will it affect my eclipse
No
Can you please explain how to locate the class file after it gets generated.? I am not able to locate . Please help..
It's generated in the folder where u hv saved your.java file
@@CSCORNERSunitaRai No. I checked again. I found it stored under some complicated path C:\Users\ks508\AppData\Roaming\Code\User\workspaceStorage\a0f6b36f6abbc2cbd2ad6090fe7773c8
edhat.java\jdt_ws\JavaProjects_88487455\bin.
Can you help..?
java input is not working plz make a simple video for this problem
What problem U r facing in java input?
I still stuck in Java version is not recognized as an internal or external command .. but I installed it
Check whether u have a set path in an environmental variable or not
I'm stuck too 😭🙏🏻
mam it says
"Error: Could not find or load main class HelloDemo
Caused by: java.lang.ClassNotFoundException: HelloDemo"
please help mam
U need to open a folder and then create a file HelloDemo.java
Follow all steps shown in the video properly. U will get output
@@CSCORNERSunitaRai mam i have done the way you told me to but it says the same . Although its showing output perfectly in terminal 🙂. ig thats okay. Thank you for your help
thanks, but still it says "'javac' is not recognized as an internal or external command,
operable program or batch file."
Dear check whether the path of java is set in an environmental variable or not
@@CSCORNERSunitaRai i did
After installing java jdk sill it is showing no java version installed
Did you set a path in an environmental variable?
Mam for me Im not getting the output..as it says javac is not detected or identified.. please tell me why
Did you set the environmental variable path
Yes mam i had set all the required path
But still it's showing the same..!
System variables don't showing edit option ma'am plz help me
Recently I tried this way and it's working.. Check this video
ruclips.net/video/u5NsHGKZ8oo/видео.html
Troubleshooting while changing path buttons are disabled plz reply as soon as possible
try this video to enable uneditable button and let me know whether it works for u
ruclips.net/video/u5NsHGKZ8oo/видео.html
Thanks My Issue is solved
The code is working but there is alaways an error of :- non project file 😢
can u share on my telegram, what error u r getting
Mam I'm gettin erro while running code
It showing like
Error: could not find or load main class
Watch video one more time and follow same
Tq mam