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
216
votes
16 answers

How to set the java.library.path from Eclipse

How can I set the java.library.path for a whole Eclipse Project? I'm using a Java library that relies on OS specific files and need to find a .dll/ .so/ .jnilib. But the Application always exits with an error message that those files are not found…
Janusz
  • 187,060
  • 113
  • 301
  • 369
162
votes
47 answers

Eclipse error: "The import XXX cannot be resolved"

I'm trying to work with Hibernate in Eclipse. I'm creating a new simple project and I've downloaded a collegue project too, via CVS. Both don't work, while on my collegue's Eclipse do. The problem is that, for each import of an Hibernate class,…
bluish
  • 26,356
  • 27
  • 122
  • 180
89
votes
6 answers

What is the difference between Class Path and Build Path

I'm confused with these two terms. Also what should I do to create a file under the src folder of a Spring MVC Project? When I create using a File object it creates the file inside C:\SpringSourceTool... I guess this is ClassPath right? How can I…
mehmet6parmak
  • 4,777
  • 16
  • 50
  • 71
84
votes
16 answers

Eclipse: The resource is not on the build path of a Java project

I have been given a source folder (src) of a Java Project. I have created a .project file, kept it inside that folder and imported that project into Eclipse 3.6 through the Import Existing Projects into Workspace Option and added the required jars…
Pawan
  • 31,545
  • 102
  • 256
  • 434
84
votes
8 answers

Android - R cannot be resolved to a variable

Possible Duplicate: R cannot be resolved - Android error I am having a issue which I have had before and I don't understand the cause. My project and code is fine as it was running yesterday. I have open Eclipse today and the whole project looks…
Beginner
  • 28,539
  • 63
  • 155
  • 235
78
votes
24 answers

Eclipse "this compilation unit is not on the build path of a java project"

I can't get autocompletion to work in Eclipse. I'm working on the project on svn. I set up the project in Eclipse by going into File -> Import -> Checkout As a Project -> New Project Wizard. I chose Enterprise Java Application. Everything seemed to…
l245c4l
  • 4,135
  • 9
  • 35
  • 40
65
votes
7 answers

Exclude a class from the build in Android Studio

I've been learning Android over the past few months and have been using Eclipse v4.2 (Juno) as my IDE. I am trying to migrate to Android Studio. How can I exclude some of the classes from build path I have yet to complete? In Eclipse, it was a…
Beyond4D
  • 655
  • 1
  • 5
  • 7
51
votes
4 answers

Adding 3rd party jars to WEB-INF/lib automatically using Eclipse/Tomcat

I have a dynamic-web project set up on Eclipse and I'm using Tomcat 7 as my web server. It doesn't seem to be automatically putting 3rd party JARs I add to my library on my build path into the WEB-INF/lib folder. Is there a way I can do this…
Dave
  • 6,141
  • 2
  • 38
  • 65
50
votes
3 answers

How to reference javafx fxml files in resource folder?

I am creating a javafx GUI application and my project is a maven configured project. I want to be able to reference my fxml files like this in my controllers: FXMLLoader.load(getClass().getResource("main.fxml")); Where my main.fxml file is located…
j will
  • 3,747
  • 11
  • 41
  • 64
46
votes
2 answers

What is the use of Order And Export tab in Java Build Path

What is the use of Order And Export tab in Java Build Path
minil
  • 6,895
  • 16
  • 48
  • 55
45
votes
10 answers

The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

I have downloaded Eclipse and tried to create a sample servlet program but I got following error The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files I have configured build path…
user3891270
  • 371
  • 1
  • 3
  • 7
45
votes
13 answers

Attach the Source in Eclipse of a jar

I added a Student.jar into my Build Path in my eclipse like this- Right click on the project->BuildPath->Configure Build Path->Libraries->Add External Jars There is one class named StudentTest in Student.jar file. When I was debugging my code in…
AKIWEB
  • 19,008
  • 67
  • 180
  • 294
42
votes
2 answers

ClassNotFoundException when using User Libraries in Eclipse build path

I'm using Eclipse 3.7 (STS) with Tomcat 7 running inside the IDE. I've created a new Dynamic Web project and added a single JSP file to the web content root folder. I can run Tomcat and access the JSP from within Eclipse with no problems. I've added…
user646584
  • 3,621
  • 5
  • 25
  • 27
38
votes
6 answers

getting JRE system library unbound error in build path

getting a JRE system library unbound error in build path, tried all suggestions from the below links, however did not work. I have jdk 1.6.0_29, I have also tried to install other versions but no help. JRE System Library [WebSphere v6.1 JRE]…
user1328572
  • 599
  • 1
  • 7
  • 12
28
votes
3 answers

Set Build path in Eclipse for ndk program

This error was shown when I build a android application program in Eclipse: 14:43:33 **** Incremental Build of configuration Default for project com.***.NDKDemo **** ndk-build all Cannot run program "ndk-build": Unknown reason Error: Program…
TamiL
  • 2,706
  • 4
  • 24
  • 44
1
2 3
27 28