Top "Classpath" questions

In Java, the classpath tells the Java Virtual Machine where to look for user-defined classes and packages when running Java programs.

Including all the jars in a directory within the Java classpath

Is there a way to include all the jar files within a directory in the classpath? I'm trying java -classpath …

java command-line classpath
How to really read text file from classpath in Java

I am trying to read a text file which is set in CLASSPATH system variable. Not a user variable. I …

java classpath
How do I resolve ClassNotFoundException?

I am trying to run a Java application, but getting this error: java.lang.ClassNotFoundException: After the colon comes the …

java class classpath classnotfoundexception
Eclipse "Error: Could not find or load main class"

I have a project in eclipse on my laptop that I pushed to Git https://github.com/chrisbramm/LastFM-History-Graph.git …

java eclipse git jar classpath
How to add directory to classpath in an application run profile in IntelliJ IDEA?

I'm trying to add a directory to the classpath of an application run profile If I override by using -cp …

java intellij-idea classpath
"Could not find or load main class" Error while running java program using cmd prompt

I am running a simple "HelloWorld" Program. I get this error in the command prompt: Could not find or load …

java cmd classpath environment-variables
Get a list of resources from classpath directory

I am looking for a way to get a list of all resource names from a given classpath directory, something …

java resources classpath
Unbound classpath container in Eclipse

I have checked out a project using Subversive for Eclipse and I am getting the following errors: The project cannot …

eclipse classpath subversive
TestNG ERROR Cannot find class in classpath

I'm trying to run testng via command line and I have following things in classpath: testng jar, jar of compiled …

java classpath testng
Caused By: java.lang.NoClassDefFoundError: org/apache/log4j/Logger

I've got an interesting problem in which the org.apache.log4j.Logger class is not found during runtime. I'm …

java logging classpath classloader intuit-partner-platform