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
4
votes
2 answers

Eclipse: Use environment variable for external jar location

After hours of unsuccessful googling, I ask you: Situation: My Eclipse Project uses "nedded.jar" so I added it to the build path. No problem. C:/dev/development/my_needed/nedded.jar But the location of "nedded.jar" is relative to the environment…
LalaBox
  • 243
  • 2
  • 4
  • 10
4
votes
1 answer

Eclipse build path warning

I can not deploy my Java EE app on GlassFish as I have this build path warning on the Problems view: Description Resource Path Location Type Classpath entry eclipse.fproj.jdt.libprov.osgi/jpt.jpa is marked for publish/export but is…
Netmaster
  • 287
  • 1
  • 10
  • 27
4
votes
3 answers

referencing (pure java) project in Android project (Could not find class)

I am trying to reference a pure java-Project in my Android-Project -> The Java-Project has a whole bunch of classes I need to use. Oh, and as the first response pointed out: I am using eclipse, yes :) Only Problem is: I Always get Could not find…
Layna
  • 457
  • 5
  • 19
4
votes
3 answers

Eclipse: "declared package does not match the expected package", but buildpath does define the declared package

In a maven project called my-project, eclipse keeps telling me The declared package "com.myself" does not match the expected package "main.java.com.myself" although I verified that in the project's build path, I have an…
rapt
  • 11,810
  • 35
  • 103
  • 145
4
votes
1 answer

why xml files in eclipse project's source directory is not copied to target/classes directory?

this issue is not the same as MyBatis 3.0.5 and mappers loading problem and How to suppress Maven "Unable to find resource" messages? i have xml files in org.org.wpse.db.config.db.config package, but why i cannot find these xml files in…
thinke365
  • 1,305
  • 3
  • 14
  • 22
4
votes
0 answers

Eclipse "build path" and m2e. Maven --> "Update project configuration" always re-orders my build path

I am developing a CXF web service consumer and I'm forced to use a fairly elderly version of Java (1.6.0_24 on RHEL6). I have added various Maven dependencies to compensate for older versions of various objects in the Java system libraries. So, in…
Geeb
  • 631
  • 8
  • 19
4
votes
2 answers

Maven add source directory in Eclipse

I get my code generated from the maven-jaxb2-plugin maven plugin. It puts the code into target/generated-sources. Now I have to manually left click onto the project -> properties-> Java Build Path-> Add Folder.... That's kind of annoying for someone…
Franz Kafka
  • 10,623
  • 20
  • 93
  • 149
3
votes
1 answer

Java Build Path

I have a quick question about altering the build path as the code is running. For example, I have a class which downloads a .jar file from the internet and then into the same directory as the code is running from. How, if possible, could I load the…
MrDrProfessorTyler
  • 403
  • 2
  • 10
  • 26
3
votes
1 answer

Deploying to Glassfish from Eclipse, no classes included

I am attempting to deploy a Java application from Eclipse (Version: Indigo Release, Build id: 20110615-0604) to Glassfish 3.1 using the Eclipse server adapter. When deploying, Glassfish throws a ClassNotFound exception on one of the classes in my…
MW.
  • 12,550
  • 9
  • 36
  • 65
3
votes
3 answers

Why do you sometimes need to add a JAR to your build path and sometimes you don't?

I've been developing in Eclipse and every now and then I come across having to add JARs to WEB-INF\lib. My question is why sometimes I need to add them to the build path and sometimes I can just dump them in there.
Mauro
  • 589
  • 5
  • 15
3
votes
4 answers

Getting a java.lang.ClassNotFoundException: org.jsoup.Jsoup

I am running my app on google app engine. All I have is a simple servlet that is trying to use Jsoup. However when I run the application I get java.lang.ClassNotFoundException: org.jsoup.Jsoup. I am using Eclipse so I added the jsoup jar file in…
gk1
  • 149
  • 1
  • 4
  • 11
3
votes
1 answer

Java Eclipse Java Build Path add Projects ClassNotFoundException

I have a Java project, where I collect all my util classes and I want to use them in other projects. So I have tried to add the utils project to the Java Build Path of the project where I want to use the utils. But when I use them, I get a…
stonar96
  • 1,359
  • 2
  • 11
  • 39
3
votes
0 answers

The project cannot be built until build path errors are resolved

I have set up a new Mac (Yosemite) and installed Eclipse IDE for Android (Luna). ADT is up to date. Eclipse is up to date. I have pulled down my projects from a common git repo and created the projects in the workspace automatically. However in…
Roy Hinkley
  • 10,111
  • 21
  • 80
  • 120
3
votes
1 answer

maven pom.xml dependencies order vs classpath/build path order

I am trying to understand the connection between the dependencies in a project's pom.xml file and the order of the java classpath/build path (my question is also regarding the inheritance of poms). So far I wasn't able to find a detailed…
Achi Even-dar
  • 427
  • 1
  • 10
  • 20
3
votes
2 answers

Library (Cognalys) class not found exception

I have a project with google-play-services library and with Cognalys library. The application is crashing at runtime. I have seen this error many times with other libraries as well, can somebody explain me this…
Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222