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.

Set folder for classpath

From the command line, how do I set the Java CLASSPATH option to point to one or more directories containing …

java jar classpath
NoClassDefFoundError while trying to run my jar with java.exe -jar...what's wrong?

I have an application that I'm trying to wrap into a jar for easier deployment. The application compiles and runs …

java jar classpath executable-jar
How do I set the classpath in NetBeans?

Can someone tell me where and how I set the classpath in NetBeans? I would like to add a .jar …

java netbeans classpath
Adding to the classpath on OSX

Can anyone tell me how to add to the classpath on OSX?

java classpath
I am getting "java.lang.ClassNotFoundException: com.google.gson.Gson" error even though it is defined in my classpath

I'm trying to parse some JSON object strings that I'm getting using gson-1.6.jar I have placed it in the …

java eclipse jar classpath
spark submit add multiple jars in classpath

I am trying to run a spark program where i have multiple jar files, if I had only one jar …

submit apache-spark classpath
getting JRE system library unbound error in build path

getting a JRE system library unbound error in build path, tried all suggestions from the below links, however did not …

java eclipse maven classpath buildpath
How to load/reference a file as a File instance from the classpath

I have a file that is in my classpath, e.g. com/path/to/file.txt. I need to load …

java classpath
How to use a wildcard in the classpath to add multiple jars?

I have been using so many 3rd party libraries(jar files) that my CLASSPATH is completely messed up as i …

java classpath wildcard
How to resolve this JNI error when trying to run LWJGL "Hello World"?

I'm trying to run the sample "Hello World" from the LWJGL website From this link: LWJGL "Getting Started" I'm trying …

java classpath lwjgl