eclipse

How do I force Eclipse to rebuild if files in another project change (any change)?

I've got an Eclipse (Galileo) project (called ProguardBuilder) that runs Proguard over a set of class files in other projects and produces a jar file. I'd like to have the ProguardBuilder project get rebuilt any time any class file in the other projects changes. AutoBuild doesn't do that; presumably it's smart enough to recognize and i...

Eclipse C++ on WinXP - Type `::iterator' has not been declared

I'm new to C++/Eclipse. I'm trying to get it working to get a new perspective on a problem with a program I wrote in DevCPP. The program is simple and builds fine in DevCPP. In Eclipse, I get hundreds of errors like the one above. I assume the compiler can't see my include files. I've checked that the project settings -> GCC C++ com...

m2eclipse - after pom and dependencies definition - no libraries on classpath / Maven Dependencies

Hi, I've been doing just simple archetype projects until now, and always after dependencies definition and saving pom.xml, immediately after that the Maven Dependencies library was full of libraries. But now I declared: parent(pom packaging, scm, repository management) parent(pom packaging, shared dependencies) actual project (jar pa...

What files should be added to SVN in an eclipse Java project?

I have a Java project I'd like to commit to my SVN repository, created with eclipse. Now, what files (aside from the source code, obviously) are necessary? In the workspace root, there is a .settings folder with many files and subfolders, and inside the project folder there are two files - .classpath and .project, and another .settings ...

Unable to load main-class for jar file.

I have developed an application using Eclipse IDE. After creating the application I exported the project in jar format. When I am trying to run this jar file, I get the error: Unable to load main class. Please Help. ...

how to call java classes from jsp

i have two jsp file and one for get the user input and other for print the result.. i have a class file called getdata.java.. how should i access that class when user input something and print the result in result page... /// getdata.java when user click button it redirect to result page.. < form action="Result.jsp" method="post"> < in...

importing project in Eclipse

Hello I am new to Eclipse (and I am a novice in Java): I am creating a project which should make use of some classes from another project. Do I have to export necessarily this last project as JAR file and add in my project? Are there other alternatives? ...

how to zoom a graph using zest?

hi, I am using RCP and ZEST to create an application to visualize graphs. My question is: is it possible to zoom a graph drawn on ZEST (any ZEST or RCP api or plug-in)? Thanks in advance -rajit ...

Android application doesn't start from Eclipse

Before u start: I searched the google and stackoverflow, none of them gave clear answer. Situation: I'm using Eclipse on Windows to develop Android application. So when I'm trying to run the app, the system outputs to console [2010-06-14 17:04:39 - HelloLinearLayout] ------------------------------ [2010-06-14 17:04:39 - HelloLinearLayo...

Unable to import userlibrary

<?xml version="1.0" encoding="MacRoman" standalone="no"?> <eclipse-userlibraries version="2"> <library name="USC_KFS_LIB" systemlibrary="false"> <archive path="/java/lib/JUnit/junit.jar"/> <archive path="/java/lib/Log4j/log4j-1.2.14.jar"/> <archive path="/java/lib/TOMCAT/jsp-api.jar"/> <archive path="/java/lib/TOMCAT/ser...

Place variable one context up in Eclipse JDT

I've been looking for the Eclipse JDT refactoring tool which allows me to quickly change if (...) { Object x = blablabla; } to Object x; if (...) { x = blablabla; } // insert code using x here But I can't find it. Does something like that exist? ...

Flex webcontent derived resources

I have a flex project that is also a web project. It is currently compiling all the mxml files and placing the swf files in the webcontent folder. The problem is that during the build process the webcontent folder gets marked as 'derived', so any files that are in that folder are not by default searchable unless you click the 'derived'...

Why aren't APT generated classes being compiled by Eclipse?

In my Eclipse project I'm using a third-party annotation processor, Hibernate Metamodel Generator to be exact. The annotation processor works as expected and generates .java files as specified by the spec. These files are generated into the directory of the Eclipse project under a "gen" folder. In the project properties this is correctly...

package is not found, even though it's in both build classpath and runtime classpath

I am unable to compile a Java program because some of the imported packages are not found even though they are in both the build classpath and runtime classpath. The image below shows the problem. I have highlighted the gdata-media package in eclipse. It corresponds to the first compile error. Click for full size What am I doing wr...

M2Eclipse deployes WEB-INF into WEB-INF/classes

I import Appfuse 2.1 into Eclipse 3.5 with m2eclipse. When I deploy it to tomcat, my web.xml goes to "WEB-INF\classes\WEB-INF\web.xml" This issue is exactly the same with this one. I can't find any problems in org.eclipse.wst.common.component file: <wb-resource deploy-path="/" source-path="src/main/webapp"/> <wb-resource deploy-path="/...

Building a project with eclipse takes forever on windows

Does anyone know how to diagnose why eclipse (using Ant) takes over an hour to build a project on a windows box that takes a Mac only 3 minutes to build? I've checked my eclipse.ini file and it is as identical as a Mac and Windows implementation can be. ...

ant debugging in eclipse

I would like to know about the debugging capabilities of ANT using eclipse. Basically I have an ANT build script written by a colleague and I wanted to step through each target to see what are the various tasks that are beings called. ...

Eclipse JPA structure view, detail view, and persistence.xml editor not working?

Eclipse has pretty cool JPA Structure and JPA Detail views along with a persistence.xml editor and a JPA perspective. However, I cannot seem to get them to "turn on". I had them all working several months ago, but something must have changed. Any tips as to what secret sauce is needed to get them working again? ...

multiple dependent android projects in eclipse

Hi there! I just started to play with android dev and java+eclipse is pretty new to me. I managed to create simple project and run it on my device. Now I want to create simple game (more of them actually) and I would love to use shared code base for all of them (game loop, initialization, etc..). Problem is that I have no idea how to c...

Android API Target Level 5 and 6 for Ubuntu

Today i installed Ubuntu 10.4 and Eclipse Galileo. Then I downloaded the Android SDK and tried to install all packages via the Android SDK Tools. But unfortunately, only the Target Levels 3, 4, 7 and 8 were available. API Level 5 and 6 are missing. Does anybody know the reason for this? I already did a Google search and there seems to b...