I am working on installing
this build of OpenCV, provided by WPI/FRC. I am doing this on a Windows laptop.
On the releases page, a JAR download is available, I downloaded this and tried to run it. It didn't run, and therefore I have done a number of things to try and resolve this issue.
1. I downloaded and installed the latest version of the JRE
2. I set the JAVA_HOME variable
3. Task Manager showed that Java was briefly being started up when I clicked on the JAR, but then immediately failing
4. I opened up the Java preferences in the Control Panel, set up the newest runtime, and then disabled the old one
5. The command line showed that the correct version of Java (with the correct path) was now running
6. When I tried to run the JAR from the command line, it gave me this error message
Code:
Exception in thread "main" org.apache.commons.cli.MissingOptionException: -v <version>
at edu.wpi.first.wpilib.opencv.installer.MainCLI.main(MainCLI.java:70)
7. I then ran it with -v, to try and show what went wrong, and it gave me this error message
Code:
Exception in thread "main" org.apache.commons.cli.MissingArgumentException: Missing argument for option: v
at org.apache.commons.cli.DefaultParser.checkRequiredArgs(DefaultParser.
java:211)
at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:125)
at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:76)
at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:60)
at edu.wpi.first.wpilib.opencv.installer.MainCLI.main(MainCLI.java:63)
Has anyone else had this issue, or does anyone have any suggestions for how to proceed?