You must have a working installation of JDK 1.5 or JDK 1.6 before you install JBoss Application Server. You can install the 32-bit or 64-bit JVM as per your requirements
Create an environment variable called JAVA_HOME that points to the JDK installation directory, for example: C:\Program Files\Java\jdk1.5.0_14.
In order to run java from the command line add the jre\bin directory to your PATH, for example: C:\Program Files\Java\jdk1.5.0_14\jre\bin. To do this, open the Control Panel from the Start Menu, switch to Classic View if necessary, open the System Control Panel applet, select the Advanced Tab, and click on the Environment Variables button.
N.B.: Don't put trailing slashes on paths
You can download the Binary zip files from http://labs.jboss.com/jbossas/downloads/.
Unzip jboss-XXX.zip to extract the archive contents into the location of your choice. You can do this using the JDK jar tool (or any other ZIP extraction tool). In the example below we are assuming you downloaded the zip file to the /jboss directory.
N.B.: If something gone wrong while testing run.bat (like no page at http://localhost:8080) try to download a previous release. In my test 5.1.0 doesn't work, otherwise 5.0.1 gone excellent
Create an environment variable called JBOSS_HOME that points to the JBoss Application Server installation directory, for example: C:\Program Files\JBoss\jboss-XXX.
In order to run JBoss Application Server from the command line, add the jboss-XXX\bin directory to your PATH, for example: C:\Program Files\JBoss\jboss-XXX\bin. To do this, open the Control Panel from the Start Menu, switch to Classic View if necessary, open the System Control Panel applet, select the Advanced Tab, and click on the Environment Variables button.
After you have installed the JBoss Application Server, it is wise to perform a simple startup test to validate that there are no major problems with your Java VM/operating system combination. To test your installation, open the JBOSS_DIST/jboss-XXX/bin directory and execute the run.bat (for Windows).
N.B.: pay attention if in the messages displayed on DOS prompt there wasn't something like ".... Starting Coyote ...." try to download another version of JBoss
Now open http://localhost:8080 in your web browser. (Make sure you dont have anything else already on your machine using that port).
N.B.: if you change Environment Variables, you must close and reopen DOS prompt to refresh
More info at:
Download the JavaService package from http://forge.objectweb.org/projects/javaservice/.
Unzip the package and use the InstallJBoss.bat file to install the JBoss service. You must set the JAVA_HOME and JBOSS_HOME environment variables to point to the jdk and jboss-as directories before running InstallJBoss.bat.
Run InstallJBoss.bat with the following syntax:
InstallJBoss "" -auto
then start "JBoss" service into "Services" window.
N.B.: always set the parameter depends to "", elsewhere the service doesn't start (is a bug of the script InstallJBoss.bat)
Abbiamo 6 visitatori e nessun utente online