DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  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, 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

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links