Skip to content
Advertisement

Tag: eclipse

Very slow debugging in Eclipse

I try to debug Jonas webapp under Eclipse. Unfortunately when I connect to the remote application everything works terriblly slow (also after killing all java applications and restarting the PC). I use also JRebel. What might be the cause of such behaviour? Answer You could also try using the Java Monitoring and Management Console. This may help show where the

How to deal with missing src/test/java source folder in Android/Maven project?

I’m not very experienced with Maven in combination with Android yet, so I followed these instructions to make a new Android project. When the project has been created, I get the following error message: Project ‘xxx-1.0-SNAPSHOT’ is missing required source folder: ‘src/test/java’ When I try to add a new source folder with New->Other->Java-Source Folder with src/test/java, I get another error

VisualVM launcher error

I’m trying to use the Eclipse VisualVM launcher. It seems pretty nice, except that it seems to spawn an instance if VisualVM too late to do any profiling of my application. My application finishes execution before the profiler is even initialized; once it starts up, an error window pops up, saying: cannot open requested application. It then shows VM running

How to crash an Android app programmatically?

I want to test out crash report using acra but the first step is I need to simulate a fatal crash in Android using code. Any idea? Answer Just execute this code: divide by zero Update: Also can try this Create a method, And call this somewhere/buttonClick OR simply throw an uncaught exception Bingo!

Eclipse is executing the wrong Java file

I am using Eclipse to write and test Java. I am a beginner so i don’t know anything about Eclipse. The problem occurs when I try to run the Java file I just wrote. Instead of executing the file that is opened, it executes the file that I have successfully ran before. I have a few files in the same

Eclipse: How to automatically generate getter when adding a field?

I am using TDD, and have a very typical coding pattern, using Eclipse to autocreate methods and fields as I code the unit test. For example: type name of method that doesn’t exist, e.g: myObj.setValue(someValue); Click on the little red error mark in the IDE to create the “setValue” method. Type inside of setValue method: public void setValue(String value) {

Advertisement