eclipse

What are the best tools/concepts/things you learned to become a better Java programmer?

I have known Java for quite some time now but have not produced much quality software. Tools in Eclipse like autocomplete, refactoring, Mylyn, etc make things much less of a burden. I'm asking you guys, who are in java all day, what helped you become more productive? Reusing your work? Keyboard bindings? Planning philosophy? ...

Exception thrown on creation of Google App Engine Google Web Tools initial project

The following log file is created when I create a GAE GWT project: java.lang.RuntimeException: Unexpected exception at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:59) at com.google.appengine.tools.enhancer.Enhance.<init>(Enhance.java:60) at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:...

Is CVS with Eclipse using the command line possible?

I've been using Eclipse to do CVS checkout from within the Eclipse interface. Is it possible to do it using the command line just like any normal CVS program? When I type CVS in my command prompt now, I get the usual cvs is not recognized as an internal or external command but CVSing should be possible since it's part of Eclipse. Do ...

Enabling maven dependency management disables refactor menu item in Eclipse

Does anyone notice that after enabling Maven dependency management in Eclipse for a project, the refactor item on the context menu of Java editor disappears for that project? Is there a solution to that? A patch or upgrade? Or a kludge? Further Info: Need to further assert that the context menu on project/package explorer is unaffected...

Eclipse Android Project broken from accidental Run of XML

Hey, Have had this happen alot, I forget to select the .java file before running an android app from Eclipse. I have a .xml selected, press Run and the projectfile breaks. How do I fix it? ...

Android emulator refuses to boot

I'm an Android newbie trying to learn how to port one of my apps to the Android platform. I've been following this tutorial: http://www.vogella.de/articles/Android/article.html#overview I'm stuck unable to boot up the emulator :( When I tell it to start, it would just stick at the "Android" boot animation for hours on end. I searche...

Launch plugin as OSGi

I changed my Java SE (right button click on project Configure -> Convert to Plug-in Projects) to plug -in, but when i try to run it - it run as Eclipse application, how to start it as OSGi? Thanks! ...

Eclipse: How do you change the highlight color of the currently selected method/expression?

In eclipse, when your cursor is placed on a method (or other things), other places the method exists are highlighted. I'd like to change the color of this highlight, but after scouring the eclipse preferences many times in all 3 places, I have yet to find it. Any of you Eclipse gurus know where to find this option? Thank you! ...

How to output additional debugging information using Eclipse and Android JUnit

I am developing a simple android application using eclipse. I wrote a JUnit TestCase for a class I wrote. One particular test compares two 2d arrays so see if they are equal. If they are not equal the test fails. When the test fails I would like to print out the contents of the offending array to see what went wrong. I have tried Sys...

Android string.xml error for every character I type

I am going through the android hello world tutorial, and have been stuck when trying to create an XML UI. For some reason, even on a new program, in which I have made no changes to the default build, it gives the error java.lang.NullPointerException after every character I type. I can't figure out why it is doing this, as I am just try...

Filter/Sort the classes in problems view based on author in eclipse

Hi,I need to filter or sort the warnings in problems,Tasks view based on the author names given in the class.[@author userName]. Is there any way i could configure it. If not can some one give direction to extend the view and add my own either filter or sorting. Thanks in advance ...

request.setCharacterEncoding("UTF-8") wrong when going to myEclipse from JBuilder2008

hi I am working about a project.I was working with JBuilder2008 till last and my codes was true and my projefct whould work successfully.for today I have got to work with MyEclipse. and I have gote a problem: request.setCharacterEncoding("UTF-8"); has got a red line below 'setCharacterEncoding' and it has below problem message: The metho...

How to use my MPLAB C32 compiler in Eclipse IDE

Hi Geeks, Can anybody let me know the procedures to configure the build settings in Eclipse(Helios) IDE for MPLAB C32 Compiler from Microchip? ...

Singling out web.xml errors in Eclipse

When Eclipse detects an invalid XML document, in my case a web.xml file, it dumps the content model of the DTD and tells me that the element is invalid. This is quite unhelpful, since it ends up telling me that: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,f...

Blackberry RIM device, access the server problem java

hi, ı have a problem with my project. the exception says " Server cannot handle the message because of some temporary condition " .The code is here, ı try to salve this problem but ı couldn't.. package Kpaket; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.ui.*; import K...

How to get the inline command launch by eclipse in Java

Hi, I would like to see what command line executes Eclipse when launching my java program. How could I get that please ? (like for example java.exe -classpath "H:\Eclipse_workspace\Example1\bin;.... myClass.class) Thanks ...

eclipse workbench customisation

Hi, We are developing one workbench application. For that one we have already created the workbench application not RCP application. And when I run I am able to see my workbench application as exactly like Eclipse. Now my requirement is, I dont want the all the menus which Eclipse provides. Say for example, We dont want Run Menu in our ...

Change modifiers to final in netbeans

Is there any equivalent command in Netbeans for Eclipse's "Change modifiers to final where possible"? ...

How to debug an OSGi Bundle inside eclipse using maven structured project

Hi, I have a maven project which library should also be an OSGi bundle with an declarative service. I added the OSGI-INF folder with the service.xml inside src/java/resources which will be added to the jar. But: When I start the project as equinox project, where I want to check if the service is loaded, I get the error that the OSGI-INF...

What preference key to set java compiler compliance preference?

Hi all, A specific plug-in in my (branded) Eclipse-distribution requires java 1.6, but I really want java 1.5 to be the default java compiler compliance setting (because the Eclipse-distro is, among other things, being used for Android application development). I bundle a java-6 jre, then the Eclipse disto is launched using that jre, wh...