To run the J2EE examples such as EJB and JMS, you need to set up the J2EE according to the following instruction.
Get J2EE from Sun's website (http://java.sun.com/j2ee/) and install it.
ex) C:\j2sdkee1.3
ex) set J2EE_HOME=C:\j2sdkee1.3
grant {
permission java.security.AllPermission;
};
Note that Sun's J2EE does not work with IBM's JDK.
ex) cd c:\examples
ex) bin\run-j2ee.bat -verbose
ex) cloudscape.bat -start
ex) %J2EE_HOME%\bin\j2eeadmin.bat -addJmsDestination MyQueue queue
ex) bin\run-JMSListener.bat
ex) deploytool
Select [File]->[Open...] to open an EAR file. Select [Tools]->[Deploy...] to deploy the EAR file. You can exit the deploytool after deployment.