Questions tagged [buildpath]

This tag refers to build path settings for a Java project in Eclipse IDE. You can reach this option through the project properties (Project > Properties > Java Build Path) from the context menu on a created project or the File menu of the workbench.

This tag refers to build path settings for a Java project. You can reach this page through the project properties (Project > Properties > Java Build Path) from the context menu on a created project or the File menu of the workbench.

More info at Eclipse web site

409 questions
2
votes
2 answers

Android Exclude XML File from Build Path in Eclipse

Seems simple, but not. I know how to exclude JAVA files from the build (discussed here), but there's a problem when attempting the same thing with XML files. Try it yourself: Right-click on the XML file in question, select "Build Path," and lo, the…
SMBiggs
  • 11,034
  • 6
  • 68
  • 83
2
votes
1 answer

Why does restarting a computer wreak havoc on Java Build Path?

I'm sure we've all been there, I've got a JSF (Java) project on Eclipse that built fine yesterday, I call it quits for the night, turn off my computer and come back to it the next day only to find missing JAR errors, some of which are due to actual…
Jake Long
  • 706
  • 3
  • 7
  • 17
2
votes
2 answers

Maven Project Error with build path src/main/resources

I have a maven project that have four build path src/main/java src/main/resources src/test/java src/test/resources but when I perform, in eclipse, "Maven->Update Project Configuration",the build path "src/main/resources" is removed and stay as…
2
votes
1 answer

Include files in eclipse build path?

I have few files excluded from build path in eclipse, by right clicking, build path and exclude from build path. Now I want to include those files again in build path. I am not able to find any option to include again. Any suggestion. I am using…
user1920811
1
vote
2 answers

Java: Get a class from an external .jar

I have a problem with getting a class from an external .jar file. I found this method of loading an external .jar here but whenever I run it, I get a ClassNotFoundException. Below is the code I am using and here is the .jar I am testing with. If…
MrDrProfessorTyler
  • 403
  • 2
  • 10
  • 26
1
vote
2 answers

How to mark .jar file as excluded from publish/export structure?

I have a .war project in Eclipse. It is probably not relevant but I should mention that it was converted from a maven project using mvn eclipse:eclipse plugin. I saw a warning that various .jar files on the Build Path were not being exported. To…
necromancer
  • 23,916
  • 22
  • 68
  • 115
1
vote
1 answer

Cross Platform java development with Eclipse (Build Path issues)

I have 3 partitions (and the required one that Windows will generate). One contains Windows, one contains Ubuntu, I also have a ntfs partition named Data that contains my Development folder that I use as storage between the two environments. So in…
Robert
  • 1,745
  • 5
  • 34
  • 61
1
vote
2 answers

Java Build Path Entry Error: Blackberry Eclipse

I have a project on one computer that I need to work on another computer. I followed the tutorial here: http://agile.csc.ncsu.edu/SEMaterials/tutorials/import_export/ to import and export the project files and transfer them via USB drive. However…
user1152440
  • 895
  • 2
  • 13
  • 25
1
vote
0 answers

Android/Eclipse - Recursively include libraries in a project's build path

The situation is the following: I have an Android library project (A) which has in its build path some other libraries (test1.jar, test2.jar, ..) I have a test application (B) which includes the (A) project and uses it What happens is that I have…
DextoR
  • 11
  • 2
1
vote
1 answer

Eclipse Java External jar does not Compile (but runs)

I've to import javax.* in my project. So I created lib folder in my project, I put activemq-all-5.16.1.jar in it, then added it in classpath (add jar). Now if I select a file with a main and select "Run", it runs without any problem, however I need…
1
vote
0 answers

java.lang.annotation cannot be resolved

I recently changed the package of a project in Eclipse, and doing this appears to have caused problems with the build path. I have an annotation called PlaceholderDocumentation, seen below package com.projectjhs.forum.api.placeholders; import…
TheJavaCoder
  • 11
  • 1
  • 5
1
vote
1 answer

Java project in Eclipse. Feature to open Declaration or Implementation using `ctrl+click` or `F3` is not working

When i import a web application in eclipse enterprise it works but the control click features don't work. Even the code it seems as not recognized for the most part of it (in fact it is all black and some part, like return public, private, the…
1
vote
1 answer

How to check in Eclipse if a particular library is in Java build path?

Sometimes I want to check if a particular JAR is in build path by right-clicking on the project -> Properties -> Java Build Path -> Libraries So here is the list I need but i miss a way to search a particular library by name like Ctrl+F. I have to…
1
vote
4 answers

Unable to access SRCROOT in Xcode 4 scheme pre-build action scripts

Are certain variables that were available to run scripts in Xcode 3 no longer available to pre-build script actions in Xcode 4? The script PLIST_FILE="$SRCROOT/$INFOPLIST_FILE" echo "${PLIST_FILE}" produces just "/" as output: neither SRCROOT nor…
orome
  • 45,163
  • 57
  • 202
  • 418
1
vote
1 answer

Configure build path problem in eclipse - java

I upgraded the elastic search from version 5.5 to 7.7, everything is working as expected. But when I try to get the Total hits, I get the following error searchResponse.getHits().getTotalHits() The type org.apache.lucene.search.TotalHits cannot…
Harry
  • 3,072
  • 6
  • 43
  • 100