0

I've got the class file, but when I write java ExampleProgram, It says that it could not find the file. What should I do??

Please help!!!!

15th Jan 2017, 7:31 AM
Aadhitya Sachdeva
Aadhitya Sachdeva - avatar
5 Antworten
0
your class needs have the same name of your file.java
15th Jan 2017, 7:34 AM
Jesus Montiel
Jesus Montiel - avatar
0
but what does that mean?
15th Jan 2017, 7:35 AM
Aadhitya Sachdeva
Aadhitya Sachdeva - avatar
0
Java generates a file called bytecode with extension .class which is interpreted by the virtual machine of java and this must have the same name of your main class
15th Jan 2017, 7:39 AM
Jesus Montiel
Jesus Montiel - avatar
0
oh!
15th Jan 2017, 7:40 AM
Aadhitya Sachdeva
Aadhitya Sachdeva - avatar
0
well I'm just 13, do...
15th Jan 2017, 7:40 AM
Aadhitya Sachdeva
Aadhitya Sachdeva - avatar