Prerequisites: you have configured your Java environment and installed the myeclipse plug-in.
1. Download JBoss from http://www.jboss.org/and decompress it in a directory (note that this directory or its parent directory cannot contain spaces; otherwise, an error cannot be found)
2. Configure the server
1) Click the myeclipse option. (Still under "preferences" under the "windows" option in the menu bar)
2) In the preference dialog box, find myeclipse on the left and select enable. Note: Do not change the server name. Click application.
3) Select JDK
4) Configure launch and click OK.
5) Start JBoss in the tool ,(You can also enable it in the mode of "debug" on the servers label.)
6) The startup is successful. If the startup is successful, the following prompt will be displayed. It is best to run it in the bin of JBoss before starting. start BAT to see if it is successful. If it is successful but cannot be started from myeclipse, It is the configuration problem.
3. Note that if you extract JBoss to an inappropriate location, such as the desktop, the desktop path is C:/Documents and Settings/XX/desktop, the path name always contains the "statements and settings" containing spaces. In this way, the "cocould not find the main class" error will always be reported when the server is enabled in myeclipse.
In fact, the tomcat-based Web application configuration method is similar