// Chongqing Song Guangyi If you need to reprint, please keep this information // qq: 27570974 E-mail: zituo@126.com Wait for a major website in a ASP.NET, the development environment is Microsoft Visual Studio .NET 2003 (Hereinafter referred to as VS) C #, because I used this less, but I feel that Microsoft's things are more human, at least I have installed VS, and then configure IIS6 below Windows 2003, it will be more convenient to work Of course, if you have to do some database applications (this is also inevitable), you have to pull MSSQL.
Now I am back to JSP (or a big name called the name, the J2EE) of the camp. Previously, because of the computer, I reinstalled the system. I want to see the J2EE's development environment. I want to have a headache. I have to install a lot of software, and every software setting is even more The people who have done before. So, this article, even if it is written to J2EE, people who have worked hard at the door.
Let me talk about the software you need:
1. Tomcat 5.0.16 I use this version, I feel good, different versions may be small. As for the download address, there are a lot of online.
2. JBuilder 9.0, now jbuilder2005 has already come, I have never used it, but I use the JBuilder X feeling that it is not very good, mainly the machine can't afford it. My current computer configuration is: C42.4G 256 * 3, I feel ok to use JBuilder 9. As for the acquisition of this software, it can be obtained online. If you are not easy to access the Internet, the computer city seems to have a D version (I just used the D version, although now the country is resistant to the country. This is the truth, I use The D version has damaged the benefits of Borland, but if I don't have to, it may harm our interests).
3. JDK1.4.2for Windows, this stuff is actually after the JBuilder is installed, it has already been there after its installation directory.
Step 1: Configure the environment of JDK1.4.2;
This is the most basic concept. Generally, the beginning of J2SE will tell this, just configure some of the JDK's execution environment, mainly: classpath, path, java_home, jdk_home These and so on. Of course, it is necessary to explain that you have to add servlet-api.jar in the Tomcat installation directory to the ClassPath environment variable, in general, I will put the three library files of MSSQL in this directory. In ClassPath, these three files are: msbase.jar, mssqlserver.jar and jsutil.jar.
Step 2: Configure Tomcat5.x;
Relatively, this may be a slightly trouble of step, because you have to manually change the configuration file, which is the server.xml this file in the Tomcat installation directory, which determines some of the parameters that the Tomcat server starts. For example, monitor port numbers and virtual hosts. Of course, your port number cannot be repeated with other ports on the computer, such as the commonly used 80, 110, 21, of course, if you have this web server on your machine, it is best to change it into 80 port, so access It is more convenient when it is. The following is my server.xml content: XML Version = '1.0' encoding = 'UTF-8'?>
TYPE = "org.apache.catalina.userdatabase" /> parameter> parameter> Resourceparams> Globalnamingresources> Connectionor> Redirectport = "8443"> connection> Host> Engine> Service> Server> Note this paragraph in After this setting, don't launch the Tomcat server, because now you are not in your E: build a Tomcat directory, of course, the next thing is JBuilder. Step 3: Create a web project in JBuilder9; This step is also the introduction course of JBuilder 9. Select fileànewàprojectàprojectàok, there will be a window in the following picture, I set up Project Name and the directory, according to my situation, what I built is as shown in the figure below: Be sure is that the E: / Tomcat is just consistent with the path in Server.xml when you configure Tomcat. Next, FileàNewàWebàWeb Application creates a web application named OA, as shown below: If you can here, then the next thing is very simple. You can build JSP files or servlets even under this OA project or even Javabean. At this point you can start your Tomcat 5 from the Start menu, point the address to the address you configure, such as my: Http://sam.zituo.com:1860/ can access some cases the last effect may be like this: At this point you can add JSP or JavaBean and servlet in JBuilder 9. After you modify it, just generate a project in Ctrl F9 in JBuilder, and then refresh the web page. It feels a bit like VS to use C # written ASP.NET applications. Of course, my article can only point up, others may need your efforts!