-3

I have tried to compile a java program (hello.java) on Cygwin.

$ javac hello.java

I got the java class file named A.class. How can I get an output class file named hello.class?

Please understand my question! I am not asking how to compile a java program in a command line. Indeed, I already did it. But I got the java class file named A.class instead of hello.class. So, please read my question again. Thanks!

Toebi
  • 5
  • 5

1 Answers1

-1

I am going to answer my own question. javac hello.java > hello.class

Toebi
  • 5
  • 5