eclipse

What is the recommended way to integrate Hamcrest into Eclipse's JUnit?

Is there a recommended way to integrate Hamcrest into the JUnit configuration in Eclipse? Currently Eclipse's JUnit comes with Hamcrest-core only. I want to edit that configuration to include Hamcrest-all. How should I do this? ...

open a specific eclipse project from command line

Hello, I work with many small, but unrelated java projects. I made an Ant script that creates the .project and .classpath automatically whenever I create a new project, with the needed libraries and project name. I would like to be able to open Eclipse with that project, from the command line. Right now I do it manually, by closing the ...

Remote debug Jetty (no mvn, no plugins)

Hello all, Past scenario - Work with Tomcat and start in debug mode and Remote Debug with Eclipse. - Define a port and connect with eclipse in this debug/remote port. - Use to debug servers in other hosts/servers Today scenario Now, I'm using Jetty and I've try to do the same, but with no success, could anyone help-me with that? I ...

Subclipse problem: running .java file as Java application

After checking out code for the first time from a repository into Eclipse using the Subclipse plugin, I've found that I am not able to run Java applications anymore. Usually when I right click in the text editor window and select "Run As", I see the option to "Run as Java Application". Now, however, all I see is "Run on server." Is th...

Eclipse CDT: How to reference 3rd party includes via a Relative path

I'm new to Eclipse-CDT, setting up a new project for the first time. I'm trying to reference Boost without hardcoding an absolute path. I've put boost in my workspace folder, e.g. /home/user/workspace/boost_1_39_0 I was then hoping to add an include directory pointing to that folder relative to the workspace, but Eclipse won't do that,...

Access restriction on class due to restriction on required library

I get this error message in Eclipse: Access restriction: The type DirectoryWalker is not accessible due to restriction on required library /Library/Java/Extensions/commons-io-1.4.jar what does this mean? There's this other SO question on the same topic but it doesn't seem to apply in this case. I'm not creating a new java class, I'm ...

How to run a batch script (.bat file) from eclipse

My Java application is started by running a set of commands that are present in a batch file (.bat file). And I imported this into Eclipse workbench. How do I execute the batch file from Eclipse. Similar to the one in command line, I directly give "path:\myBatchfile.bat". Is there any way I can do directly from Eclipse. ...

Compiling a set of NSIS scripts using Eclipse

Hi All, I have a script having dependencies to two other scripts. I'm using Eclipse as my NSIS editor. whenever I have changes to script3, I have to compile script1 and script2 first. And I do it manually. Other than creating a batch file, is there a way you could tell Eclipse that everytime you compile script3, it has to compile scri...

"Find in files" shows results in .svn directories

Hello, using flex builder 3 and the find in files function alsways searches all files. How can exlude all .svn directories from the search? Perhaps there is a plugin for that or some way to "always" exlude all matches in these folders. Thank you! Regards, Uwe ...

Debugging in Eclipse IDE

I have created the breakpoint and started the project in debug mode. But still the execution does not stop at the breakpoints. I also have some junit classes in the same project, breakpoints are working fine in the junit class. So can anybody suggest a solution? Thanks in advance. ...

Auto-generate stub methods that throw in eclipse

Similar to http://stackoverflow.com/questions/46003/how-to-change-generate-method-stub-to-throw-notimplementedexception-in-vs, but for Eclipse instead of Visual Studio Both NetBeans and Eclipse have a function that, if you declare a Java class to implement an interface but omit one or more methods, will automatically generate a stub met...

java.util.Logger behaves differently when packed in different OS

I run a java program from a jar file in Linux Redhat 4.3 and use eclipse for creating the jar file from my project. If I create the jar file when running eclipse in linux everything is ok (normal logfile name and normal text format in the logfile). However, if I create the jar when running eclispe under WinXP (and send it to my linux s...

Subclipse: how to keep a branch in sync?

¿How would I do the operation described here, which is very simple from the command line, with the subclipse plugin? I think I would make sure that my working copy is in sync with the branch, then I would go to "Merge...". I'm not sure what to do in the popup! Edit: I have read somewhere that in the popup I must indicate the merge rang...

Break away from Subclipse's OLD svn client

Hi all, I'm sick of getting This client is too old to work with working copy whenever I come back to Eclipse after using an svn client newer than stone age to fix my working copies. Is there a way to make Subclipse use a current Subversion client?? ...

Android Eclipse Classpath - want to add classpath container path but eclipse won't let me.

I'm using Eclipse to learn to develop Android applications in Java. I haven't used Eclipse before. The project I'm trying to use (supplied by OReilly as part of 'Android Application Development') is MJAndroid. When attempting to run the project, the Run fails, and the Problems tab mentions com.java.Object can't be found, and Eclipse ask...

Search and replace on Eclipse

What's the syntax to perform a search/replace on Eclipse and use "match groups" ( is that it's name? " On vi I: %s/log(.*)/log \1 debug/g And lines like: log "Message" are replaced with log "Message" debug What's the correct syntax for eclipse in the search/replace dialog box ( beside checking up "Regular expressions" ) Than...

Eclipse plugin doesn't work on Macs

I'm building a plugin in Eclipse 3.5 on Windows which is a text editor for a language that my group works with. I distributed it as a .jar and just had people place it in the dropins folder. The problem is it doesn't run on any of the Macs that my coworkers use, but it seems to work fine on PCs. When run on a Mac, the plugin is simply no...

Commit all shortcut for Subclipse

I have installed subclipse and I have assigned the shortcut ctl-k to the commit command. Only problem is when I press ctl-k, it only attempts to commit the current file I have open in my editor. The only way I can get the commit to commit all changed/new files is to click the root project folder and press ctl-k. Is there a way to assi...

Getting "No Repository Found" error in Eclipse (Ganymede) while trying to install google plugins (GWT)

I'm trying to install the Google Web Toolkit for Eclipse (Ganymede), and I'm getting the following error. An error occurred while collecting items to be installed No repository found containing: org.eclipse.emf.common/osgi.bundle/2.4.0.v200808251517 No repository found containing: org.eclipse.emf.ecore/osgi.bundle/2.4.1.v2008082515...

Eclipse plugin editor

Hi, I want to create an editor in eclipse (as eclipse plug-in), for a java class that implement some interfaces i created. The editor will let the user edit some information (using a form) that will be put into the java class. - very much like in EJB editor. I want java files that implement this interface to open the editor. How can I ...