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.
- Download and install the Java SE platform from http://java.sun.com/javase/6/.
- 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.
- 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.
- 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.
- 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).
- Set the JAVA_HOME environment variable should contain the Java SE platform home directory (C:\Program Files\Java\jdk1.6.0).
- Ensure that the environment variables are set (by logging off and on) if you went for the global setting.
- 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.
- Extract the source code for the second lecture (src/cookie-server-2).
- Open a new cmd shell (don't forget to run your env.bat batch file) and change to the cookie-server-2 directory.
- Edit the build.xml file and set the JBOSS_HOME property.
- Run ant deploy to compile and deploy the cookie server.
- Run ant run-client to run the client.