0

CMD error while compiling

21st Apr 2017, 6:52 AM
N.Esakkimuthu
N.Esakkimuthu - avatar
21 Antworten
+ 6
1. Check whether java is installed properly 2. Go to start , search environment variables, click new Name :- PATH location :- (paste location of your java )
21st Apr 2017, 7:00 AM
Meharban Singh
Meharban Singh - avatar
+ 3
Be more specific.. Make sure u have java installed on your PC. check it by using this command java -version space is important between java and - . if ur system has java it will show you the JRE version.
21st Apr 2017, 6:55 AM
Manideep
Manideep - avatar
+ 2
where ever you want...but set that path in cmd before compiling
21st Apr 2017, 7:21 AM
Manideep
Manideep - avatar
+ 2
Example like if u have saved your .java files in your c drive in a folder named programs . type ""cd c:\programs"" without quotes in cmd and the path should be changed ... Hope you understand :0
21st Apr 2017, 7:27 AM
Manideep
Manideep - avatar
+ 2
if u got windows 7...u can try what LEGOL said.. if u have xp u need to change path manually ..refer above link..
21st Apr 2017, 7:40 AM
Manideep
Manideep - avatar
+ 1
More details please 🙃
21st Apr 2017, 6:54 AM
LEGOL
LEGOL - avatar
0
Google this: adding Java to PATH I think it would help
21st Apr 2017, 6:57 AM
LEGOL
LEGOL - avatar
0
I am a beginner to Java. I saved ExampleProgram.java in the location E:\Esakki\JAVA. While try to give javac code in CMD it shows "...is not recognized as an internal or external command, operable program or batch file."
21st Apr 2017, 6:57 AM
N.Esakkimuthu
N.Esakkimuthu - avatar
0
Java compiler requires to be added to PATH to work
21st Apr 2017, 6:59 AM
LEGOL
LEGOL - avatar
0
Also you need Java development kit
21st Apr 2017, 6:59 AM
LEGOL
LEGOL - avatar
0
make sure you have installed jdk and set the path at environment variables
21st Apr 2017, 7:00 AM
Reinaldo Riyandi
Reinaldo Riyandi - avatar
0
my Java se build 1.8.0_131_b11
21st Apr 2017, 7:00 AM
N.Esakkimuthu
N.Esakkimuthu - avatar
0
where should I save .Java file
21st Apr 2017, 7:18 AM
N.Esakkimuthu
N.Esakkimuthu - avatar
0
javac: file not found: Example for am.java usage: javac <options> <source files> use -help for a list of possible options
21st Apr 2017, 7:34 AM
N.Esakkimuthu
N.Esakkimuthu - avatar
0
I think I know what's wrong. Open folder where you saved file. Hold shift and press right mouse button. Then click open command prompt here
21st Apr 2017, 7:38 AM
LEGOL
LEGOL - avatar
0
guys plz don't get irritated 'coz f ma Qs. I am totally new to this. kly guide me
21st Apr 2017, 7:39 AM
N.Esakkimuthu
N.Esakkimuthu - avatar
0
guys plz don't get irritated 'coz f ma Qs. I am totally new to this. kly guide me
21st Apr 2017, 7:39 AM
N.Esakkimuthu
N.Esakkimuthu - avatar
0
windows 10 original os
21st Apr 2017, 7:45 AM
N.Esakkimuthu
N.Esakkimuthu - avatar