Posts Tagged ‘eclipse’

How to get Eclipse current workspace path

How to get Eclipse current workspace path
Eclipse does not show current workspace path easily. In order to know current eclipse workspace path, follow these simple steps.

Eclipse: Convert String Concat to StringBuilder

Eclipse: Convert String Concat to StringBuilder
Here is a simple yet effective trick for all Eclipse users. In Java we do lot of String concatenation using plain old "" + "". It is easy but not too effective. StringBuilder is always preferred if you have too many strings to concate.In below screencast, I convert concatenated strings to StringBuilder using eclipse Ctrl + 1 option....

Eclipse: Ignore “not declare static final serialVersionUID” warning

Eclipse: Ignore
Whenever you write a Java class in Eclipse which implements java.io.Serializable interface, you'll get this warning:The serializable class XXXX does not declare a static final serialVersionUID field of type longWhy do we need serialVersionUID? Whenever we implement java.io.Serializable interface, we explicitly tell JVM that this class can be serialized. Meaning, we might convert object of this ...

Eclipse: This project needs to migrate WTP metadata

Eclipse: This project needs to migrate WTP metadata
Sometimes Eclipse gives weird errors that you have no clue why is coming. For example, recently I got this strange error in eclipse's Problems view.This project needs to migrate WTP metadataTo remove this error, all you have to do is to re-validate the project.Select the project that you want to validate. Right-click the project and then ...

Eclipse resolve “resource is out of sync with the filesystem” permanently

Eclipse resolve
If you are a regular Eclipse user than you might have got this error many times. The error simply says, "you've made changes in files in your workspace from outside eclipse". The simplest solution would be to select the project and press F5 (Right click -> Refresh). This will re-sync any external changes to the file system and eclipse would now know what exactly is ...

Creating Dynamic Web Project using Maven in Eclipse

Creating Dynamic Web Project using Maven in Eclipse
While using Maven as build tool in our project, I found it very difficult to create a Dynamic Web Project which supports Maven dependencies and can execute in Eclipse! I have seen lot of people using Maven just as build tool and for local setup uses jar files in some /lib directory. I wanted to remove this dependencies on local /lib for jar ...

Eclipse Tip: Add your own Code Template in Eclipse

Eclipse Tip: Add your own Code Template in Eclipse
If you are using Eclipse as your primary development IDE, then you may want to know about Code templates in Eclipse. Code templates are certain user defined (some are available by default) templates which can assist in rapid code writing. Not only code templates increase your code writing speed, but it also add consistency across the code.To add a code template, all you need to ...

Eclipse Tip: Hide Closed Projects in Eclipse Project Explorer View

Eclipse Tip: Hide Closed Projects in Eclipse Project Explorer View
Ever wanted to hide all those closed projects in eclipse? Well, here is a simple trick that you may not know already.Imagine your Eclipse workspace is filled with many projects that you created in past just to test some small functionality. Now you are done with these projects and hence you have closed it. Eclipse by default show all the closed projects in Project ...

Eclipse: Workspace in use or cannot be created Error

Eclipse: Workspace in use or cannot be created Error
Lot of time when I am working in Eclipse, it get crashed due to some or the other reasons. Most of the time this is because I have opened a lot of applications that I am working on and this takes a bit of memory. So finally everything just get hanged and does not have enough RAM to work on. Thus, Eclipse just get hanged ...
Tags:

Setting Tomcat Heap Size (JVM Heap) in Eclipse

Setting Tomcat Heap Size (JVM Heap) in Eclipse
Recently while running Tomcat under Eclipse for one of the web application I was getting Java Heap memory related error java.lang.OutOfMemoryError. What needs to be done here basically is to increase the jvm heap size. So for increasing the JVM Heap Size of Tomcat in Eclipse we have to set few VM arguments of the tomcat.Follow ...
Page 1 of 212