What's up? 

I hope your servers are up. 

If they are let's post an applet. 

Here's what you need to do:

  cd ~
  cp /l/www/classes/a348/spr2013/software/apache-tomcat-7.0.35.tar.gz ~
  gunzip apache-tomcat-7.0.35.tar.gz
  tar xvf apache-tomcat-7.0.35.tar
  rm apache-tomcat-7.0.35.tar
  cd apache-tomcat-7.0.35/
  cd conf
  mv server.xml server.xml-backup
  pico -w server.xml
  pico -w ~/tomcat-settings
  source ~/tomcat-settings
  echo $CATALINA_HOME
  ps -ef | grep adac
  $CATALINA_HOME/bin/startup.sh
  history

Now we have Tomcat installed. 

Let's run these lines:

  mkdir $CATALINA_HOME/webapps/iceblox
  mkdir $CATALINA_HOME/webapps/iceblox/WEB-INF
  mkdir $CATALINA_HOME/webapps/iceblox/WEB-INF/classes
  mkdir $CATALINA_HOME/webapps/iceblox/WEB-INF/lib
  cp /l/www/classes/c212/fall2010/notes/iceblox/Iceblox.java $CATALINA_HOME/webapps/iceblox
  cp /l/www/classes/c212/fall2010/notes/iceblox/iceblox.gif  $CATALINA_HOME/webapps/iceblox
  cp /l/www/classes/c212/fall2010/notes/iceblox/iceblox.html $CATALINA_HOME/webapps/iceblox

After I do this I check I have the picture:

http://silo.cs.indiana.edu:17260/iceblox/iceblox.gif

It works for me and Artur hope it works for you too. 

Now I need to go there and compile the game:

[adacjohn@silo conf]$ cd $CATALINA_HOME/webapps/iceblox
[adacjohn@silo iceblox]$ ls
iceblox.gif  iceblox.html  Iceblox.java  WEB-INF
[adacjohn@silo iceblox]$ javac Iceblox.java
Picked up _JAVA_OPTIONS: -Xms512m -Xmx512m
Note: Iceblox.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[adacjohn@silo iceblox]$ ls -l
total 56
-rw------- 1 adacjohn students 14750 Jul 29 12:18 Iceblox.class
-rw------- 1 adacjohn students  9719 Jul 29 12:06 iceblox.gif
-rw------- 1 adacjohn students   191 Jul 29 12:06 iceblox.html
-rw------- 1 adacjohn students 17927 Jul 29 12:06 Iceblox.java
drwx------ 4 adacjohn students  4096 Jul 29 12:06 WEB-INF
[adacjohn@silo iceblox]$

So I typed:

  cd $CATALINA_HOME/webapps/iceblox 
  javac Iceblox.java

Now time has come to access it over the web:

http://silo.cs.indiana.edu:17260/iceblox/iceblox.html

If you can't access you can try from the command line:

C:\Users\dgerman\Desktop>appletviewer http://silo.cs.indiana.edu:17260/iceblox/iceblox.html

Prior to this I had to do a few things: 

(a) I had to set the PATH

(b) I had to compile on silo with a version of Java compatible with the appletviewer on the PC

[adacjohn@silo iceblox]$ ls -l
total 56
-rw------- 1 adacjohn students 14750 Jul 29 12:18 Iceblox.class
-rw------- 1 adacjohn students  9719 Jul 29 12:06 iceblox.gif
-rw------- 1 adacjohn students   191 Jul 29 12:06 iceblox.html
-rw------- 1 adacjohn students 17927 Jul 29 12:06 Iceblox.java
drwx------ 4 adacjohn students  4096 Jul 29 12:06 WEB-INF
[adacjohn@silo iceblox]$ 
[adacjohn@silo iceblox]$ rm *.class
rm: remove regular file `Iceblox.class'? y
[adacjohn@silo iceblox]$ 
[adacjohn@silo iceblox]$ echo $JAVA_HOME
/usr/lib/jvm/java-1.6.0-sun.x86_64
[adacjohn@silo iceblox]$ $JAVA_HOME/bin/javac Iceblox.java
Picked up _JAVA_OPTIONS: -Xms512m -Xmx512m
Note: Iceblox.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
[adacjohn@silo iceblox]$

So I basically had to compile with Java 6 on silo to match the PC. 

See you in lab. 

--