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

Using class from another project in java

I am working on a java project A which is using a class from project B. I added project B in the build path of Project A, I am getting error at compile time for the classes I have used from project B but when I run project A it is showing error…
0
votes
1 answer

Exception cplex

I am having this exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: ilog.concert.cppimpl.concert_wrapJNI.swig_module_init()V at ilog.concert.cppimpl.concert_wrapJNI.swig_module_init(Native Method) at…
0
votes
0 answers

Eclipse added jar to referenced libraries but still getting ClassNotFoundException

Hi I'm following this tutorial using eclipse. I've included the derby.jar and derbyclient.jar files and I can clearly see them appearing under referenced libraries. Oddly, I'm still geting java.lang.ClassNotFoundException:…
alexW
  • 183
  • 3
  • 13
0
votes
0 answers

How to use Eclipse ClassPath via CMD or Bash?

I have one app which I want to dockerize. But first, I need to run it via console(cmd or bash). When I run it from Eclipse everything is okay, but when I run it from bash(java -jar project-18.5.0-SNAPSHOT.jar) I get this error Exception in thread…
user6450105
0
votes
1 answer

Where can I find out the classpath of my J2EE application in eclipse

I have a J2EE project developed in eclipse. How do find out what is the class path of this project?
0
votes
0 answers

NoClassDefFoundError When Running Maven Project (Eclipse)

In my Maven project, I added a dependency for the MongoDB java driver. But when I try to run the program, it produces: java.lang.NoClassDefFoundError: com/mongodb/MongoClient com.therapy.Test.doGet(Test.java:27) …
PickleDonk
  • 75
  • 1
  • 8
0
votes
0 answers

Java Class Not Found While Debugging and Running JavaFx Eclipse Project

I have been reading through SO and several pages of google links, tried all of the approaches there but I cannot get my project running any more. I am developing a small app and i decided to persist some data in JSON. I downloaded…
Tremah
  • 103
  • 8
0
votes
0 answers

Accidentally overwrote .classpath file when exporting project on eclipse?

I've been pushing and pulling projects from git and importing them into my eclipse workspace. I tried exporting my project and I got an error (something about overwriting .classpath file) and I chose to proceed.Now I can't open my project(class path…
Sook Lim
  • 541
  • 6
  • 28
0
votes
1 answer

Java 10.1 Eclipse Oxygen 3a No exception of type InstanceAlreadyExistsException can be thrown; an Exception type must be a subclass of Throwable

I have added the java.management module to my build path: Java Build Path -> Libraries -> Modulepath -> Is modular -> Edit I'm having this issue…
0
votes
3 answers

How to change Java path used by Eclipse?

I recently compiled my code using Java 1.8. I had set JAVA_HOME and PATH to do the compilation using ant Now, When I start Eclipse (Luna), in order to debug application using Tomcat plugin for eclipse. I starts using below path - using Java 1.7 And…
SimpleGuy
  • 2,764
  • 5
  • 28
  • 45
0
votes
0 answers

Can I Prevent Eclipse Fom Adding the JRE Jars to the Classpath?

I noticed that when running a Java application or unit test in Eclipse, it explicitly adds the jars of the JRE (rt.jar, etc.) to the -classpath argument of java. First question: Why? This seems unnecessary, since those jars are implicitly on the…
rolve
  • 10,083
  • 4
  • 55
  • 75
0
votes
0 answers

Http client cannot be resolved in selenium

I have imported httpclient jar files, but this command cannot be resolved in eclipse or in selenium. But when click in error, it shows option to import but it doesn't work. final HttpParams httpParams = new BasicHttpParams();…
0
votes
1 answer

Unable to get Eclipse to recognize binaries using ProcessBuilder located on $PATH on mac os x

I have just switched over to working on a mac and I am trying to determine why I am unable to get Eclipse to recognize the binary I am trying to run via a ProcessBuilder. I have tried to run it both as a Java Application in Eclipse and as a TestNG…
ALM
  • 2,555
  • 7
  • 31
  • 45
0
votes
1 answer

How to use the .classpath of a modular project in Eclipse?

I created a test project with the following structure: baseTest |- src/main/java | |- com.base | | |- MainDependency.java | |- module-info.java |- src/test/java |- test.com.base |- SomeTest.java module-info.java is…
user1803551
  • 12,965
  • 5
  • 47
  • 74
0
votes
0 answers

Allow external jar in .classpath relative to home

Simply put, in Eclipse, the generated .classpath file has an external jar in the following format: I want to replace /Users/username so that the path is relative to the home of whoever…
Gigi Bayte 2
  • 838
  • 1
  • 8
  • 20