eclipse

How to include third party libraries in Utilty Project?

In Eclipse Java EE perspective, how does one add a thridparty Jar to a Utility Project? To elaborate: In a "normal" Java (Not Java EE) project, there's Referenced Libraries where you can put jars. In a Dynamic Web Project, there's Web App Libraries. In a Utility Project, there's only EAR Libraries, which don't appear relevant (well, the...

Eclipse missing some Preferences menu items

I have Eclipse 3.0 recently installed on a desktop and a laptop. The laptop installation is missing several menu items under Window/Preferences that appear under the desktop. The missing items include: Data Management Plug-in Development Remote Systems Servers terminal Web Web services I installed them both from Eclipse.org at about t...

Eclipse JDT: Is there a refactoring to replace direct field accesses with setter/getter methods?

I know I can generate setters and getters for fields in the Eclipse source menu, but I'm very surprised it doesn't offer to replace the direct field accessors with calls to the newly created methods. Does anyone know how to do this short of manual search and replace? Thanks! ...

Connecting multiple debuggers to a debugee (Java,JPDA)

Hi, Ive been trying unsuccessfully to connect two client debuggers to a Debuggee program in context of JPDA. Is this possible or are there workarounds to make it happen? I am using eclipse as the IDE (edit for typo). Think of a server program as a Hello World which Prints out: System.out.println("I have the String"); //1 System.out...

Eclipse (with adt) won't see/recognise a runnving avd

Hi, I have been trying this for a week or so now. I have followed the tutorial to get hello android working but while an AVD starts the program doesn't run. I am running Windows 7 64 bit with eclipse 3.5.2 running adt 0.9.9 and SDK r7. the sdk is installed in C:\android-sdk-windows eclipse is installed in C:\eclipse What i can do: ...

Eclipse CDT Debugging (An External Process) and Finding Its Source Code

When I attempt to debug a external process with Eclipse CDT, I'm able to attach to it, but I cannot get the debug configuration to find the original C source. When I launch the debugger with the process running within Eclipse, I can get the debugger to find the source code. It is only when attaching to an external process that CDT doesn...

maven, eclispse and wtp broke for no reason: it stopped putting the mvn depentent jars in the WEB-INF/lib

Ive been running eclipse (Helios Build id: 20100617-1415), sonotype maven for eclipse version 2 (0.1.0.20100xxx) for many months without issue. I can do "mvn install" on the command line, and get a perfect war, and I could run the webapp in eclipse local tomcat no problem. Then this morning, I started tomcat in eclipse, hit the serlvet...

"Debug As..." in Eclipse for Android

I'm an Android noob teaching myself debugging in the Eclipse (Galileo 3.52) environment. I have a little "hello world" app that runs fine in the emulator. So now I want to practice debugging by setting breakpoints, looking at variablaes, etc. But Run > Debug As... has nothing but a grayed-out "(nothing applicable)" entry. What doe...

eclipse build problem

I import a existing dynamic web project in eclipse using: file-> new java project-> existing project. Now i am trying to build it and deploy it. But my problem is that when i am pressing build this project option nothing goes happens, nor there is any msg in the tomcat console. The project has its own build.xml, build.properties. Infact ...

WCF Service and Java Client

Hi all, I have developed a WCF Service hosted on IIS. We have a core Java application that needs to communicate with this service. So far I have been able to use Net Beans to generate a Web Service Client by pointing it at the service wsdl and all is good. The built jar is then taken into an Eclipse project, referened there and its func...

Unable to create a ServerSocket in eclipse (java)

Hi, i am very new to programming in java however have a lot of experience in .NET (c# & vb.net). I am trying to create a new instance of a serversocket class in eclipse IDE and when i type the following code it is giving me an "Unhandled exception type IOException" and i havent even tried to run the code yet!! I dont understand how my...

Suppress FindBugs warnings in Eclipse

I am using a string as a lock and so want to ensure the object is a new instance. FindBugs complains because it's generally more efficient to define the string directly (with double quotes). My code looks like: /** A lock for the list of inputs. */ @edu.umd.cs.findbugs.annotations.SuppressWarnings("DM_STRING_CTOR") //We want a new Str...

show static fields of a class in a heap dump

I have a heap dump, and I'm interested in the values of some static fields in a class using Eclipse MAT. How can I see these? Using MAT, I can see the class in the histogram, but it has no instances, so a number of views (objects with outgoing refs, dominator tree) are empty. MAT seems to be limited to objects and object members, but I'...

get static fields of a class in a heap dump in OQL

I have a heap dump and I'm using Eclipse MAT, though I suppose this should work through visualvm or whatever OQL client. We can select fields of all instances of a class by doing something like select s.field1, s.field2 from org.me.MyClass ... but this is restricted to member variables, and to types with instances. How can select th...

Eclipse SVN synchronize problem

Hello; We changed our SVN machine because of a hardware problem. We established the same environment from back-up to another machine. Now Subversion seems to work properly, I can update, commit and browse from Tortoise Client. But in Eclipse problem exist for Synchronize command (subclipse plugin). I can browse and commit from Eclipse...

Eclipse for Mac OS X

I am Java developer who is using Eclipse on a X86 computer to code. I am considering to buy for other reasons an Desktop Mac computer and I would like to use this computer to do my coding work. I know there is a Eclipse version for Macs, I am asking if there may be some problems/issues related to Macintosh computers. Thanks! ...

How can I end an activity from inside a SurfaceView class or nested thread.

I’m writing an application (game) where I would like to end the game activity when the user fails the game. My game is loosely based off lunarlander, so I figure it may be easier to ask for help using lunarlander as an example, since a lot of folks are familiar with it. When the user fails the lunarlander game, I want to automatically ...

How to do C++ development on Windows with Eclipse and CDT?

I would like to do some C++ development on Windows using Eclipse and the CDT plugin. I use Eclipse Helios and have installed the CDT plugin. But after that I can still not create a C++ project from File > New > Project, there is still only Java Project available there. How to solve this? and do I have to install anything more for C++ de...

AspectJ is not getting added to classpath with eclipse:eclipse

I'm executing the following command, mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean \ org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse My all the dependencies are coming in classpath but AspectJ is not added to the classpath. I have them declared in pom.xml dependencies list Where as it is working if I use ...

how to move the eclipse development platforms into one on ubuntu

i have eclipse Eclipse IDE for Java EE Developers Eclipse IDE for C/C++ Developers Eclipse for PHP Developers Pulsar for Mobile Java Developers but how can i merge them and have a single interface just by changing perspective rather as if i have installed them from the update site as a plug-in can i just move all the files f...