eclipse

eclipse + cdt + mingw + windows error "undefined reference to `WinMain@16'" on build

I installed eclipse, cdt and mingw on my windows XP machine. added C:\MinGW\bin to my PATH. Created a new c++ project, with one file in it, test.c. the code in it: int main(){ int i=1; } Trying to build, I get the error: /mingw/lib/libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to 'WinMain@16' Notice it's not compl...

Inject Groovy into existing Maven Java Project

I have been maintaining a maven java project for year. Recently, I learned Ruby and asked why haven't these nice features (of Ruby) existed in Java, and I am so happy to find Groovy the answer. It's already out there for more than 6 years and what a shame I didn't know about it sooner. Now come to the story: I have a lot of java code wri...

Android app stopping unexpectedly when built...XML layout file problem?

Hi there I've built the bare bones of my app so far in Eclipse using an adapted version of the LunarLander app provided by Android Developers. I've adjusted bits and pieces and have no errors at all though when I run it in the emulator it keeps saying "the application has stopped unexpectedly" and i have to Force Close. Is it possible ...

scope of variables when using for-loop in java - eclipse / compiler error?

I've written the following code: for(int layer = 0; layer <countLayers; layer++); { List<Sprite> spritesInLayer = sceneGraph.getLayer(layer); } when i compile this snippet, I get an error, that in the line within the for-Loop, eclipse complains that 'layer' is an unknown symbol [... = sceneGraph.getLayer(layer);] and wants me to i...

Trouble with Android App Uncaught Exceptions in the Log

When I launch my app I get the following errors in the log. Can you anyone decipher some of them for me, and give me a potential solution? I would be so grateful if you could as its proving very frustrating and I am new to Android development. I am using Eclipse SDK with an Android AVD at 1.6 SDK level. Thanks.. 07-17 11:05:57.046: ERR...

Start a Maven J2Me project in Eclipse and run it

I have a problem setting up my maven j2me project that I created in Eclipse. I have the WTK 2.5.2 & SDK 3.0 installed and associated with Eclipse. I created a project using j2me-simple archetype. Copied the files from my previous J2Me project which was working! but as I see, all the files that I know are missing. the Application descri...

Android ==> Eclipse Heap tool question ???

Ok so from my understanding each application normally gets 16 mb memory to work with. This is what is shown on the heap tool for eclipse: Heap Size: 4.5 mb Allocated: 3.2 mb Free : 1.5 mb Used : 66.7% Which one is the total memory being used? Heap size, or Allocated? ...

Vim Open Resource

Hello all. When programming in Eclipse I love to use the Open Resource dialog (Ctrl + Shift + R), which opens a simple filter with all the files in the project. My question is: is there something similar for the Vim editor. Thanks in advance. ...

Getting all classes from the current workspace in Eclipse.

Hi, am writing an Eclipse plugin, and I was trying to create a method that returns all the classes in the workspace in an ArrayList<\Class<\?>> (I added the "\" to include the generic brackets since html won't let me do so otherwise). Here is the code I have: private ArrayList<Class<?>> getAllClasses() throws JavaModelException { Arr...

I get a NullPointerException when trying the Eclipse "Hello World" tutorial

I was finishing up the "Hello World" tutorial in Eclipse (with the ADT plugin) and apparently, you are supposed to rename the string resource "hello" with "Hello Android, I am a string resource". Well, Java.Lang.NullPointerException pops up with four, "An error has occurred. See error log for details." Well, there is NOTHING in the error...

Ubuntu Subversion with Windows Client

I installed subversion on my Ubuntu server and I can use subclipse (1.6) in Eclipse Helios on Ubuntu and it works fine. However when I try and use Subclipse (1.6) in Eclipse Helios on Windows, it doesn't work and I get errors. In Windows when I use http://serverAddress/svn, I get an error saying folder doesn't exist and an error in the ...

JUnit + Maven + Eclipse: Why @BeforeClass does not work?

I am using JUnit 4, Maven 2 and latest Eclipse. Problem is simple: I would like to perform some setup (connecting to a database) before my tests are executed. I tried @BeforeClass in many different locations but Eclipse and Maven are ignoring this. Any help on accomplishing this initial setup? Thanks! public abstract class BaseTestCas...

JavaHL not loading (NoClassDefError)

I've reinstalled Windows and unzipped a fresh copy of Eclipse. Despite this, I've been unable access an ssh repository via Subclipse. The issue seems to be with JavaHL and the tests from the Tigris web site give NoClassDefError. Although this could be considered as a software issue I hope someone has come accross this before. Is there a ...

How to remove old repository URL from MercurialEclipse plugins repository location field

I've a mercurial repository to which I push my changes with eclipses MercurialEclipse plugin, using Team -> Push. Now the repository URL has changed, and eclipse always remembers the old url in the input field, which is preselected as default, and I need to select the new one from the pull down list. Very small problem, but annoying none...

Cannot instantiate the type HttpClient

I have added the .jars to my library and I can also instantiate other classes in the JAR. What gives? I've tried to clean the project etc. It's a compiler-time error. Eclipse won't let me instantiate it. I'm importing the correct library, not the sun version, and using the default contructor, specified by their tutorial HttpClient cli...

navigate ecore model

How do I navigate, programmatically in java, an Ecore model to extract the elements information? ...

How can I (externally) automate or script the creation and duplication of projects in Eclipse?

I work on several different projects which use feature branches; that is to say, each feature is implemented on an independent branch. I frequently need to switch between branches rapidly, or test different branches against each other (to see if a branch introduces test failures, or to use a client program in one branch against a server...

How to change my Eclipse theme like RadRails' ?

I really like the theme of RadRails for rails development. How to change my java development theme same like that. Need I download a new theme or just use the RadRails' theme? ...

Eclipse remote debugging hot deploy

I am doing some remote debugging with Eclipse attaching the a running JBoss server with EAR deployed. Most of the time, when I am connected to the remote JVM, I can hot-deploy my change, i.e. I can change the code in Eclipse and then it deploys. On some occasions, the JVM just crashes with the error below (if I save my code changes and...

how to include utility classes in eclipse (android programming)

I am doing Android programing with Eclipse (Helios), and I have some utility classes created. How do I set up Eclipse, so that if I use one of my utility classes it gets included when the project compiles? ...