Eclipseee developing a Web configuration environment

Source: Internet
Author: User

Are you used to myeclipse? Suddenly change to eclipseee not used to?

Then configure it, it is the same as the use of MyEclipse Basic.

Step1:

Of course, the installation of eclipseee, which is not much to say.

Step2: Configure workspace default encoding anti-Chinese garbled:

Windows->preferences ... Open the Preferences dialog, navigate to the left navigation tree, navigate to General->workspace, right text file encoding, select Other, change to UTF-8, and later create a new project in its Properties dialog box, text file Encoding is the UTF-8.

Step3: referenced libraries solution is not visible under Eclipse Java EE perspective:

Your perspective is actually Project Explorer, and you're used to the package explorer, so just close Project Explorer and open the package explorer.

Open method: Menu window->show view->other->java->package Explorer, if referenced libraries directory is still missing from the Package Explorer window , you can click the inverted triangle arrow in the top right corner of the Package Explorer window and choose Show ' referenced Libraries ' Node in the popup menu.

STEP4: Configuring Tomcat

First, go to the official website or anywhere else on the internetDownloadaTomcatCome Back (mine is TOMCAT7), directUnzipwe can. Go to eclipseee again .Configurationit, click Eclipseee's Menu barwindows-show view-servers, the next section of the console will switch to servers this page, you directly in this part of theBlank AreaRight-clickNew-server, in the dialog box that appears,SelectApache under theTOMCAT7version (that is, configure a 7.0 version of Tomcat), and thenClickthe followingServer Runtime Environmenton the right.Add, pop up a dialog box, point to the right of theBrowse ...go tofind the path to your extracted Tomcat7, find the confirmation and come back in the JRE drop-down box .Select a version of the JDK(preferably the JDK version you always use, do not choose the default version), and then determine what is roughly the same as the Tomcat side of the configuration.

So the configuration of Tomcat can be used, but virtual, you open, in the browser http://localhost:8080/is to tell you 404!!!

You need to double-click your Tomcat in servers, go to a Settings page, find the Server Locations column, select use Tomcat insallation, and change the server path to webapps,crtl+ s can be saved.

STEP4: Build a Web project:

in the eclipeee.Create a new Dynamic Web project,new-project ...-Select the following WebDynamic Web Project(Dynamic Web projects, so you can have JSP, etc.), fill out the project name has beenNextto theFinish, the project was built, in the projectnew a JSP or HTML page, write something to the page, and eclipse will automatically put the finished page into the WebContent directory.

STEP5: Publishing to Tomcat

with Tomcat configured in the Eclipseee .Publishyour Web project. In theconsole that block area clickServers, CONFIGURED in the followingTomcat version on pointRight-click, selectAdd and Remove, put the Web project you want to publish in the left avilableAddto the configured configuration on the right, this will launch Tomcat and the Web project you added will be automatically deployed.

STEP5: Run

Start Tomcat to run, select JSP right-click Run as-->run on service, will automatically pop up the Eclipse browser, open JSP.

You can also go to the external browser to access the address, if you want to automatically pop up is not the Eclipse browser, but you specify the external browser is also available, set the following:

windows->preferences->general->web Browser settings can be!!!




Eclipseee developing a Web configuration environment

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.