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
11 odpowiedzi
+ 2
if you've found the solution please tell me faster also...I would be really grateful to you:(
+ 1
Indra example:
Class Hello
.....
File Hello.java
0
Indra
Your java file name and Java class name should be same.
0
I Am AJ ! Like.... I rename the file hello for example and
Write java class in the code ????😅
0
Abdul Lee🎌🇨🇳🇳🇬 still doesn't work.....
0
Indra Can we get some screenshots or the code, so we can know the problem
0
I tried to put a screenshot but can't it's okey , I'll try to fix it on my own thanks anyway 😉
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
0
it's all fine all extensions are installed as well as I tried renaming also nothing is working
0
btw thanks for replying anyways I wasn't expecting there would be any reply after 2 years hehe
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