Javac file not found error

0 votes
I'm completely new to java. I spent a lot of time fixing the javac error. Now I'm not able to access the java file.

When I type "javac First.java" in cmd it says the following:

error: file not found: First.java
Usage: javac <options> <source files>
use --help for a list of possible options

I have saved "C:\Program Files\Java\jdk-17.0.1\bin" as path variable

I have also saved JAVA_HOME variable with "C:\Program Files\Java\jdk-17.0.1" as variable path.

I'm sorry if the terms I used are wrong. Pls help me fix this.
Nov 21 in Java by anonymous
• 120 points
15 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Java

0 votes
1 answer

Getting error 404 not found when trying to download JDK

Try this command, it should work: wget --no-check-certificate ...READ MORE

answered Dec 26, 2018 in Java by Omkar
• 69,170 points
1,651 views
0 votes
1 answer

'javac' is not recognized as an internal or external command, operable program or batch file.

Hey @Paridhi, check this out https://www.edureka.co/community/4800/unable-resolve-error-recognized-internal-external-command This should solve ...READ MORE

answered Apr 20, 2020 in Java by Sirajul
• 59,090 points
810 views
0 votes
1 answer

Error:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

Hello @kartik, Include servlet-api-3.1.jar in your dependencies. Maven <dependency> ...READ MORE

answered Jun 3, 2020 in Java by Niroj
• 82,880 points
2,033 views
0 votes
3 answers

How to check whether a file exists or not in Java?

Using nio we can check whether file ...READ MORE

answered Aug 14, 2018 in Java by Sushmita
• 6,900 points
1,998 views
+9 votes
16 answers

Unable to resolve this error: "javac is not recognized as an internal or external command"

Check your javac path on Windows using Windows Explorer C:\Program Files\Java\jdk1.7.0_02\bin and ...READ MORE

answered May 23, 2018 in Java by Rishabh
• 3,620 points
344,181 views
0 votes
1 answer

Error:Unable to execute dex: Multiple dex files define

Hello @kartik, The Solution for me was just ...READ MORE

answered May 25, 2020 in Java by Niroj
• 82,880 points
442 views
0 votes
2 answers

What is a StackOverflow Error

stackoverflow error – StackOverflow Error in Java. This error is thrown to ...READ MORE

answered Aug 29, 2020 in Java by Pistle
• 1,000 points
900 views
+1 vote
2 answers