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
    Posts
    1

    Class not found applet error

    hi
    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>(HttpClient.java:65)

    at HttpUtil.getDataFiles(HttpUtil.java:59)
    at HttpUtil.init(HttpUtil.java:26)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:534)

    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
    Location
    Cologne - Germany
    Posts
    271
    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, 10:58 AM
  2. what is error with this class ?
    By MaaSTaaR in forum Java
    Replies: 3
    Last Post: 12-15-2005, 06:21 PM
  3. Replies: 0
    Last Post: 01-04-2001, 09: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, 04:16 PM
  5. Replies: 4
    Last Post: 05-26-2000, 11: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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