I appears that your project is using some external libraries. I
suspect that Eclipse is setting paths to those for you, and that you
aren't setting those same paths when you use javac.
Redbeard schreef:
> Hi all,
>
[quoted text clipped - 9 lines]
> location: class org.apache.commons.collections.functors.ChainedClosure
> return ChainedClosure.getInstance(closure1, closure2);
<snip more error messages>
> I invoke it like so:
> hendrik@lichtenstein:~/Java/Jakarta Commons
> Collections/commons-collections-generic-3.2-src/src/java> javac
> -classpath . org/apache/commons/collections/FunctorUtils.java
> I appears that your project is using some external libraries. I
> suspect that Eclipse is setting paths to those for you, and that you
> aren't setting those same paths when you use javac.
I don’t think so. The Java Build Path mentions only the project itself
and the jdk.
All the classes mentioned in the error messages are in
org/apache/commons/collections/ and its subdirs, seen from ., which I
add to the classpath as above.
Other suggestions?
H.
- --
Hendrik Maryns
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Andrew Thompson - 04 Sep 2006 11:31 GMT
...
> Other suggestions?
Shot in the dark (probably not the slightest bit relevant).
I noticed that all your code causing problems, uses generics.
Are you sure that the other compilers are expecting code
that uses generics? (I vaguely recall having to tell the 1.5
javac to expect generics based code, but forget the minor
details).
Andrew T.