Reputation: 47
Hi when i try to run sakila database example from netbeans site https://netbeans.org/projects/samples/downloads/download/Samples/JavaEE/DVDStoreEE6.zip
i have some problem showing following in my n output windows of NetBeans 7.3.Beta2
ant -f "C:\\Users\\unknown\\Documents\\DVDStoreEE6 (1)"
-DforceRedeploy=false -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true run init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: C:\Users\unknown\Documents\DVDStoreEE6 (1)\nbproject\build-impl.xml:995: Warning: Could not find file C:\Applications\NetBeans\NetBeans Dev
201107270600.app\Contents\Resources\NetBeans\ide\modules\ext\mysql-connector-java-5.1.13-bin.jar to copy. BUILD FAILED (total time: 0 seconds)
Can any one guide me why this problem is occurring?
Upvotes: 2
Views: 18586
Reputation: 2517
In case if you have already included the 'mysql-connector-java' jar file and are still facing the same error like me, here is what you can do. When the error is displayed in the output window click on the blue link that is displayed. Eg:
C:\Users\Username\NetbeansProjects\ProjectName\nbproject\build-impl.xml
Within that remove the below line,
<copyfiles files="${file.reference.org-netbeans-modules-db-mysql.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
Hope this helps.
Upvotes: 1
Reputation: 1941
You need to download mysql-connector-java-5.1.13-bin.jar and then set your classpath. here the link to download
Upvotes: 2