eclipse

configuring m2eclipse: "Eclipse is running in a JRE but a JDK is required"

After installed m2eclipse, I received a message saying that Eclipse needs to "run in a JDK" and to update the eclipse.ini to do so. So I added this: -vm C:\Program Files (x86)\Java\jdk1.6.0_20 as the last two lines of the eclipse.ini file in my Eclipse installation directory. However, I am again receiving this warning. Did I not en...

I have build errors with m2eclipse but not with maven2 on the command line - is my m2eclipse misconfigured?

I installed m2eclipse to build a java project in Eclipse. I imported the project as follows: Import-> Maven-> Existing Maven Projects-> Import Maven Projects-> - Select root directory - Select pom file - Click Finish To be sure m2eclipse was actually building the project, I deleted the target directory and made sure it was re-created...

Why isn't SVN Checkout an option for me when I'm creating a new project in Eclipse?

I recently just installed Eclipse onto a Ubuntu 10.04 machine. Now, I'm reading "Getting Started" instructions for a project I want to contribute with and they state the following: Using Eclipse Galileo for Java part: File -> New -> Other SVN -> Checkout projects from SVN Create a new repository location http://marioai.googlecode....

How to make GWT find source in linked folders?

I'd like to create a GWT (2.0.4) project but with my source in a common java directory that's not kept under the GWT project directory. I did the following: 1) Created new project 'game' in package com.mycomp.project.game. This worked fine, with its source under C:\java\Projects\game\src\com\mycomp\project\game. 2) Copied the code in...

What causes a new Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn't?

I imported a Maven project and it used Java 1.5 even though I have 1.6 configured as my Eclipse default (Preferences->Java->Installed JREs). When I changed the Maven project to use the 1.6 JRE it still had the build errors left over from when the project was using Java 1.5 (I described these build errors earlier in this question.) I'm g...

Configuring eclipse to debug Midlet applications

I am new to Eclipse and need help configuring, I tried to follow tutorials on the official sites but I guess they are outdated or I am doing some thing wrong. I want to develop Midlet applications for Nokia S40 phones. This is what I have: Eclipse IDE for Java Developers Version: Helios Release Build id: 20100617-1415 Ec...

How do you run the maven-gae-plugin "mvn gae:run" command from inside Eclipse?

From the command line, the maven-gae-plugin can be run by calling: mvn gae:run I am working in a Maven project with a POM file that declares the use of the maven-gae-plugin. I can run this maven command from the command-line in Windows. But, after setting up the source code as a project inside Eclipse, I don't know how to run this c...

Working with Maven

I downloaded Java source code of some project that works with Maven. After checking out the code to Eclipse, and then building it from the command line, I followed the instructions and imported it from Eclipse as: File > Import > Maven Projects. Now I have the core source code and many additional sub projects that seem to have the same t...

Alternative to having to select device every time I run an Android application?

Is there some way to have Eclipse NOT present the Android Device Chooser dialog every time I run the Android application I'm developing? I'm using a running Android device, not an AVD. There's got to be some place I can set my default device to be the Android device so that I don't have to double-click on the device entry in the ADC di...

Android - Image button size help?

My imagebutton code wont respond to "fill_parent" and "wrap_content". Instead, it just shows the middle of the image (because it is a pretty big image). I tried setting specific values for the image but it still didn't work! Can somebody help me? My button.xml in the res/drawable folder: <?xml version="1.0" encoding="utf-8"?> <selector...

Django and Eclipse, console

I'm using Django with Eclipse and I figured out you can start and stop the server through Eclipse and the output appears in the console. This is great except that there's a delay between when the event happens, and when the result appears. Usually, in order to get something to show up on the console I have to make a change to the code ...

Can't install Android ADT in Eclipse

Help! With Windows 7, Galileo, Eclipse 3.5.2: every time I click Finish when installing ADT I get the error "Install has encountered a problem - an error occurred while uninstalling". Details: String index out of range:0 eclipse.buildId=unknown java.version=1.6.0_21 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARC...

what is Jazz projects or Jazz based project?

What is the "Jazz Project" or Jazz based projects? what is the role of Eclipse in Jazz based projects? Its is a conceptual question. I heard them in software engineering Podcast. but Don't Know much about them. So detailed reply will be appreciated. ...

eclipse: Find Resource with a locationURI

How can i find a Resource with a locationURI? Path path = new Path('/home/foo/eclipse/runtime-EclipseApplication/someproj/B.txt'); IResource res = ResourcesPlugin.getWorkspace().getRoot().findMember(path); I know there is a way by using the locationURI from current project to trim the "needless" part, but is there a "better" way to sl...

Eclipse: Frustration with Java 1.7 (unbound library)

I'm having trouble with a brand new project in a brand new installation of Eclipse. Repro steps: Download this version of Eclipse: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliosr Unzip to c:\program files\eclipse java Launch Eclipse; choose a workspace File > New > Java Project Project name: Hello World. ...

Android - Another button question

Its a dumb question. Prepare yourself. My main.xml is this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@android:color/white"> <ImageButton android:src="@drawable/button"...

Converting to dalvik format failed when I try to add external Jars

Hi, I am using Zend Studio 7.2 as my main IDE. I develop android apps. I wanted to work with html parsers, however adding external jars I get always the same problem Converting to dalvik format failed and eclipse needs a lot of time to build workspace. any ideas? ...

import fonts into eclipse to support unicode

how can i import musica fonts into eclipse to support musical unicode? Any workaround? ...

repaint() not called when running app from Eclipse?

I never get "paint" written to my command line window when I use Eclipse and Run->cmd to run the program. It works fine if I run System.out.print() from paintComponent in another program. Someone who can help? import java.awt.*; import java.awt.event.*; import javax.swing.*; public class GUI extends JPanel implements KeyListener, Actio...

Emulator does not load

I am using the hello android tutorial and creating an avd through eclipse. When starting the emulator no image is used. It simply displays a black back screen with the word ANDROID in the center and a blinking cursor at the end of the word ANDROID. I have followed the steps to the T for installing the SDK, Eclipse, and the ADT. Even ...