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.

Find where java class is loaded from

Does anyone know how to programmaticly find out where the java classloader actually loads the class from? I often work …

java classpath classloader
Java error: Only a type can be imported. XYZ resolves to a package

I get the error: "Only a type can be imported. XYZ resolves to a package." Someone has explained the cause …

java jsp tomcat classpath
Add a properties file to IntelliJ's classpath

I'm running a simple Java program from the IntelliJ IDE using the Run->Run menu. It works fine. Now …

java intellij-idea classpath
how to make jni.h be found?

In Ubuntu 12.04, I have jdk7 from sun/oracle installed. When locate jni.h, it prints multiple locations /usr/lib/jvm/…

java java-native-interface classpath
Classpath including JAR within a JAR

Is it possible to specify a Java classpath that includes a JAR file contained within another JAR file?

java classpath
Execute jar file with multiple classpath libraries from command prompt

I have a Maven project which generates a jar file and copies all dependencies to target/lib folder. I want …

java maven jar classpath
Eclipse: How to build an executable jar with external jar?

I am trying to build an executable jar program which depends on external jar downloaded. In my project, I included …

java eclipse jar classpath external
adb is not recognized as internal or external command on windows

I set the c:/android-sdk/tools path to the path environment and commands like emulator is working just fine. But …

android windows path adb classpath
Differences between "java -cp" and "java -jar"?

What is the difference between running a Java application withjava -cp CLASSPATH and java -jar JAR_FILE_PATH? Is one …

java jar jvm classpath
Why does ANT tell me that JAVA_HOME is wrong when it is not?

I get the error: C:\dev\ws\springapp\build.xml:81: Unable to find a javac compiler; com.sun.tools.javac.…

ant classpath java-home