Friday, August 27, 2010

How to run Package Program

I am taking same example as in ur book i.e.
Created Cards Folder and then domains folder and file in it i.e. Suit.java,Playingcard.java
Created tests folder inside Cards folder and file TestPlayingCard.java

_________________________
Know How to Compile that
_________________________
In command Prompt be in Cards folder then write following command :-

  1. javac -d . domain\Suit.java

  2. javac -d . domain\PlayingCard.java

  3. javac -d . tests\TestPlayingCard.java





___________________________

To Run
___________________________

In cards folder in command prompt


java cards.tests.TestPlayingCart

No comments:

Post a Comment