<p>here is my directory structure.</p>

<p>/user/a
/user/b
/user/b</p>

<p>inside folder a,b,c there is a file person.java (it is the Same file, just a one line modification.</p>

<p>now, on my shell, im on my /user/ directory and i try to do </p>

<pre><code>   javac */person.java
</code></pre>

<p>the shell returns the following error,</p>

<p>person.java:14: duplicate class: person</p>

<p>Is there anything to resolve this?</p>

I think the problem here might be, that javac tries to compile everything in one go, which naturally results in duplicated class definitions.
A simple way to resolve this would be
```
find . -name '*.java' -exec javac {} \;
```
Edit:
Or to be more precise
```
find . -name 'person.java' -maxdepth 2 -exec javac {} \;
```