Eclipse + JBoss + MySQL Development Environment Settings

xiaoxiao2021-03-06  51

J2EE is very good. As a development environment, if you use a classic configuration: JBuilder WebLogic Oracle, it is very comfortable, but the price is amazing. This configuration is mainly for large or ultra-large applications, hardware requirements are also high, and is not recommended for domestic small and medium-sized applications.

Although domestic developers have long been accustomed to the D version, the author thinks it is necessary to prevent it in order to join the OpenSource ranks as soon as possible, and promote the development of domestic software industry.

The Eclipse, JBoss, MySQL recommended by this article is highly open source software, and it is very practical.

1, JDK: Go to http://java.sun.com to download, recommended J2SDK1.4.x

2, JBoss: Go to http://www.jboss.org download, the author uses JBoss-3.0.4_tomcat-4.0.6

3, mysql: go to http://www.mysql.com Download, the author uses mysql-4.0.13, you must download Mysql Control Center, to http://sourceforge.net/projects/mmmmysql/ Download mysql's JDBC driver, such as mm.mysql-2.0.14-you-must-unjar-me.jar

4, Eclipse: to http://www.eclipse.org download, the latest version is 3.0m8, if it is a newbie recommended to download 2.1.2 and Chinese packages (2.1.2_translations). To http://www.objectlearn.com/ download Lomboz (this plugin development J2EE must be required), it is necessary to note that the version of Lomboz must be consistent with the Eclipse version, otherwise it is not normal.

Environmental Settings (Take the root directory of Win2000 D disk):

1. The installation configuration of JDK is not described here.

2, extract JBoss to D: /, extract mm.mysql-2.0.14-bin.mysql-2.0.14-bin.jar in MySQL's JDBC driver package to D: /JBoss-3.0.4_tomcat-4.0.6/server/default/lib In, then copy the mysql-service.xml under the D: /JBoss-3.0.4_tomcat-4.0.6/docs/examples/jca directory to D: /JBoss-3.0.4_tomcat-4.0.6/server/default/deploy In the directory, find the corresponding paragraph and make the following modification:

MySQLDS

JDBC: MySQL: // localhost: 3306 / test

Org.gjt.mm.mysql.driver

root

3, install MySQL and MySQL Control Center, start mysqld-nt.exe in the mysql / bin directory, and open the MySQL service. Managing (Similar SQL Server) is easily managed using MySQL Control Center.

4, extract Eclipse to D: /, then extract the contents in the PLUGINS directory in the Lomboz package to D: / Eclipse / Plugins, start the 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 is finally set, let's go!

(The level is limited, there is a hurry, welcome prawn to correct! I hope that the domestic Java fans will join the OpenSource ranks early. Eclipse is very powerful and interesting. The author is also exploring the study. In the future, the experience in learning will be in the same way. Share, welcome to discuss guidance. Http://blog.9cbs.net/lgx522)

转载请注明原文地址:https://www.9cbs.com/read-119787.html

New Post(0)