Well, ARES won't work with JBoss 4.x, you need to install 3.2.5 which I don't believe will work with JDK 1.5, you'll need 1.4.2. It's possible the installer doesn't work with JDK 1.5 either, hence the error you see.
Install JDK 1.4.2 and JBoss 3.2.5 and see if it works then.
H.