Skip to content
Advertisement

Tag: eclipse

Eclipse release heap back to system

I’m using Eclipse 3.6 with latest Sun Java 6 on Linux (64 bit) with a larger number of large projects. In some special circumstances (SVN updates for example) Eclipse needs up to 1 GB heap. But most of the time it only needs 350 MB. When I enable the heap status panel then I see this most of the time:

@override annotation in JDK 1.6

I’m using JDK1.6. When I implement an interface and in the implementing class, if I give @override before my function names, Eclipse throws an compilation error. i.e. below code is wrong according to Eclipse. If I remove @Override annotation, then the code compiles fine. Does it mean that JDK1.6 does not require us to prefix the @override annotation anymore? Answer

Bringing unit testing to an existing project

I’m working on an existing Java EE project with various maven modules that are developed in Eclipse, bundled together and deployed on JBoss using Java 1.6. I have the opportunity to prepare any framework and document how unit testing should be brought to the project. Can you offer any advice on… JUnit is where I expect to start, is this

I don’t understand the purpose of the src folder and separate packages

I’ve been using Eclipse only for Python over the last few months, and I’d like to start using it for Java. However, according to the tutorials I’ve looked at, the proper way to organize your Java project is to create a package in the source folder named, for example, com.project, and have all the classes and such be named com.project.class.

Eclipse copy/paste entire line keyboard shortcut

Anyone know the keyboard shortcut to copy/paste a line into a new line in Eclipse, without having to highlight the entire line? ctrl-alt-down turns my whole screen upside down (I’m on windows). Interestingly, that’s what’s specified in the windows->preferences. Answer Ctrl-Alt-Down: copies current line or selected lines to below Ctrl-Alt-Up:: copies current line or selected lines to above Ctrl-Shift-L: brings

JDI Thread Evaluations has encountered a problem

I’m running Eclipse for Java. I created a DOM version of an XML file. Now I want to change an attribute of an element in the file. I called a method that called a method in the class that controls the DOM, and I got a dialog box saying “JDI Thread Evaluations has encountered a problem. Exception processing async thread

Eclipse debugging “source not found”

I just started using Eclipse so go easy on me ;). But when trying to debug a JUnit test case I get a dialog that states the the source is not found when I get to this line in the code in my test method: I know I should probably go and try and download the source from somewhere, but

Advertisement