Configuration environment (Windows XP + eclipse 3.3 + Tomcat 6.0 + lomboz3.3)

Source: Internet
Author: User

Configuration environment (Windows XP + eclipse 3.3 + Tomcat 6.0 + lomboz3.3)

  • Configure the environment
    Windows XP SP2
    JDK 1.6
    Tomcat 6.0
    Eclipse 3.3
    Lomboz 3.3

    I. install and configure JDK (jdk1.6)
    (1) download the JDK Toolkit (jdk1.6) from the Java official website)
    Http://java.sun.com/javase...


    (2) execute the installation file,


    (3) configure the Java Runtime Environment:
    [Start]-[Control Panel]-[performance and maintenance]-[system]-[advanced] or right-click [my computer]-[properties]-[advanced]

    Tomcatpluginv321 installation, tomcatpluginv321:
    Http://www.eclipsetotale.com/tomcatPlugin.html

    This plug-in allows you to restart tomcat in Elipse and provides functions such as automatic release and debugging of JSP projects. It is one of the preferred plug-ins for JSP development. Decompress the package and directly drop it to the D:/Eclipse/Plugins directory. However, considering the uninstallation, I decided to install the package using links.

    Go to the environment variables page and select the path option in system variables.

    Enter your JDK installation directory (% java_home %/bin, % java_home % is the Java installation directory) in the initial end of the variable value item to the bin directory. Note: Do not forget the semicolon.

    (4) test
    [Start]-[run]-[cmd]-[Java-Version] to view your current JDK version

    Create a text document in the C-drive root directory, type the following statement (), and save it as a Java file. Note: The class name must be consistent with the saved document name and be case sensitive.

    Test the compiled Java file () in command line mode. If the file runs successfully, "Hello world" is displayed!

    Ii. Security of tomcat6.0
    (1) download the tomcat installation package
    Http://tomcat.apache.org/d...

    (2) execute the installation file,

    (3) test (disable Tomcat server after test)
    Execute tomcat6w.exe (% tomcat_home % is the tomcat installation directory) in the % tomcat_home %/bindirectory, and click Start to start the Tomcat server.

    Open your browser and enter http: // localhost: 8080 in the address bar. The following figure is displayed if the server runs successfully.

    PS: In the example, Tomcat is a Windows Service installer(.exe) program. After installation is successful, no additional configuration is required.

    Iii. Installation of eclipse (eclipse3.3) and lomboz (lomboz3.3)
    (1) download the eclipse and lomboz packages (the version numbers of eclipse and lomboz must match; otherwise, an error is thrown)
    Http://forge.objectweb.org...

    (2) execute the program (use it directly after decompression without installation ),

    Note: lomboz3.1 and later versions do not have the lomboz option in the eclipse preference interface.

    Iv. installation and configuration of Tomcat plug-ins
    (1) download tomcatpluginv321.zip. You can go to Baidu or Google to search for it because the official website is inaccessible. The following url is for your reference only.
    Http://d.download.csdn.net...

    (Register first)

    (2) decompress tomcatpluginv321.zip to the plugins folder in the eclipse installation directory.
    Note
    :
    The links method is to put the plug-in another directory, and then use a configuration file to tell eclipse where to find the plug-in. First, create
    Plugins_dir is used to save the plug-in. Create the tomcatplugin directory in plugins_dir, and then create
    Eclipse, and then create
    Plugins, and then decompress atatplugin to this plugins. Some may be confused. In fact, the plug-in is located at D:/Eclipse/plugins_dir/tomcatpluginv321/Eclipse/plugins/COM. sysdeo. Eclipse. tomcat_3.2.1.

    Create D:/Eclipse/links and create a tomcatplugin. Start file in it. The content is as follows:

    Path = plugins_dir/tomcatpluginv321

    Start eclipse and you will see the three CAT buttons on the toolbar. The "Tomcat" menu appears in the main menu, indicating that the plug-in has been installed successfully.

    (3) Restart eclipse in command line mode (start in-clean mode)

    (4) Configure tomcat version and tomcat home (refer to the installation path)
    Open eclipse and choose Window> preferences> tomcat]

    5. Test the integrated environment (JSP program)
    Create a new project
    Open eclipse and choose File> New> Project> Web]

    Enter the project name test and click Finish.

    Create a server and choose File> New> Other> server]

    Create a JSP file and choose File> New> Other> Web]

    Input File Name

    Edit JSP files,

    Open the server, right-click and select start

    Run the server and choose run as> run on server]

    Open your browser and enter http: // localhost: 8080/test. jsp in the address bar.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.