Question

I have all the QueryDSL jars referenced from the all directory in my libraries. My problem NetBeans is not seeing the "Q"objects. They are generated to the same directory as all the other JPA entity objects with "_". Secondly if I use a "Q" object it does compile, but the editor itself does not see it and thinks it is an error.

Anyone have any ideas? I tried editing the Ant file but I failed at that as well. It does not seem that I need to edit it specifically for generation. The main problem appears to be linking to the NetBeans editor.

BTW I did look at this link and I already did this! How to setup classpath in Netbeans?

Also I have this problem on both Mac OSX and Ubuntu Netbeans. Help is appreciated!!

Was it helpful?

Solution

Best fix that is consistent is to go to project properties and add the build/generated-sources as a Source package Folder in Sources.

OTHER TIPS

I had the same problem. I did a clean & Build, on the project and that did it for me. I could clearly see the java files being generated, and the class files are not getting in the path. Clean did the trick for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top