J2EE is good. As a development environment, if you use the classic configuration: JBuilder + Weblogic + Oracle, you are comfortable, but the price is amazing. This configuration is mainly for large-scale or super-large applications with high hardware requirements. It is not recommended for the current situation where small and medium applications are mainly used in China. Eclipse, JBoss, and MySQL recommended in this article are well-known open-source software and are very practical.
1. JDK: Download To http://java.sun.com, J2SDK1.4. X is recommended
2, JBoss: To download to the http://www.jboss.org, the author uses the jboss-3.0.4_tomcat-4.0.6
3, MySQL: To download to the http://www.mysql.com, the author uses the mysql-4.0.13, also need to download MySQL Control Center (graphical management tools ),
4, Eclipse: Download To The http://www.eclipse.org, the latest version of 3.0M8, if it is recommended to download 2.1.2 and Chinese package (2.1.2 _ Translations ). Download lomboz at http://www.objectlearn.com/( this plug-in is required for J2EE development). Note that the lomboz version must be consistent with the eclipse version. Otherwise, the lomboz version is abnormal.
Environment Settings (take the D Drive in win2000 as the root directory ):
1. JDK installation configuration is not described here.
2. Decompress JBoss to D: \, and select mm in the JDBC drive package of MySQL. mysql-2.0.14-bin.jar decompress to D: \ jboss-3.0.4_tomcat-4.0.6 \ server \ default \ lib, and then copy the jboss-3.0.4_tomcat-4.0.6 under the D: \ mysql-service.xml \ docs \ examples \ jca directory to D: \ jboss-3.0.4_tomcat-4.0.6 \ server \ default \ deploy directory, find the corresponding paragraph and make the following modifications: // from www.w3sky.com
<Attribute name = "JndiName"> MySqlDS </attribute>
<Attribute name = "ManagedConnectionFactoryProperties">
<Properties>
<Config-property name = "ConnectionURL" type = "java. lang. String"> jdbc: mysql: // localhost: 3306/test </config-property>
<Config-property name = "DriverClass" type = "java. lang. String"> org. gjt. mm. mysql. Driver </config-property>
<! -- Set these only if you want only default logins, not through JAAS -->
<Config-property name = "UserName" type = "java. lang. String"> root </config-property>
<Config-property name = "Password" type = "java. lang. String"> </config-property>
</Properties>
</Attribute>
3. Install MySQL and MySQL Control Center and start mysqld-nt.exe In the mysql \ bindirectory to enable the mysql service. Use MySQL Control Center for convenient management (similar to SQL Server ). // From www.w3sky.com
4. Decompress Eclipse (taking 3.0M8 as an example) to D: \, decompress the content in the plug-ins directory in the lomboz package to D: \ Eclipse \ plugins, and start eclipse. (1) window -- preferences -- lomboz, set JDK Tools. jar, Server Definitions -- Server types: JBoss 3.0 -- Application Server Directory: D:/jboss-3.0.4_tomcat-4.0.6; Classpath Variable: D:/jboss-3.0.4_tomcat-4.0.6 (2) window -- Customize Perspective -- Shortcuts -- New -- Java, check lomboz J2EE Wizards.
The development environment has been set up!