Welp.... HEEEELP!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Welp.... HEEEELP!!

I wanted to practice Java on pc BUUUUT viscose keep saying no matter what I write in Java (even hello world) Vscode:"app.java is a non-project file, only JDK classes are added to it's build path" I'm pretty sure I installed even vscode shows it's path ..... but still the same error

21st Jan 2021, 6:53 PM
Indra
Indra - avatar
11 Answers
+ 2
if you've found the solution please tell me faster also...I would be really grateful to you:(
12th Feb 2023, 3:47 PM
Jyoti Punia
Jyoti Punia - avatar
+ 1
Indra example: Class Hello ..... File Hello.java
21st Jan 2021, 7:50 PM
Abdul Lee🎌🇳🇬
Abdul Lee🎌🇳🇬 - avatar
0
Indra Your java file name and Java class name should be same.
21st Jan 2021, 6:55 PM
A͢J
A͢J - avatar
0
I Am AJ ! Like.... I rename the file hello for example and Write java class in the code ????😅
21st Jan 2021, 7:00 PM
Indra
Indra - avatar
0
Abdul Lee🎌🇨🇳🇳🇬 still doesn't work.....
21st Jan 2021, 10:28 PM
Indra
Indra - avatar
0
Indra Can we get some screenshots or the code, so we can know the problem
22nd Jan 2021, 5:49 AM
Abdul Lee🎌🇳🇬
Abdul Lee🎌🇳🇬 - avatar
0
I tried to put a screenshot but can't it's okey , I'll try to fix it on my own thanks anyway 😉
22nd Jan 2021, 10:56 AM
Indra
Indra - avatar
0
Damn its been really two years, i dont remember this problem, but yeah your file and class should have the same name, if you are using vscode, make sure u installed the right extensions and jdk, i think that was my problem
12th Feb 2023, 3:49 PM
Indra
Indra - avatar
0
it's all fine all extensions are installed as well as I tried renaming also nothing is working
12th Feb 2023, 3:51 PM
Jyoti Punia
Jyoti Punia - avatar
0
btw thanks for replying anyways I wasn't expecting there would be any reply after 2 years hehe
12th Feb 2023, 3:52 PM
Jyoti Punia
Jyoti Punia - avatar
0
Jyoti Punia did u install the jdk ? , also ur vscode can detect the jdk, if no jdk means there is a problem somewhere I used to put the jdk and vscode in same disk so it can detect it
12th Feb 2023, 4:03 PM
Indra
Indra - avatar