-
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
-
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
-
By ddsuresh in forum Java
Replies: 1
Last Post: 12-29-2005, 09:58 AM
-
By MaaSTaaR in forum Java
Replies: 3
Last Post: 12-15-2005, 05:21 PM
-
Replies: 0
Last Post: 01-04-2001, 08:48 PM
-
By Chris.G in forum VB Classic
Replies: 4
Last Post: 11-13-2000, 03:16 PM
-
By DaveSatz in forum Enterprise
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
Forum Rules
|
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
|
Bookmarks