Question

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

Was it helpful?

Solution

go up one level and execute java Networking.GreetingClient


Note

  • Your package naming doesn't match convention

See

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top