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
0 answers

M2E in VsCode (or terminal) as Apache Maven Eclipse Plugin has retired

I have to update .classpath, .project and .settings for a Maven project in VS Code. I read that mvn eclipse:eclipse has been retired and I tried that but it doesn't gives me correct files. How can I use M2E in VScode to regenerate these files? Or,…
Porcupine
  • 5,885
  • 2
  • 19
  • 28
1
vote
1 answer

Setting ClassPath commandline argument while running application in Eclipse

I am running Eclipse Mars.2 Release (4.5.2) and executing against Java JRE 1.8. I don't have admin rights on my machine so I am unable to set the ClassPath Environment Varibale. I was doing some reading on the Java Docs help page…
Josh
  • 569
  • 1
  • 11
  • 35
1
vote
0 answers

What is module-info and how to use it? Does it affect referenced libraries?

I have just upgraded to newest Eclipse and met some trouble. I want to use jSSC library in my project and perhaps I am doing something wrong. At first, I am setting classpath choosing "Add External Libraries"; Then I click Finish and Eclipse asks…
Sheb
  • 175
  • 2
  • 11
1
vote
0 answers

Java project structure best practice in Eclipse

I am using Eclipse to do some Java programming. I am working with an agent-based modelling library, MASON, and GeoMASON which is an extension that adds support for shapefiles etc. I've been having a lot of problems trying to get the included example…
KJGarbutt
  • 161
  • 8
1
vote
1 answer

How to generate files in source folder using Bazel?

I'm trying to use VS Code to write Java programs which are built Bazel. Most of vs code extensions don't know about Bazel. Therefore code complete works only for the .java files understand the same folder. I came up.with this idea of generating…
Igor Gatis
  • 4,648
  • 10
  • 43
  • 66
1
vote
1 answer

Glassfish & MongoDB connection error : NoClassDefFoundError

I am running a Glassfish server that is trying to connect to MongoDB. At first I created seperate projects for the server and MongoDB. So now I am trying to merge those projects but it appears anything I try to do it results in a faliure. The…
1
vote
0 answers

JsonMessage cannot be resolved to a type

I'm trying this log4j2 sample for flowtracing. https://logging.apache.org/log4j/2.x/manual/flowtracing.html My eclipse is complaining that JsonMessage cannot be resolved to a type. In my pom.xml I have the dependencies
xpagesbeast
  • 776
  • 1
  • 10
  • 21
1
vote
1 answer

Missing Class in JAR file java.lang.NoClassDefFoundError: or g/eclipse/core/runtime/spi/IRegistryProvider

I'm trying to integrate my gwt webapp with Birt. Currently I am using an RPC connection to make a request from the client side to the server side which will run the SimpleCreate.java Eclipse tutorial. However, when I run the app I get…
Wynnlaw
  • 49
  • 4
1
vote
0 answers

NoClassDefError for JavaFX MenuBar

I'm just starting on a large new project, containing the line menuBar = new MenuBar(); MenuBar is packaged in javafx.scene.control. No errors, but when it comes across this line at runtime I get Exception in thread "AppKit Thread"…
Frank Harris
  • 587
  • 2
  • 16
1
vote
0 answers

XPages Designer: ClassPath in project settings reverts back several times per day

In the Project Properties box, under Java Build path, I added two resources: a src folder and a Jar. That works for several hours, no errors when I do a clean build. But then, all of a sudden, these two resources disappear and I get 52 Java errors.…
D.Bugger
  • 2,300
  • 15
  • 19
1
vote
0 answers

exclude xml files of test-classes folder

I am loading all xml file in my project with particular path. ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext( new String[] { "classpath*:META-INF/spring/*.xml" }); My Project includes various…
akash777.sharma
  • 702
  • 10
  • 30
1
vote
2 answers

log4j2.xml not being found, but it is on the classpath in my Eclipse project

I have an Eclipse Java project, let's call it 'unittest' and I am trying out log4j2 + SLF4J it seems to be logging ok, but ignoring my log4j2.xml. I am explicitly seeing: ERROR StatusLogger No log4j2 configuration file found. Using default…
ammianus
  • 488
  • 7
  • 23
1
vote
1 answer

.classpath file not created when importing java project to eclipse from perforce

In eclipse i was working with a java project which I had imported from perforce. By mistake I deleted the .classpath file from my workspace, now again I imported the project from perforce but the .classpath file is not generated in my workspace. Can…
1
vote
1 answer

Why are some jars not added to .classpath file in eclipse by maven?

I would like to add the following dependency to a maven (I'm not using the m2e plugin). uk.com.robust-it cloning 1.9.0 The problem is that the jar…
albert.st
  • 11
  • 1
1
vote
2 answers

load external jar in to class path for java project

I have a lib folder at installer location that i want to load at class path or refrenced at runtime for my java project, programmaticaly. I have tried to set classpath by -cp and used ClassLoader, URLClassLoader but it did't work. found…
RTA
  • 1,251
  • 2
  • 14
  • 33