[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

problem with jikes / httpclient



Hi there

I am having a trouble making jikes compile an httpclient tutorial example:

debian3164lamp:/var/www/test/java# jikes-classpath HttpClientTutorial.java

Found 10 semantic errors compiling "HttpClientTutorial.java":

    1. import org.apache.commons.httpclient.*;
              ^---------------------------^
*** Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "org.apache.commons.httpclient" in:
               /usr/share/classpath/glibj.zip
               .



    2. import org.apache.commons.httpclient.methods.*;
              ^-----------------------------------^
*** Semantic Error: You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jikes could not find package "org.apache.commons.httpclient.methods" in:
               /usr/share/classpath/glibj.zip
               .



    3. import org.apache.commons.httpclient.params.HttpMethodParams;
              ^---------------------------------------------------^
*** Semantic Error: The import "org/apache/commons/httpclient/params/HttpMethodParams" is not valid, since it does not name a type in a package.


   13.     HttpClient client = new HttpClient();
           ^--------^
*** Semantic Error: Type "HttpClient" was not found.


   13.     HttpClient client = new HttpClient();
                                   ^--------^
*** Semantic Error: Type "HttpClient" was not found.


   16.     GetMethod method = new GetMethod(url);
           ^-------^
*** Semantic Error: Type "GetMethod" was not found.


   16.     GetMethod method = new GetMethod(url);
                                  ^-------^
*** Semantic Error: Type "GetMethod" was not found.


   20.                 new DefaultHttpMethodRetryHandler(3, false));
                           ^---------------------------^
*** Semantic Error: Type "DefaultHttpMethodRetryHandler" was not found.


   26.       if (statusCode != HttpStatus.SC_OK) {
                               ^--------^
*** Semantic Error: No accessible field named "HttpStatus" was found in type "HttpClientTutorial".


   37.     } catch (HttpException e) {
                    ^-----------^
*** Semantic Error: Type "HttpException" was not found.


I installed libcommons-httpclient-java, but that seems not to be enough.

Anyone knows what's going on?

Thank you,

Flavio



Reply to: