diff --git a/setup-eclipse.sh b/setup-eclipse.sh
index bdf87200a57a97a7d618303da714356cc86d53a6..991a706a093dbcdd37ef8c5ae696df0f581c7d1c 100755
--- a/setup-eclipse.sh
+++ b/setup-eclipse.sh
@@ -33,6 +33,7 @@ cat >$d/.classpath <<EOF
 	<classpathentry kind="src" path="src/main/java" output="target/bin"/>
 	<classpathentry kind="src" path="src/main/resources"/>
         <classpathentry kind="src" path="src/test/java" output="target/bin-test"/>
+        <classpathentry kind="src" path="lib/gen-java" output="target/bin"/>
 EOF
 (
 IFS=":"