Questions tagged [eclipse-classpath]

Use this tag for problems with the Java Classpath when running in Eclipse.

When running normal Java programs in the Eclipse IDE the classpath must be configured in the project properties.

When developing Eclipse plug-ins the classpath is constructed from the information in the plug-in MANIFEST.MF file.

93 questions
1
vote
1 answer

Same Package, Same Class in two Maven Projects a WAR and a JAR, classpath issue

I am having some classpath issue. I have a Web Application which is a web service. It uses JaxB and CXF. The web service has a dependecy of another JAR which is a Web Service Client. Now both the client and the service codes are generated by using…
Peshal
  • 1,508
  • 1
  • 12
  • 22
1
vote
2 answers

Apache Tomcat using old resources - changes in Eclipse project not reflected in Web App

I am using the Eclipse Java EE IDE with Apache Tomcat version 6 to develop a web application. The structure of the application is very simple, there are just two classes, one is the servlet class and the other is a object which is built by the…
JGSuw
  • 11
  • 1
  • 2
1
vote
3 answers

What files are used for classpath?

I have some classes in Eclipse which cannot be resolved to a type. I know that classes can be in .class, .jar, .par, .zip files. Are there any other file types that I have to look for? Or is there anything eclipse how I could make Eclipse recognize…
Dávid Natingga
  • 839
  • 3
  • 13
  • 30
1
vote
4 answers

Referencing wrong jar file in java build-path

In my project we are referencing lot of dependency .jar files. /lib/xxx.jar /lib/abc.jar The xxx.jar file having some (com.search.hit) packages. The same packages are available in abc.jar file.But the problem comes into picture now, where…
sanjay
  • 45
  • 1
  • 8
1
vote
1 answer

How to add a concrete reference to the classpath in Eclipse project by gradle?

All examples that I see in the documentaton, that tell how to add an entry to the Eclipse project classpath by build.gradle file are too common. They say nothing how to add an entry:
Gangnus
  • 24,044
  • 16
  • 90
  • 149
0
votes
1 answer

Static file doesn't exist error . Springboot

I am trying to create a folder named img under static folder of springboot .Wanting it in a dynamic manner / in a way that it works on other peoples computer hence not preferring hardcoding. I am new to springboot the location of the static folder…
0
votes
0 answers

I am using Java SE 17 for my project. But to access an endpoint I need to use compiler level SE 1.7 or below

I am using SE 17 but to access an SOAP API Endpoint in java I need a jdk version of 1.7 or below , else the compiler throws me and exception as "The package javax.xml.namespace is accessible from more than one module: , java.xml".I've tried to add…
HR S
  • 3
  • 2
0
votes
1 answer

What, in Eclipse, modifies a project's .classpath to add the attribute exported="true" to classpathentry?

Looking at a .classpath file of a project that I inherited, I found the following difference between the committed file (to Git) and the working directory: - + …
WebViewer
  • 761
  • 7
  • 21
0
votes
0 answers

How to inject a jar into Eclipse classpath? Not classpath of project, classpath of IDE and its plugins

So many bugs that make it temporarily into Eclipse can be easily fixed by adding the missing jar to the classpath, except I can't actually fix the problem as when part of Eclipse fails because a plugin throws a NoClassDefFoundError, I don't know how…
Roberto Murphy
  • 456
  • 5
  • 15
0
votes
1 answer

There is no "ClassPath" in Configure Build Path

Screenshot I need to add an External Jar to the Classpath of my File, but the Classpath is nowhere to be Found in the Build Path menu
Louis Jr
  • 1
  • 1
0
votes
1 answer

Gradle dependency on classpath but not dependency tree?

I am currently upgrading an app from a lower level of Spring to 5.3.15 (as well as other jars as needed) plus making the code compatible with Java 11. However, I am having an issue with javax.xml.namespace.QName because it is finding multiple…
sparks
  • 736
  • 1
  • 9
  • 29
0
votes
1 answer

Adding a module export to the Eclipse .classpath file

I have an older project which needs to have a module export in Eclipse's .classpath file, so that it can resolve some classes from this module. The classpath entry looks like this if I generate it via Eclipse's build path editor:
zb226
  • 9,586
  • 6
  • 49
  • 79
0
votes
0 answers

Plug-in fragment does not see packages in host plug-in

I am writing a test fragment which tests classes in the host plug-in. One class to be tested uses org.joda.time.DateTime and I need to reference joda in the fragment. The host contains the joda JAR, the joda packages are on the classpath and are…
paul
  • 13,312
  • 23
  • 81
  • 144
0
votes
0 answers

Issues while adding jar files to eclipse

I'm trying to add some external jar files from the Apache Lucene library to Eclipse but every time i add them to the Classpath it keeps saying i need to attach sources. However i have seen multiple tutorials where they've never say anything about…
0
votes
1 answer

How do I load a Ressource Path in multi-projects in proper project?

I have to use this project configuration: Project 1 + src + Model + Datamodel.dtd Project 2 + src Project 1 does some work with xml and should load the dtd from the folder "Model". I put this folder in the classpath of project 1. Project 1 is in…
user4107024