Hello,
Thanks for posting this question!
I learned a lot from getting the Ping Pong Game to run using the command line.
This is how I finally succeeded:
C:\Eclipse\Cristina\workspace\Lesson12\src\com\pra cticaljava\lesson12>javac
GameConstants.java
C:\Eclipse\Cristina\workspace\Lesson12\src\com\pra cticaljava\lesson12>javac -classpath C:\Eclipse\Cristina\workspace\Lesson12\src PingPongGreenTable.java
C:\Eclipse\Cristina\workspace\Lesson12\src\com\pra cticaljava\lesson12>javac -classpath C:\Eclipse\Cristina\workspace\Lesson12\src PingPongGameEngine.java
C:\Eclipse\Cristina\workspace\Lesson12\src\com\pra cticaljava\lesson12>java -classpath
C:\Eclipse\Cristina\workspace\Lesson12\src com.practicaljava.lesson12.PingPongGreenTable
It took me a while to understand that I needed to use the name of the class together with the name of the package when I execute PingPongGreenTable (com.practicaljava.lesson12.PingPongGreenTable in the last command), although PingPongGreenTable.class is located in the same directory where I execute the JVM.
|