Java web development environment MyEclipse 6 5 JDK1. 6 Tomcat6. 0 SVN1. 8 configuration tutorial

The configuration of Java Web development environment is also a cumbersome thing. Although in theory, using Notepad can write a Java Web project,

However, in the process of large-scale development of java web by the team, you must configure eclipse, SVN, Tomcat and jdk1 6. Of course, there is the MySQL database, but the database configuration belongs to the background content. This article only discusses the configuration of the foreground development environment.

I chose MyEclipse 6 The 5 is too laggy because the other versions of Myeclipse are really too small. Editing small programs is fine, editing large programs is completely inadequate, and Eclipse's functions are primitive, so they still choose the old version and the classic version Myeclipse6.. 5 as the development environment of Java Web. If some companies prohibit the use of pirated software MyEclipse and must use open source eclipse, you can also refer to it. After all, the configuration of eclipse is similar to MyEclipse.

Take a large Java Web project with 8000 + files as an example, using MyEclipse 8 6 modify some multi line code pages. It takes a whole minute to start tomcat, sometimes even five minutes. The memory occupation reaches about 1g. Then open the browser to browse. It is not enough for an I3 4G machine, but MyEclipse 6 5. Tomcat starts only 30 seconds,

The memory occupation rate is not high. At least open the browser, browse the page, and hang the QQ for work. There is no jamming.

1、 MyEclipse 6 five

As a classic version, you can find it by searching on the Internet. It is about 400 m and can be installed with one click without any serial number. It can be used directly after installation,

When starting for the first time, pay attention to selecting the development environment, and you select this development environment as the default directory,

In the future, all projects will appear in this directory, saving you from starting MyEclipse 6 5 to choose.

After opening, select window - > preferences, and enter start and shutdown in the search box at the top left

You can close the corresponding modules according to your needs, but in fact, the key is to close the final automatic upgrade.

Then enter validation in the search field

Select disable all to turn off all syntax checks. You don't need this at all. Just like the syntax check in word, it doesn't work.

Then enter font, select colors and fonts, click text font, and then click Change Choose Calibri bold font size 4 to make the font more beautiful.

2、 Jdk1 6 and Tomcat

Install these two things on the Internet, jdk1 Don't mention 6. All people with Java foundation should be able to install it. Otherwise, how can you write the HelloWorld of Java? Then Tomcat downloads a 6.0 compressed package on the official website (click the open link).

After that, unzip the compressed package to your favorite location, the green version. After unzipping, you can use it in MyEclipse 6 5 configuration,

Or window - > preferences, enter Tomcat in the upper left search box and select Tomcat 6 x. Ensure that the Tomcat server is enabled, and select browse.. in the Tomcat home directory Select the extracted Tomcat path. The following two items are automatically populated.

Then select Tomcat 6 on the left JDK under X. By default, the Tomcat JDK name column is MyEclipse 6.5. Of course not. Click Add... On the right, In the pop-up dialog box, browse Select the path of JDK. Note that it is the main path of JDK, not the bin directory, such as C: \ program files \ Java \ jdk1 6.0 instead of C: \ program files \ Java \ jdk1 6.0 \ bin, which is a little different from configuring JDK in windows. After browsing, JRE name adds its favorite name, such as jdk1.0 6. Click OK, and then write in the following optional Java VM arguments: - server - xms256m - xmx1024m - XX: permsize = 64M - XX: maxpermsize = 128M, which is prepared for the successful operation of large Java Web projects.

Click OK when finished.

3、 Svn1 eight

Close MyEclipse 6 5, Open the official website (click the open link), select download and install and download svn1.8. However, this website is a foreign website, especially the card. You can also download it here (click the open link). Unzip and copy all the extracted contents to MyEclipse 8.5 \ dropins (MyEclipse installation directory), some MyEclipse will even directly appear the installer, or you can complete the installation by reopening MyEclipse. Open MyEclipse, right-click in the project list on the left, select import.., select checkout projects from SVN under SVN, click next, enter your SVN website, and the corresponding user name and password Remove items from the server. If this does not work, then install a TortoiseSVN from the Internet, brain disabled installation, and click next all the time.

Then right-click the SVN project, with the team option. Commit is to submit the project, and update is to download the project from SVN. The first option, synchronize, checks for file differences between the local and SVN servers.

After synchronization, the project can be edited in MyEclipse.

4、 Get the project to Tomcat and run it

In MyEclipse 6 5 in the server tab below, select the corresponding Tomcat server, right-click, add deployment, select the corresponding project, wait for the compilation to complete, and click Run server.

I chose MyEclipse 6 5+JDK1. 6+Tomcat6. 0+SVN1. 8 is entirely because these versions are not card, classic and practical. In fact, tomcat5 5 can run all major programs well. The SSH framework only needs web After writing XML and using the corresponding JDK package, you can write many good large-scale Java Web projects, jdk1 6 can ensure the normal operation of classes and packages in a large number of Java programs. Myeclipse6. 5. The occupancy rate of the system is very low. With the high version of MyEclipse, ordinary machines are really not blessed.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>