MyEclipse Environment Construction

Source: Internet
Author: User

The company came to a few new people, always teaching them the environment to build these, each time to help them debug the code is always tired of watching them waiting for MyEclipse compile, check what, and in the code when also do not use shortcut keys, then I can only silently sit back. In order to facilitate their one-time after the establishment of a good environment, including a lot of myeclipse settings, I organize this blog, after all, myeclipse everyone with the English version.


Now use is MyEclipse, suggest everyone also use MyEclipse, in my previous work, some colleagues play Web project, use unexpectedly is Eclipse, ya jsp template are not, their daily in there to copy and paste, I think all think the company is too unreasonable, But all nonsense, big company also a look, Zhejiang big net new and CICA also are, do not have a document, and then common development tool What also is not unified, personal feel team of collaboration as far as possible consistent, can reality result is a lot of people's myeclipse unexpectedly not set Java encoding format, Results are often the default GBK, some utf-8, ya results i open all is garbled, I faint.


1, using myeclipse,myeclipse more than eclipse some plug-ins, when writing jsp,html can be directly new, this is roughly the difference. Use MyEclipse without your own SVN plugin, so to download an SVN plugin yourself, it is recommended to install it yourself, do not use the online installation of that. How to install the plugin for Eclipse, I reproduced a blog, specifically to see. After downloading the SVN plugin, the decompression will be dropped in the Dropins directory, restart the myeclipse just fine. As for how to install the JDK, configure the Java environment variable these, do not repeat, I have written in front of the blog, I can go to find.


2, download good tomcat, here to change 2 places:

1), in the server.xml of the connector plus attribute: uriencoding= "UTF-8", the results get the method of parameter encoding and decoding problems.

<connector port= "8080" maxhttpheadersize= "8192" maxthreads= "" "minsparethreads=" maxsparethreads= "      75"      enablelookups= "false" redirectport= "8443" acceptcount= "connectiontimeout="      20000 " Disableuploadtimeout= "true"  uriencoding= "UTF-8"  />      <!--This was hereforcompatibility only, not Required--><connector port= "8009"      enablelookups= "false" redirectport= "8443" protocol= "ajp/1.3" uriencoding= "UTF-8"/>

2), if you want to "turn on" Tomcat's "column directory" function, modify the listings=true of Web. XML under CONF.

<servlet>        <servlet-name>default</servlet-name>        <servlet-class> org.apache.catalina.servlets.defaultservlet</servlet-class>        <init-param>            <param-name >debug</param-name>            <param-value>0</param-value>        </init-param>        < init-param>            <param-name>listings</param-name>            <param-value>true</param-value >        </init-param>        <load-on-startup>1</load-on-startup>    </servlet>


3, set the encoding.





4,validation: can be properly disabled to boost level performance.


5,myclipse.ini (64-bit operating system may need to increase the relevant configuration, otherwise myeclipse will often be down). This thing does not work, I spent 12000 to buy this top computer, 12G memory, the result is always said memory is not live, there are a lot of posts on the Internet, so I changed several times the IDE, it is estimated that some version of the cause of instability, I use the MyEclipse are 2014 or 2015, Results The company side of the people are using myeclipse6.0 version, finally I installed a myeclipse10 blue version, can be used normally.


By the way, the following parameters are described:
-xms128m represents the JVM heap (heap memory) minimum size 128MB, initial allocation
-XMX512M represents the maximum allowable size of the JVM heap (heap memory) of 256MB, on demand.
Note: If-XMX is not specified or is specified as small, the application may cause a java.lang.OutOfMemory error from the JVM that is not throwable and cannot be captured with Try...catch.
The permsize and MaxPermSize indicate that the virtual machine is a Java-generated object (permanate generation) such as the class object, the method object, these reflective (reflective) objects are allocated memory limits, The memory is not included in the heap memory area.
-XX:PERMSIZE=64MB minimum size, initial allocation
-XX:MAXPERMSIZE=256MB maximum allowable allocation size, on demand too small will cause: Java.lang.OutOfMemoryError:PermGen space MaxPermSize Default value and-server- The client option is relevant.
-server option, the default maxpermsize is 64m
-client option, the default maxpermsize is 32m

6, configuring Tomcat


-xms256m-xmx512m-xx:compilethreshold=8000-xx:permsize=256m-xx:maxpermsize=512m-xverify:none-da
-doracle.jdbc.v8compatible=true
-dorg.apache.jasper.compiler.parser.strict_quote_escaping=false
-dfile.encoding=gbk
7, about Maven and Ivy, CICA this side has not been used, and later. These 2 pieces of commonly used tools, I will be in the follow-up dedicated blogging to organize.
8, turn off the automatic update function of MyEclipse
-Open windows-"preferences-" MyEclipse Enterprise Workbench
-maven4mymyeclipse-"Maven
-In the right pane, remove the download and updata opening hooks.
-Close update schedule windows-"preferences-" general-"Startup and Shgutdown"
-Remove the hooks before the Automatic Updates scheduler
-Will Windows->perferences->myeclipse Dashboard, close Show....on start
9. Close the unwanted myeclipse module
-Open windows-"preferences-" General
-Select "Startup and Shutdown" in the left pane
-Select the necessary boot components in the right pane and turn off the unneeded components.

MyEclipse Environment Construction

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.