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
1 answer

when my system changed maven project giving error Error: Could not find or load main class

I check out a svn project and run it on my system all things working fine. I give my laptop to IT department to make my Ethernet port working after that when i run that project it is showing Error: Could not find or load main class My laptop body…
Sudhir Tiwari
  • 65
  • 1
  • 14
0
votes
0 answers

Using eclipse and bitbucket with the .p2 libraries causing issues

We are a group of Uni students who have to develop a java application using eclipse. We use Bitbucket, as they offer free private repositories to students (We are using GitKraken to interact with the repository). The other students cannot use the…
Hobbes
  • 107
  • 2
  • 8
0
votes
1 answer

Could not set class path variable error in eclipse when trying to add new variable in classpath

I am trying to add a new variable in classpath in eclipse.Right click on project -- > Build Path --> Configure Build Path --> Libraries Tab. From the right button panel,I selected Add Variable --> Configure Variables -->New.I am adding a new…
0
votes
1 answer

Accessing files in a project that is on the build path of another

I'm working on a framework-type project in Eclipse, that has a res folder attached with, as you guessed Resources inside of it. At the moment, they are crucial text-files that are to be read. I also have a main test rig that is apart of it's own…
user5549921
0
votes
1 answer

Java ClassPath with java.lang.NoClassDefFoundError

I'm working on a java project and trying to run a jar file. I'm getting the error: Exception in thread "main" java.lang.NoClassDefFoundError Most of the other threads I've read, said that it was because I needed to use the -classpath option.…
ebbBliss
  • 173
  • 1
  • 13
0
votes
3 answers

Java - Error: Could not find or load main class

I figured the error was due to my Path or ClassPath being incorrect, but I used Java for months with no problem as I set the Paths when I downloaded Eclipse Neon. I also seen being in packages can cause it, so I created classes outside of packages…
DavidBoyd
  • 3
  • 2
  • 6
0
votes
1 answer

Getting error while creating DataSet in SpagoBI Studio

java.lang.NoSuchMethodError: org.mozilla.javascript.Parser.parse(Ljava/lang/String;Ljava/lang/String;I)Lorg/mozilla/javascript/ScriptOrFnNode; at…
Gupteshwari
  • 89
  • 11
0
votes
0 answers

Eclipse isn't picking up dependencies in user entries classpath of run configuration

I have my application project and all its dependencies as part of "user entries" in Run configuration. The bootstrap entries contain JRE. Despite this, my application isn't running because of classpath issues. I see that duplicating jars from user…
coder
  • 317
  • 1
  • 7
  • 20
0
votes
1 answer

Include Gradle dependencies in the classpath of a debug launch of another project in Eclipse

I have a project with Gradle dependencies (say projectA) that, in order to debug it, is included in the class path of another project (say rootProject). The rootProject scans the classpath and loads projectA at runtime. When I run rootProject, it…
samvv
  • 1,934
  • 1
  • 18
  • 26
0
votes
2 answers

Eclipse adding a Class path variable/Library to Eclipse preferences vs. adding a path to an specific project

I want to know what is the difference between adding a class path/library by "1) Eclipse>>Preferences>>Java>>Build Path >> Add Class path Variable/Library", and adding a classpath/library by adding it to an specific project by "2) Left-Click on the…
vahid
  • 315
  • 5
  • 13
0
votes
1 answer

Getting an exception when trying to un-zip the 7-Zip Archive (in binary mode)

I'm running a Java application in Eclipse. Here, I'm trying to Unzip a 7-Zip Archive file using the following code : SevenZFile sevenZFile = new SevenZFile(new File(localPath)); SevenZArchiveEntry entry = sevenZFile.getNextEntry(); …
Ragu
  • 187
  • 1
  • 11
0
votes
1 answer

Set muliptle classpath in Eclipse

In my company, we are developing a Java based application which contains various plugins and in that I am working on a single plugin. The plugin that I am working on depends on many other plugins in the application. Suppose I am working on the…
Acjb
  • 505
  • 1
  • 6
  • 21
0
votes
0 answers

java.lang.NoClassDefFoundError error when GlassFish server receives a message

Using eclipse mars and glass fish, I have made a local server. In the same package I have a class called MyClass.java. Every time, the server receives a message, I want the message to be processed by MyClass (and its methods). This is what I…
user5139637
  • 775
  • 3
  • 10
  • 29
0
votes
1 answer

Eclipse - Runtime classpath external folder wrong path

I'm trying to add two external folders in my runtime classpath. What I do is to go in Run -> Run Configurations -> Classpath, then clicking in User Entries and Advanced -> Add external folder, then Apply. When I run Eclipse complains saying: The…
se7entyse7en
  • 4,310
  • 7
  • 33
  • 50
0
votes
1 answer

How to generate classpath container for Eclipse

I'm working on a Clojure-project that I'd like to import to eclipse. Therefore I'm using lein2eclipse. This Plugin adds a .classpath-file to my project-folder. After importing it to eclipse, the dependencies are on the same level as e.g. source…
Edward
  • 4,453
  • 8
  • 44
  • 82