I got an EJB project that has a dependency on a regular Java project.
When I build the EJB project I'd like to have the sources from the Java project compiled in the target dir of the EJB project.
I added the Java project to the "Order and Export" in the Project Properties -> Java Build Path, but it still didn't work.

Actually the problem is that when deploying the EAR the classes in the Java project are not included in the deployment.