Javaweb development environment configuration is also a relatively cumbersome thing, although in theory using Notepad, can write a javaweb project,
But in the javaweb process of large team development, you have to configure Eclipse, SVN, Tomcat and JDK1.6, and of course the MySQL database, but the database configuration is the background content, this article only discusses the configuration of the foreground development environment.
The reason why choose Myeclipse6.5 is because other high version of MyEclipse is too card, editing small program is OK, editing large program completely unbearable, Eclipse function is simple, so still choose the old version, The classic version Myeclipse6.5 as the Javaweb development environment. If some companies prohibit the use of pirated software myeclipse must use open source Eclipse, then you can also refer to, after all, eclipse configuration is similar to MyEclipse.
Take a large Javaweb project with a 8000+ file as an example, Using Myeclipse8.6 to modify some multi-line code page, start Tomcat takes a full minute, sometimes even up to five minutes, memory consumption of up to 1G, and then open the browser to browse, for a i3 4G machine is unbearable, and use the Myeclipse6.5,tomcat start only 30 seconds,
Memory usage is not high, at least open the browser, browse the page, while hanging the work of QQ, there is no lag situation.
First, Myeclipse6.5
As a classic version, handy in the online search, you can find, Siberai m around, a key installation, without any serial number, loaded directly can be used,
The first time you start, be careful to choose a good development environment, and you choose this development environment as the default directory,
In the future, all projects will appear in this directory, in order to avoid each start Myeclipse6.5 to choose.
Select Window->preferences after opening and enter start and shutdown in the search box at the top left
You can close the module according to your needs, but in fact, the key is to turn off the final automatic upgrade.
Then enter validation in the search field
Choose Disable all, close all grammar checks, and don't need this at all, just like a grammar check in Word, without any effect.
Then enter the font, select colors and fonts and click the text font again to the right of the change. Choose Calibri Bold Fourth to make the font a little more beautiful.
Ii. JDK1.6 and Tomcat
Oneself on the Internet to install these two things, JDK1.6 will not say, all have Java foundation of people should be installed, otherwise you how to write Java HelloWorld Ah, after Tomcat, on the official website (click Open link) Download a 6.0 compression package.
After this compression package decompression to your favorite location, the green version, decompression can be used, in the Myeclipse6.5 configuration,
Or window->preferences, enter Tomcat in the search box at the top left, select Tomcat 6.x, make sure that Tomcat server is enabled, and select Browse in Tomcat home directory. Select the Tomcat path you just unzipped. The following two items are automatically populated.
Then select the JDK below the left Tomcat 6.x. The default in the Tomcat JDK Name column is MyEclipse 6.5, which of course does not, click on the right of the add:, in the popup dialog box, browse. Select the path to the JDK, and note that it is the main path of the JDK, not the bin directory, such as C:\Program files\java\jdk1.6.0, not C:\Program Files\java\jdk1.6.0\bin, This is a bit different from configuring the JDK in Windows, and after browsing is complete, JRE name adds its own favorite name, such as jdk1.6, click OK, and then write in the following optional Java VM arguments:-server-xms256m- Xmx1024m-xx:permsize=64m-xx:maxpermsize=128m, which was prepared for the successful running of the large Javaweb project.
then click OK.
Third, SVN1.8
Close Myeclipse6.5, open the official website (click Open link), select Download and Install, download SVN1.8, but this network is a foreign site, special card, can also be here (click to open the link) to download. Extract the features and plugins folder, copy to ... \myeclipse 6.5 (root directory) \myeclipse\eclipse inside, other *.xml files do not, do not have this folder, build one yourself, open myeclipse, Right-click on the list of items on the left, select Import:, choose checkout projects from SVN under SVN, always click Next, enter your SVN URL, and the corresponding username and password, you can take the project from the SVN server. If this is not possible, then install a tortoisesvn from the Internet, brain stump installation, always point to the next step.
Then right-click the SVN project with the team option, commit commits the project, and update downloads the project from SVN. The first option, Sychronize, is to check the file differences between local and SVN servers.
After the synchronization is complete, the project can be edited in MyEclipse.
Iv. get the project to Tomcat and run it
In the Server tab below Myeclipse6.5, select the appropriate tomcat server, right-click, add deployment Select the appropriate project, wait for the compilation to complete, click on Run Server.
The reason for choosing myeclipse6.5+jdk1.6+tomcat6.0+ SVN1.8 completely because these versions are not cards, classic, practical, in fact, tomcat5.5 can be very good to run the major programs, SSH framework as long as Web. XML is written well, using the corresponding JDK package can write a lot of good large javaweb project, JDK1.6 has been able to ensure that a large number of Java programs in the class And the normal operation of the package. Myeclipse6.5 to the system occupancy rate is very low, the high version of the MyEclipse, the general machine is really no luck.
Configuration of the "Javaweb" foreground development environment myeclipse6.5+jdk1.6+tomcat6.0+svn1.8