JBoss Installation

The following instructions are Windows XP specific. For other operating systems, please adapt the instructions accordingly. On Windows XP, avoid using Cygwin. Otherwise, you may run into '/' vs. '\' path separator troubles.

  1. Download and install the Java SE platform from http://java.sun.com/javase/6/.
  2. Download JBoss 4.2.0 from http://labs.jboss.com/portal/jbossas/download and unzip it to C:\CBSE\jboss-4.2.0. The jboss-4.2.0 directory should contain the bin, client, ... files from the JBoss distribution.
  3. Download Apache Ant from http://ant.apache.org/bindownload.cgi and unzip it to C:\CBSE\apache-ant-1.7.0. The apache-ant-1.7.0 directory the bin, docs, ... files from the Apache Ant distribution.
  4. Decide how to set the PATH and JAVA_HOME environment variables. Globally (in Control Panel, System, Advanced, Environment Variables) or within a batch to be executed in each cmd shell before doing your CBSE homework. A sample batch file is available here.
  5. The PATH variable should contain the bin directory of the Java SE installation (C:\Program Files\Java\jdk1.6.0\bin) and the bin directory of the Apache Ant distribution (C:\CBSE\apache-ant-1.7.0\bin).
  6. Set the JAVA_HOME environment variable should contain the Java SE platform home directory (C:\Program Files\Java\jdk1.6.0).
  7. Ensure that the environment variables are set (by logging off and on) if you went for the global setting.
  8. Open a cmd shell (don't forget to run your env.bat batch file) and change to the jboss-4.2.0/bin directory and execute the run.bat command.
  9. Extract the source code for the second lecture (src/cookie-server-2).
  10. Open a new cmd shell (don't forget to run your env.bat batch file) and change to the cookie-server-2 directory.
  11. Edit the build.xml file and set the JBOSS_HOME property.
  12. Run ant deploy to compile and deploy the cookie server.
  13. Run ant run-client to run the client.