eclipse

Eclipse JEE IDE not supporting javax.servlet package

I downloaded Eclipse JEE IDE to build Java Web Applications (servlets and jsp pages). But it still not supporting javax.servlet package. Why? What's the reason? Is there any plugin that I need to install? ...

Subclipse - marking code changes like in Netbeans

I moved recently from Netbeans to Eclipse. Since I have to work with the project checked out from SVN I installed Eclipse. My question is: how to make Sublipse indicated the changes that I introduce in the source code (downloaded from SVN) just like Netbeans? Is there any way? Regards ...

How to get EL (Expression Language) content assist (autocomplete) in JSP / JSP Tags in Eclipse?

Is there a way, via configuration, upgrade or a plugin to get content assist in JSP EL expressions? e.g. ${CTRL+SPACE ... or ${pageContext.CTRL+SPACE ... etc... ...

What is the best Vim plugin for Eclipse

I have found 3 and would like to know other people's ideas: Vimplugin Vrapper Eclim Eclim is sort of the "wrong" way around. It takes eclipse to vim. I want to take vim to eclipse. I've put it there cos its just cool! ...

Java: specific enums and generic Enum<?> parameters

Hi all, I want to pass any enum value to method in utility class and get another enum value of same enum type. Something like this: public class XMLUtils { public static Enum<?> getEnumAttribute(Element element, String name, Enum<?> defaultValue) { if (element.hasAttribute(name)) { String valueNam...

Eclipse is constantly redeploying my web project to tomcat

Following this question (in short: I have created a web project with maven and I am deploying it to tomcat with eclipse). Eclipse is redeploying and redploying my project non stop. The project seems to work, but this is very annoying. At the beggining I thought that eclipse is eagerly deploying the project after my edits, but it happens...

frequent problem in android view, Error parsing XML: unbound prefix

Hello, I have frequent problem in android view, Error parsing XML: unbound prefix on Line 2. <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:orientation="vertical" android:id="@+id/myScrollLayout" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:layout_height="wrap_content" a...

Two Eclipse UI Form sections that grab excess vertical space and fold properly?

I'm trying to create an Eclipse Form that has three foldable sections, one fixed size and two others that should grab all the remaining vertical space in the editor window so, that when one of the bottom sections is folded, the other one would fill all the available space. I have read the forms article, tried many variations of grabExce...

Eclipse won't check for errors in my code (JEE)

I have been trying to use Spring in my JEE projects and while everything will compile just fine for some reason Eclipse just refuses to do any sort of live error checking like it normally does. you know like underlining a line of code that is totally wrong for ex: System.BananaBoat.SetSail(); Obviously this class doesn't exist but Ecl...

Build failed question - maven - jre or jdk problem

Hi all, I have my JAVA_HOME set to C:\Program Files (x86)\Java\jdk1.6.0_18 After I run maven install I get this message from eclipse: Reason: Unable to locate the Javac Compiler in: C:\Program Files (x86)\Java\jre6\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is ...

Eclipse RCP - Launch editor from file menu

What would be the best approach to launch an editor from the file menu(File>New). Should I encase the editor inside a view and launch the view from a command? ...

ERROR: JDWP Unable to get JNI 1.2 environment

I get this error after debbuging in eclipse. The debug is successful though. ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820] What does it mean? ...

Export OSGI-Application from Eclipse

I've developed an osgi application (no rcp) using eclipse. It consists of several Plugin-Projects-Bundles and dependencies from eclipse plugins folder (commons.* ...) The application works fine when launched using eclipse. What is the best way to export and deploy such an application from eclipse? Is there a simple way to export my la...

Eclipse 3.5 load time and other performance improvement

I am using eclipse 3.5 Galileo enterprise edition for development of java standalone applications.I have disabled few plugins in startup.Still i am not quite happy with the IDE performance.Are there any more feature disable or configurations to make it work faster? Please tel me if further information is required to answer this,i will up...

Web services clients in Java

I'd like you to list all the solutions available to generate web-service clients in Java platform. I need to extract the structured information from the web-service to work with. What do we have in the box? Preferably available as Eclipse plugins. Axis2 JBossTools Apache CXF What else ? The problem here is that most tools do not w...

Where does Hibernate Tools store its database connection info in Eclipse?

I am using Hibernate Tools in Eclipse and having a problem. When we were initially trying to setup HT to be configured properly with our weird configuration, we made a custom DB connection (Right click your Hibernate configuration -> Edit Configuration - it's a dropdown box labelled Database connection:) Now, we're not using that anymor...

gdb fails with error 193 when debugging MinGW-compiled code

This is shown when I try to debug my code with Eclipse: I then tried creating a simple Hello World program manually with Notepad++ and the command-line gcc. When I launched the gdb debugger this happened: (gdb) run Starting program: C:\Documents and Settings\Pieter\Bureaublad/test.exe Error creating process C:\Documents...

how to mark code review defects in eclipse?

i'm using eclispe 3.5 + mylyn + trac. i'm looking for a way to mark source locations, that we identify in code reviews, in the IDE. i need at least a way to collect all source locations and associate them with either a review or an assignment. i'd prefer to use mylyn tasks as much as possible, but i can settle for the most basic eclip...

Is it problematic to assign a new value to a method parameter?

Eclipse has an option to warn on assignment to a method's parameter (inside the method), as in: public void doFoo(int a){ if (a<0){ a=0; // this will generate a warning } // do stuff } Normally I try to activate (and heed) almost all available compiler warnings, but in this case I'm not really sure whether it's worth i...

Bookmarking with eclipse

I really miss the bookmarking feature of Visual Studio + Resharper. For example, I press Ctrl+K, Ctrl+K to toggle a bookmark, and then Ctrl+K, Ctrl+N to go to the next bookmark, Ctrl+K, Ctrl+P to go to the previous bookmark. I can even go to the next/previous bookmark in current file with some other key combination. Unfortunately, I cann...