Class not found applet error

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Class not found applet error

  1. #1
    Join Date
    May 2006

    Class not found applet error

    i am creating signed applet to download file from server using HTTP. i am using commons-httpclient-3.0.1.jar file. i am creating jar file HttpUtil.jar and init i placed lib/commons-httpclient-3.0.1.jar and HttpUtil.class. i update my HttpUtils.jar's Manifest file with Class-Path: lib/commons-httpclient-3.0.1.jar
    when try to access with browser (ie 6.0 sp2) I get 'Applet notinited' error
    through appletviewer get

    java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at org.apache.commons.httpclient.HttpClient.<clinit>(

    at HttpUtil.getDataFiles(
    at HttpUtil.init(

    i created jar file through
    jar -cvfm HttpUtil.jar Manifest.txt HttpUtil.class lib
    help me to sort out this prob

  2. #2
    Join Date
    Feb 2006
    Cologne - Germany
    your problem is, that the httpclient also has dependent packages, like
    commons-logging (where the class LogFactory is to be found). just add it to your application. and i'm not shure, if the logging package is the only dependency. just try out and have a look at the dependency descriptions of the http client.

Similar Threads

  1. Java Mail Error
    By ddsuresh in forum Java
    Replies: 1
    Last Post: 12-29-2005, 09:58 AM
  2. what is error with this class ?
    By MaaSTaaR in forum Java
    Replies: 3
    Last Post: 12-15-2005, 05:21 PM
  3. Replies: 0
    Last Post: 01-04-2001, 08:48 PM
  4. Winsock32, Connect fails to connect to a peer
    By Chris.G in forum VB Classic
    Replies: 4
    Last Post: 11-13-2000, 03:16 PM
  5. Replies: 4
    Last Post: 05-26-2000, 10:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center