Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How to Compile Using .jar?

$
0
0
I'm trying to compile on the command line using the opencv-300.jar file. It compiles fine, but once trying to run the program it begins to throw ClassNotFoundExceptions. The command I'm using is the following: javac -cp opencv-300.jar Program.java, etc.. Is there something incorrect in the way I've linked the jar file for OpenCV? I used Netbeans to write the program, and included the .jar in libraries no problem. I'm running Windows 8 if that makes any difference. Edit: Running java "-Djava.library.path=". -jar opencv-300.jar returns the following error: no main manifest attribute, in opencv-300.jar

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>