A JAR file put into lib/ of a Grails project is not found. The editor complains about "unable to resolve class".
Example: put groovyws-all-0.3.1.jar into lib/ and import groovyx.net.ws.WSClient in a Groovy file. The error tooltip
says "unable to resolve class groovyx.net.ws.WSClient".
Created attachment 67685 [details]
JAR import error for Grails project
I have the same issue using the latest nightly build. After placing a JAR in the lib directory, I'm getting an "unable
to resolve class" errors on imports of classes from the JAR. Closing and reopening the project doesn't help, restarting
the whole IDE does.
Product Version: NetBeans IDE Dev (Build 200809100201)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Linux version 126.96.36.199-rt4 running on i386; UTF-8; sk_SK (nb)
*** Issue 151758 has been marked as a duplicate of this issue. ***
Thanks for the report.
What is the way how you put the jar to lib folder? Is it 100% reproducible? I cant reproduce it with current trunk build
as mentioned in issue 151758.
I have recently tested this issue on RC2, rather than a nightly build, and the issue appears to be resolved. I cannot
reproduce the issue.
Thank you for the hard work!
Have a good one.
Netbeans 6.5 final still has this issue. Adding lucene-2.4.0.jar to /lib, and org.apache.lucene.* libraries are not
resolved (even on Java source code).
Will this be fixed only on 7.0 ?
This should be fixed for 7.0. Perhaps problems with library updates outside of the IDE.
Integrated into 'main-golden', will be available in build *200902040232* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Log: #144243 JARs in lib/ of a Grails project is not found