Weeks of programming can save us hours of planning. 

Please go to Lab Notes Eighteen. 

Right and save link as: labSix.jar

Where do you save it? Where is Dylan K? 

We do not have Neelan either? 

Yi has saved it on the desktop. 

Next we need to open cmd (the command line). 

On my computer it looks like this: 

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\dgerman>cd Desktop
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\dgerman>cd Desktop

C:\Users\dgerman\Desktop>dir
 Volume in drive C has no label.
 Volume Serial Number is 42B8-DA49

 Directory of C:\Users\dgerman\Desktop

07/22/2014  02:35 PM    <DIR>          .
07/22/2014  02:35 PM    <DIR>          ..
07/22/2014  11:59 AM                74 0722.txt
07/22/2014  12:34 PM             1,158 Broker.class
07/22/2014  11:43 AM        12,243,053 drjava-stable-20130901-r5756.jar
07/22/2014  12:37 PM             2,573 Example.class
07/22/2014  12:37 PM             2,326 Example.java
07/22/2014  02:35 PM            23,471 labSix.jar
07/22/2014  12:24 PM             1,188 One$1.class
07/22/2014  12:24 PM             1,196 One$2.class
07/22/2014  12:35 PM             1,403 One.class
07/22/2014  12:37 PM             2,326 One.java
07/22/2014  11:44 AM                70 One.java~
07/22/2014  12:35 PM               994 Two.class
              12 File(s)     12,279,832 bytes
               2 Dir(s)  62,362,591,232 bytes free

C:\Users\dgerman\Desktop>


Now I try to run the code:

07/22/2014  12:37 PM             2,326 One.java
07/22/2014  11:44 AM                70 One.java~
07/22/2014  12:35 PM               994 Two.class
              12 File(s)     12,279,832 bytes
               2 Dir(s)  62,362,591,232 bytes free

C:\Users\dgerman\Desktop>java -classpath labSix.jar CrapsGame
'java' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dgerman\Desktop>PATH=%PATH%;"C:\Program Files\Java\jdk1.6.0_33\bin"

C:\Users\dgerman\Desktop>java -classpath labSix.jar CrapsGame

C:\Users\dgerman\Desktop>java -classpath labSix.jar CrapsGame

C:\Users\dgerman\Desktop>


I had to set the path. 

I don't like it without pictures. 

So I download the six pictures: 

https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/craps/images/die1.png

https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/craps/images/die2.png

https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/craps/images/die3.png

https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/craps/images/die4.png

https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/craps/images/die5.png

https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/craps/images/die6.png

I place the pictures run the program still no pictures. 

Kyle says: unpack the jar file. 

C:\Users\dgerman\Desktop>java -classpath labSix.jar CrapsGame

C:\Users\dgerman\Desktop>jar xvf labSix.jar
  created: META-INF/
 inflated: META-INF/MANIFEST.MF
 inflated: CrapsGame$1.class
 inflated: CrapsGame$2.class
 inflated: CrapsGame.class
  created: Images/
 inflated: Images/die1.png
 inflated: Images/die2.png
 inflated: Images/die3.png
 inflated: Images/die4.png
 inflated: Images/die5.png
 inflated: Images/die6.png

C:\Users\dgerman\Desktop>

And now if we run program:

...

Turns out that all we had to do was to put all images in folder 
Images next to the .jar file. And then use the same command.