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.

Run a JAR file from the command line and specify classpath

I've compiled a JAR file and specified the Main-Class in the manifest (I used the Eclipse Export function). My dependencies …

java shell command-line classpath
Intellij Cannot resolve symbol on import

This problem happens intermittently for different libraries and different projects. When trying to import a library, the package will be …

java intellij-idea import classpath
Java: how to import a jar file from command line

I'm trying to call a class (main method) from command line (Windows) with Java. The class imports other classes (other …

java command-line jar classpath
What is a classpath and how do I set it?

I was just reading this line: The first thing the format() method does is load a Velocity template from the …

java classpath apache-velocity
How to place a file on classpath in Eclipse?

As this documentation says, "For example if you place this jndi.properties file on your classpath", but how can I …

eclipse classpath
Adding an external directory to Tomcat classpath

I have a folder in my C: drive as C:\app_config\java_app This folder contains some locale specific …

tomcat classpath
How to use ClassLoader.getResources() correctly?

How can I use ClassLoader.getResources() to find recursivly resources from my classpath? E.g. finding all resources in the …

java resources classpath classloader getresource
How to connect SQLite with Java?

I am using one simple code to access the SQLite database from Java application . My code is import java.sql.…

java sqlite jdbc classpath
Where is the correct location to put Log4j.properties in an Eclipse project?

Where in my Eclipse project should I add the log4j.properties file so that it will work as intended?

java eclipse log4j classpath
What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException?

What is the difference between NoClassDefFoundError and ClassNotFoundException? What causes them to be thrown? How can they be resolved? I …

java classpath noclassdeffounderror classnotfoundexception