Results 1 to 4 of 4
- 11-05-2010, 06:33 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 26
- Rep Power
- 0
package org.apache.httpcomponents.httpclient.debian does not ex
achab@ZT:~/softdev/experimenting$ javac WebHttpClient.java
WebHttpClient.java:4: package org.apache.httpcomponents.httpclient.debian does not exist
achab@ZT:~/softdev/experimenting$ echo $CLASSPATHJava Code:import java.io.*; import java.util.*; import java.net.*; import org.apache.httpcomponents.httpclient.debian.*;
/usr/share/maven-repo/:/usr/share/maven-repo/org/apache/httpcomponents/httpclient/debian
root@ZT:/usr/share/maven-repo/org/apache/httpcomponents/httpclient/debian# ls
httpclient-debian.jar httpclient-debian.pom
What's wrong ?
- 11-05-2010, 06:44 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Remove those two things from your CLASSPATH environment variable, that isn't really used anymore. If you are runinng/compiling from the command line then include the jar listed above on your classpath (not the directory containing it, the actual jar) using the -cp option. If you are using an IDE then include that jar as a library in your project.
- 11-05-2010, 06:52 AM #3
Member
- Join Date
- Nov 2010
- Posts
- 26
- Rep Power
- 0
Thanks. I have done that, and I am getting the following compilation error:
achab@ZT:~/softdev/experimenting$ javac WebHttpClient.java -cp /usr/share/maven-repo/org/apache/httpcomponents/httpclient/debian/httpclient-debian.jar
WebHttpClient.java:10: cannot find symbol
symbol : class HttpClient
Why is the compiler not finding the HttpClient class in httpclient-debian.jar ?
Abdenour
- 11-05-2010, 06:55 AM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Similar Threads
-
How to interact with Web page? ( HttpComponents)
By featon in forum New To JavaReplies: 0Last Post: 05-28-2010, 11:58 PM -
login with cookies using Apache httpClient
By MacGyver in forum Advanced JavaReplies: 0Last Post: 05-15-2010, 03:21 PM -
debian package
By jperson in forum Advanced JavaReplies: 3Last Post: 01-19-2010, 02:53 PM -
[SOLVED] Compling errors relating to Apache package
By dan0 in forum New To JavaReplies: 8Last Post: 03-31-2009, 11:56 PM -
JVM error when starting Eclipse[with Debian]
By cakirhal in forum EclipseReplies: 0Last Post: 03-07-2009, 08:07 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks