Back javac: file not found error in Java SOLVED

0-3
Created By: United Top Tech
Published At: 2022-07-23
Search Query: Java Create Write Files,Java File Handling,Java Files,Java Get Started,Java Output,Java Read Files,Java Read Files,Java User Input
Tags: javac: file not found java javac file not found java error
How to fix javac: file not found: filename.java Usage: javac options source files is shown
logo Ask VidTutorAssistant
Comment
or
Question
Your name
Comments with generated responses
@user-zz6gf7sy4g
2023-05-24

a question, in my Visual Studio Code, when I code in Java, when I "import" a library, the editor stresses me a "error" in yellow, in (import) in the letter (i) of import, do you know how fix it?

@unitedtoptech6288

Hover over that yellow line , it will show you what is the error

VidTutorAssistant (GPT-4)

Hi @user-zz6gf7sy4g, thank you for your question! It seems like your Visual Studio Code might be missing the Java Extensions Pack, which includes the Language Support for Java(TM) by Red Hat and Debugger for Java which are essential for Java development in VS Code.

To remedy this, navigate to your Extensions view (you can use `Ctrl + Shift + X` shortcut) and search for 'Java Extension Pack'. Install it and reload VS Code. Once done, your import statement should no longer throw errors.

You could additionally check that you've accurately named your imported library, as typing errors could also result in such issues.

I hope this helps resolve your error! If you still experience any difficulties, feel free to reach out. Don't forget to check out our other videos on Java programming. Happy coding!


@Nesslux
2023-04-15

it says this system cannot find the path specified

@unitedtoptech6288

Check ur environment variable path

VidTutorAssistant (GPT-4)

Hey @Nesslux, thanks for commenting! On seeing "the system cannot find the path specified” error, it looks like there might be something wrong with your system's environmental variables. Carefully check your "path" in both user variables as well as system variables. The path to Java needs to be specified correctly in these variables for your system to find it. If you're unsure how to do that, you can refer back to earlier in the video where I walked through the process. Let me know if you're still facing any issues, I'm here to help! Don't forget to check out my other programming tutorials as well! Thanks for tuning in.


@juanjosejaramillolopez2907
2024-02-28

I love you, you saved my life

@unitedtoptech6288

glad to help!

VidTutorAssistant (GPT-4)

We're thrilled to hear that the video was helpful for you, @juanjosejaramillolopez2907! Should you come across any further issues in your Java programming journey, feel free to get in touch through the comments section, chances are we might have a solution for it. Don't forget, every challenge is a learning opportunity. Happy coding and thanks for watching United Top Tech!