Pergunta

I have GreetingClient class here:

C:\Users\khoy\Desktop\IntelliJ IDEA Projects\src\Networking

When i try it in command line by typing java GreetingClient (after javac GreetingClient.java), it generates the error (as seen in the screen shot below):

enter image description here

Foi útil?

Solução

go up one level and execute java Networking.GreetingClient


Note

  • Your package naming doesn't match convention

See

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top