Results 1 to 1 of 1
  1. #1
    67726e is offline Member
    Join Date
    Mar 2010
    Hilton Head, SC
    Rep Power

    Default Classpath at runtime

    I wrote a file uploader and I imported that Apache package: import org.apache.commons.httpclient.*;

    Now when I run the application, I have to add the JAR to the classpath before I am able to run it. Why do I have to do this?

    The thing that is truly confusing me is the fact that I wrote the servlet that also imports an Apache package but I do not need to import the JAR unless I am compiling it.

    Edit: Never mind, this is just an example of me not thinking straight and then coming to a realization. You can delete this question.
    Last edited by 67726e; 10-01-2010 at 03:44 AM.

Similar Threads

  1. checking runtime classpath in Eclipse
    By debu37 in forum Eclipse
    Replies: 3
    Last Post: 11-23-2012, 02:29 AM
  2. Replies: 8
    Last Post: 09-23-2010, 04:27 PM
  3. How to set ClassPath?
    By kishan in forum Advanced Java
    Replies: 5
    Last Post: 12-11-2009, 08:24 AM
  4. help me to set classpath
    By srinivaspuvvala in forum Java Servlet
    Replies: 3
    Last Post: 01-18-2009, 08:13 PM
  5. Adding JARs to the classpath at runtime?
    By johann_p in forum Advanced Java
    Replies: 1
    Last Post: 06-26-2007, 11:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts