First, let’s talk about the environment configuration. Note that the environment I configured is under win 2000 server, not Linux. The general configuration process has nothing to do with the operating system. It is only different in the specific installation. Whether the configuration is successful or not has nothing to do with the operating system.
The software installation is divided into the following parts:
1. Java environment installation:
jdk1.4.1 is used here (jdk1.4.2 is also available), which can be downloaded from the Sun website;
2. Tomcat environment installation:
The version of tomcat is 4.1, the installation version or the decompressed version are both acceptable;
3. eclipse 3 installation:
You can download it from the following address http://www.eclipse.org/downloads/index.php.
I downloaded version 3.1M4, this version It should be relatively new. 4. Tomcat plug-in installation;
the tomcat plug-in can be downloaded from the following address: http://forge.objectweb.org/project/showfiles.php?group_id=97
http://download.eclipse.org/tools/emf/scripts/downloads .php#goto2.1.0I
I downloaded emf-sdo-runtime-I200412160800.zip and org.objectweb.lomboz_3.1.0.N20050106.zip;
here I mainly select the appropriate lomboz plug-in based on eclipse, and then check the lomboz plug-in. Introduction, the required version of the emf plug-in will be introduced there, and then go to the address below to find the emf plug-in.
Okay, now that you have everything you need to download, let me introduce how to install and configure it.
1. Java environment installation
: Just install it directly, but it is best to install it somewhere other than the system disk, so that you can better understand the jvm configuration; after installation, you need to configure the environment variables, create a new JAVA_HOME, and configure the path , add the bin directory of jdk, so that you can use jdk commands in any path on the command line.
[Test]: Write a hello world program, and then use javac hello.java and java hello commands under dos. If it can be executed normally, it proves that the jdk installation is successful.
2.
Just decompress the decompressed version of tomcat installation, and then configure TOMCAT_HOME. There are two points to note when installing the version. One is that the tomcat service can be started after installation, but TOMCAT_HOME still needs to be configured; the second is You need to check whether the installation program has registered the tomcat service as a Windows startup service. You need to check in "Services". If there is this option, set it to manual startup and stop the service first.
[Test]: Use the startup.bat command. After the service starts normally, enter http://localhost:8080/ in the IE browser.
If a normal kitten page appears, then there should be no problem.
3. Install eclipse 3.
The installation of eclipse is very simple. Just unzip it and copy the eclipse directory to the drive letter. When starting, the system will automatically search for the jvm. Of course, it can be configured later, but it seems that it must be installed first. jdk.
4. The steps for tomcat plug-in installation, emf plug-in installation, and lomboz plug-in installation
are the same. Unzip the software package, and then copy the directory files to the feature or plugins directory according to the directory structure inside. That's it. , the following will describe the configuration of eclipse in detail.
5. Configure eclipse
1. First, open the configuration interface window->preferences. If these plug-ins are installed successfully, there should be options for lomboz and tomcat in the list on the left. If not, check if the steps above are correct.
Click java->Installed JREs, and then the display is as shown above. If it is the initial installation, only the first jre is displayed (don’t ask me what a jre is, check the information yourself), which is the system default jre installed on the c drive. If If there are multiple jdk installed in the system, it is best to create a new one, click add, and then select the location of the jdk you need to use, and then it will automatically look for other parameters and click ok. After returning to the interface, don't forget to click on the jdk you just added, otherwise it will be useless. Then click OK to close this window.
2. Open the configuration interface again and click the tomcat option.
Here are the parameters for configuring tomcat. According to the version of tomcat you installed, select tomcat version, then find the home directory of the tomcat and enter it in tomcat home. The following parameters will be automatically configured. Click apply. Then select advanced on the left, also copy the tomcat home directory to tomcat base, and click apply.
Finally, select jvm setting on the left, select the jre you just added, click apply, and click ok. That's it. Return to the interface and click the yellow kitten icon on the toolbar. If the configuration is correct, there should be information about starting tomcat in the console. If there is, it means that the tomcat configuration is successful.
1. Lomboz basically requires no configuration. If there is the lomboz option on the left, it is basically successful. Click lomboz, and then select tools.jar in the jdk you just configured. The configuration is complete. The test method is to create a new jsp file and see if the script code is specially displayed when it is opened, and create a test class to see if the jsp can automatically reference the functions in the class.