I'm developing an app in NetBeans 7.4 which uses Lti-Civil DLL files for opening my webCam, I have to add to my project next parameter:
Properties -> Run -> VM Options: -> -Djava.library.path="lib/win32-x86" -Djava.security.policy=applet.policy
lib/win32-x86 = directory within my project which stores Lti-Civil DLL files If I want to make the JAR file Running I do the following in terminal:
java -Djava.library.path="C:\Users\myUser\Documents\NetBeansProjects\CapturaCamaraWeb2\lib\win32-x86" -Djava.security.policy=applet.policy -jar C:\Users\myUser\Documents\NetBeansProjects\CapturaCamaraWeb2\dist\CapturaCamaraWeb2.jar
Applet
Web Applet error message on load
Web Applet:
Java Console
EDIT: as far as I see this error message refers to this class
Add the libraries directly to your projects' libraries/dependencies.
In Netbeans, right-click on Libraries and select Add Jar/Folder
to add the dependent libraries.
Once this is done, you don't have to manually specify the path while running again.
In order to build the project, right-click on the project and select "Clean & Build" - it'll create a dist
directory containing the build output files along with all dependencies within a lib folder.
If you want all dependencies to go directly into your jar, you can use Netbeans package-for-store option in Run Target
under build.xml
Right-click on the build.xml in the Files pane. (Windows menu -> Files to see the Files pane)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.