On Wed, 2009-07-08 at 10:22 -0400, Eric Bodden wrote:
> Can you try -sourceroots C:\abc_compiler\example\src\test_classes?
>
> If your classes have no package annotation then you should give as
> sourceroot the folder that the class resides in.
The classes do have a package annotation - that's what the error
message points to:
> >> > "C:\...\src\test_classes\A.java:1:
> >> > Syntax error: unexpected package.
> >> > package test_classes;
> >> > ^-----^
> >> > "
So you should use: -sourceroots C:\abc_compiler\example\src
Yevgenia, the rule is:
If you use -sourceroots <path>
and there is a java file <path>\a\b\c\SomeClass.java
then in SomeClass.java you should have
package a.b.c;
Does that make sense?
Julian
Received on Wed Jul 08 2009 - 15:35:25 BST
This archive was generated by hypermail 2.2.0 : Thu Jul 09 2009 - 22:50:12 BST