Hmmm... Well, the error disappeared for the time being, which is why I assumed that it worked. So I take it I should remove HTTPClient 4.1-alpha1, most probably... Thanks once more. Seems working with Apache is going to more complicated than I thought. All I want is to be able to login to a website using a username and password and then do whatever I want in the site (click buttons, write messages, etc.), all through Java code. I searched a lot and found that HTTPClient is the best for this kind of stuff. Am I mistaken in this respect? Is there a better way?
sebb-2-2 wrote: > > Something is probably still wrong, as you now have both HttpClient 3.1 > and HttpClient 4.1-alpha1. > > You should not need both unless you are writing quite an unusual > application. > > Note the HC 4.1 is not compatible with HC 3.1. > > Code for 3.1 needs to be rewritten to use 4.1 - they have different > package names and different architecture. > > On 07/03/2010, HughT <[email protected]> wrote: >> >> >> Thanks for all your help! It works now, I looked up the page you >> suggested >> and turns out I still needed commons-codec, httpcore, >> commons-httpclient-3.1, and http-client-4.1-alpha1. Thanks again. >> >> >> >> >> sebb-2-2 wrote: >> > >> > On 07/03/2010, HughT <[email protected]> wrote: >> >> >> >> Hello, >> >> >> >> I'm new to Apache and I'm trying to use HttpClient in Java, but just >> >> can't >> >> seem to be able to get the right jar file for some reason. I keep >> >> getting an >> >> error that the package org.apache.commons.httpclient does not exist. >> I >> >> downloaded almost every related jar file I could find, but it is >> still >> >> not >> >> working. These are the jar files I have so far: >> >> >> >> commons-email-1.2 >> >> httpclient-4.0.1 >> >> httpmime-4.0.1 >> > >> > You also need >> > >> > commons-codec >> > httpcore >> > >> > see: >> > >> > >> http://hc.apache.org/httpcomponents-client/httpclient/dependencies.html >> > >> >> activation >> >> dsn >> >> imap >> >> mailapi >> >> pop3 >> >> smtp >> >> mail >> >> commons-email-javadoc/sources >> >> commons-logging-... >> >> commons-collections-... >> >> commons-net-2.0-... >> >> jakarta-oro-2.0 >> >> >> >> I'm sure many of these are absolutely useless, but I was growing >> >> desperate. >> >> I just need to import org.apache.commons.httpclient.* into Java. If >> >> someone >> >> could please let me know what exactly it is I need to download, jar >> file >> >> or >> >> other, I would be extremely grateful! >> > >> > Check the dependency details on the websites. >> > >> >> Hugh >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/Error-using-import-org.apache.commons.httpclient.*-tp27809614p27809614.html >> >> Sent from the HttpClient-User mailing list archive at Nabble.com. >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> >> >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > >> > >> >> >> -- >> View this message in context: >> http://old.nabble.com/Error-using-import-org.apache.commons.httpclient.*-tp27809614p27811609.html >> >> Sent from the HttpClient-User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://old.nabble.com/Error-using-import-org.apache.commons.httpclient.*-tp27809614p27811792.html Sent from the HttpClient-User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
