+ 1

Iam not getting byte code or class file

when I press javac ExampleProgram.java it takes me to next line and nothing happens

5th Apr 2017, 8:14 AM
Naredla Ajay (Channel A)
Naredla Ajay (Channel A) - avatar
1 Answer
+ 19
javac ExampleProgram.java compiles the source code, it won't show anything in console. Check your root directory, the class file must be created there. To run a java file in console, type this command after compiling: java ExampleProgram
5th Apr 2017, 8:52 AM
Shamima Yasmin
Shamima Yasmin - avatar