eclipse

Where Eclipse finds javac to compile the a project?

Here is what I have: JAVA_HOME=C:\Software\Java\jdk1.5.0_12 (points to JDK 5.0) In Eclipse "Installed Runtimes" I have: jre 1.5.0_12 (points to JRE 5.0) jre 1.6.0_3 (points to JRE 6.0) (this one is default) I do not have "javac" on my PATH (i.e. I cannot run javac -version from command line if I am not in JDK/bin). My project is set ...

Where to put the external jars?

Hello, i use eclipse (3.4) an my class compiles without warning nor errors. My project uses an external jar file. Where do i need to put this external jar file in order not to get a java.lang.NoClassDefFoundError when using this class from another project (not in eclipse)? Edit: I could just extract the jar into the project folder, bu...

Eclipse coding style checks as an Ant Task?

In Eclipse I can set all kinds of preferences for coding style. I'd like to be able to enforce these as an ant task to make the build break. Can anyone give me an example of how to enforce eclipse coding styles in an Ant task? (I KNOW about PMD, checkstyle etc - none of these EXACTLY match the eclipse preferences for coding style. I w...

Eclipse debug-time classpath problem: How do you include a dependent project's output into a web project's runtime classpath?

So I started with a web services project (just a dynamic web project) that builds and debugs correctly from eclipse. We've pulled a chunk of common code out that we want to put into a shared library so now those classes are going into a separate jar project that the web project references. On the web project, I did Project->Properties-...

Specifying An Alternative JRE In Eclipse For An Application Launched From Eclipse

I am trying to specify an alternative jre (my default is 1.6 and i need to run with jdk 1.4.2) in Eclipse, for an application that i shall launch from eclipse. I am not sure if I am doing the right thing in the following code: Path jreContainerPath = new Path("/usr/lib/jvm/j2sdk1.4.2_18/"); IVMInstall jre = JavaRuntime.getVMInstall(jreC...

Set the execution directory in Eclipse?

Hello, Is it possible, to execute a class in a specified directory? I mean, a.class is in directory abc and i want it to be executed as if it were in directory xyz. ...

What are the best ways to get Eclipse users to try a new plugin?

As the title states, what are the best places to try and recruit users to try a new Eclipse plugin? While this is a free plug-in, it is not open source, so threads on open-source tools don't apply. I'm also looking for Eclipse specific ideas, not general things like sourceforge / freshmeat / etc. I've submitted a talk proposal to Eclip...

What is the difference between Eclipse and Netbeans if I want to use only the Java in it?

I recently got a Dell XPS 64-bit Vista for myself. Eclipse doesn't have their 64-bit version, but I've read on forums that they download Eclipse and work with Java 1.5 on the Vista with only some problems. I have Java 1.6 and Netbeans was easily downloadable. What's the basic/big difference that I'll notice if I shift to Netbeans from E...

Debugging j2me on a Device

Has anybody had any success ever attaching a debugger to a tethered device? I am able to debug my j2me application in the emulator, but have a lot of trouble sorting out phone-specific problems when they come up. The phone I'm using is a Nokia N95, but ideally the debug process would work on any phone. Is this possible? If so does an...

How do I disable this Eclipse (3.3.2) warning - "Access to enclosing constructor ... is emulated by a synthetic accessor method. Increasing its visibility will improve your performance"

I work on a large project and want to disable the Eclipse compiler warning stating: Access to enclosing constructor ... is emulated by a synthetic accessor method. Increasing its visibility will improve your performance Eclipse version 3.3.2 ...

How to turn off the beep sound in Eclipse?

On Mac OS X, I am running Flex Builder (which is basically a customized Eclipse). When I do a Find it beeps if it cannot find the selected text and when it wraps the search to the top. Is it possible to turn off that beep? I've searched the internet and the preferences pane to no avail. ...

Runtime issues during developing an Eclipse Plugin

Right now, I am trying to create a plug-in of Eclipse which depends on other jar; therefore, I created a plug-in base on the jar and deployed it under my Eclipses' plugin foler. It works well when I start it from my working environment via an Eclipse. However, as soon as I have exported it into a jar and have deployed into Eclipse, it no...

Eclipse PDE on Mac OS X: Getting the correct font size at runtime?

Hi. There's an annoying "feature" when using Eclipse PDE on Mac OS X: the font size of the runtime IDE is not the same as the true IDE. If you're developing a plug-in and you launch an Eclipse instance to test it (from within Eclipse), you will notice that the spawned instance looks very different from the original running Eclipse insta...

Eclipse memory settings when getting "Java Heap Space" and "Out of Memory"

When trying to launch and run a flex/java project in eclipse I kept getting a "Out of Memory Exception" and "Java Heap Space" using Eclipse, Tomcat and a JRE. While researching trying to adjust the memory settings I found three places to adjust these: Eclipse.ini The JRE Settings under Window > Preferences Catalina.sh or Catalina.bat ...

Are there any good ssh consoles for Eclipse?

Hello: I'm looking for a good ssh console plugin for Eclipse, and can't find much at all. Would anyone have some good leads on one? ...

What is a debug working set (Eclipse)?

I'm using Eclipse IDE and notice an option in the Debug perspective in the Breakpoints view that allows me to chose/create a working set. I've found all kinds of help online that tells me how to make a working set or choose a working set, but nothing that explains what a working set is or why I'd want to use one. ...

Can I use eclipse xml validator in a jsp?

I'm writing an application that outputs xml and I'm using a jsp to do it (in eclipse). It works fine, but the jsp editor complains about the xml tags. Is there a way to convince the jsp editor to validate xml instead of html? ...

Which eclipse files belong under Version Control

Which eclipse files is it appropriate to put under source control, aside from the sources obviously. In my project, specifically, I'm wondering about: .metadata/* project-dir/.project project-dir/.classpath project-dir/.settings/* If there are any of these for which is depends, please explain your guidelines. ...

Cygwin1.dll 'not found' when running a program written in C. How can I make Windows find it?

So I'm trying to run my first hello world prog written in C. I compiled it in eclipse and get no errors, but when I try to run it I get: "This application has failed to start because cygwin1.dll was not found." I found this post which seems to indicate I should add it to Windows PATH, and I used this to do that. So now "Path" in my env...

How do I set different code styles depending on the file type in Eclipse?

We are using CMake to manage our builds and have a rather large project consisting of pretty much everything that is needed to build the software base for our embedded platforms save for the toolchain. When building a CDT project with CMake it puts everything into one large project rather than splitting it into individual projects based ...