About 2,720,000 results
Open links in new tab
  1. java - What is a classpath and how do I set it? - Stack Overflow

    Mar 7, 2010 · 549 I was just reading this line: The first thing the format () method does is load a Velocity template from the classpath named output.vm Please explain what was meant by classpath in this …

  2. What exactly is a classpath in Java? - Stack Overflow

    CLASSPATH is an environment variable that helps us to educate the Java Virtual Machine from where it will start searching for .class files. We should store the root of the package hierarchies in the …

  3. Including all the jars in a directory within the Java classpath

    We get around this problem by deploying a main jar file myapp.jar which contains a manifest (Manifest.mf) file specifying a classpath with the other required jars, which are then deployed …

  4. java - Run a JAR file from the command line and specify classpath ...

    When you specify -jar then the -cp parameter will be ignored. From the documentation: When you use this option, the JAR file is the source of all user classes, and other user class path settings are …

  5. How to set the environment variables for Java in Windows

    In programming context you can execute SET command (SET classpath=c:\java) or Right click on your computer > properties > advanced > environment variables. In a batch file you can use

  6. How to run a java class with a jar in the classpath?

    java -cp .:utilities.jar mypackage.MyClass The current directory is not in the CLASSPATH by default when you specify a value for -cp.

  7. How do you change the CLASSPATH within Java? - Stack Overflow

    Oct 31, 2008 · The only way to add jar files to the class path working in Java 9 and newer, is through the Instrumentation API but it requires a Java Agent. If you are in control of the launcher/main jar, you …

  8. java - Differences between classpath and sourcepath options of javac ...

    Jan 21, 2016 · 6 classpath is searched for class (.class) files sourcepath is searched for source (.java) files (.a.k.a class or interface definitions) However, if sourcepath is NOT specified, the classpath is …

  9. java - How do I resolve ClassNotFoundException? - Stack Overflow

    Sep 9, 2016 · 49 Your classpath is broken (which is a very common problem in the Java world). Depending on how you start your application, you need to revise the argument to -cp, your Class …

  10. How to set a long Java classpath in Windows? - Stack Overflow

    Oct 14, 2008 · I'm trying to run a particular JUnit test by hand on a Windows XP command line, which has an unusually high number of elements in the class path. I've tried several variations, such as: set …