This morning, turn on your computer and start eclipse with an error: Failed to create Java Virtual machine.
I have just started to use this tool, I consulted colleagues, colleagues said I do not know, is not poisoned. The hateful is that the
1. Download the eclipse IDE for Java EE under Www.eclipse.org/downloads
2. Download tomcat7.0 to tomcat.apache.org
3. To http://www.eclipsetotale.com/tomcatPlugin.html download configure Tomcat to eclipse plugin
4. Download Struts2 library files to
Just contact Linux, configure the Java development environment encountered a variety of problems, some solved, some did not solve or solve the bad, one record down, have time to do.
This problem, there are several online solutions:
1. Adjust the
When you start eclipse, you find that the lower-right corner of the building workspce to 2%, does not move, eclipse for a long time did not respond, and then pop-up error message: An internal error occurred during: "Building Workspace ". GC overhead
Description
When eclipse starts, you are prompted to select workspace, which can set the storage location yourself, but set the default space if you select "Use this as the" and "does not ask again". There will be times when you need to open a
1. Environment Configuration
A) Java 1.7+
b) Eclipse Luna
c) Maven3.3.9
d) Spring 4.3.1
2. Create Maven Project
A) Open Eclipse,file->new->project->maven->maven project
b) Next
C Select the project created for WebApp, next
D fill in the project's
Java is an open source programming language, like to study the source of Java developers will not be tempted to debug the JDK source code. While the official JDK has its own source pack src.zip, it is cumbersome to view variables while in Debug. For
Method One: The first time to create a MVN project will report Maven-resources-plugin-2.6.jar error, because MVN can not automatically load this jar package, delete this directory of C:\Users\Administrator\.m2\ Repository\org\apache\maven\plugins
Eclipse shortcuts-Easy to find, hehe, bad memory
Line Comment/Pin comment ctrl+/block comment/Pin comment/xml comment ctrl+shift+/ctrl+shift+\
Find Find replace Ctrl+h ctrl+f
Find Next/Find Ctrl+k ctrl+shift+k
Jump to a line ctrl+l, ha used to
font SettingsWindow->preferences->general->apperance->colors and Fonts->basic->text Font->Edit (Consolas General Small four) I like it.
work space default encoding settingsWindow->preferences->general->workspace->text file Encoding (UTF-8)
Window->
MAVEN projects in work often have parent-child structures, and there are interdependent relationships in the substructure project. 1, the project needs
To create a MAVEN parent-child project in Eclipse today, for example, you need to build a MAVEN
build errors for spider; Org.apache.maven.lifecycle.LifecycleExecutionException:Failed to execute goal org.apache.maven.plugins: Maven-compiler-plugin:2.3.2:compile (Default-compile) on project spider:compilation failureUnable to locate the Javac
Do not use SYSTEM.OUT.PRINTLN as a debugging tool
Enable verbose logging levels for all components
Use a log analyzer to read logs
1. Conditional breakpoint
ThinkLike how we normally add breakpoints, the usual practice is to double-click the left
Scenario: Maven Project adds third-party jar pack dependencies
Workaround: Create a used dependency directory structure in the local warehouse.
Create the following steps:
A, take Ojdbc14.jar as an example, if we want to write the following
First of all
To open the set code folding feature in eclipse
1. Windows->perferences->General->Editors->Text Editors
You can see the Enable Folding option, and you can use the code folding feature on the tick, but also in the specific
Global search and replacement of Myeclipse/eclipse
1: Use the shortcut key "Ctrl+h" to open the File Search dialog box, select the "File Searches" tab, in containing text enter the string you need to search, in scope, select the range you want to
We usually use eclipse to develop JSP pages when the smart tip is not ideal, today spent two hours to discover eclipse can also be as visual Studio 2008 as fully intelligent hint Html/js/css code, using Eclipse's own plug-ins, You do not need to
has been using Tomcat6.0 and jdk1.6, now the project to upgrade with jdk1.8 and Tomcat8.0, suddenly found that my eclipse does not support such a high version, only to jdk1.7 and Tomcat7.0,
So the Internet check, need to install plug-ins;
To install
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.