But, herein lies the problem. If I want to watch my Axis network camera, I have to keep a browser open. This is slightly annoying because I shouldn't need a browser to look at a JPG image. So, I took matters into my own hands and wrote my own lightweight Java app to let me watch my Axis Camera without a web-browser (screenshot). Theoretically, this app should work for any IP based camera that exposes a still JPG image URL. As a side note, the app lets you pause and adjust the refresh rate of the stream as well. Continue reading for the source (released under the MIT License) and a pre-built JAR.
Pre-built "runnable" JAR (10Kb): axis-viewer.jar
Source JAR (12Kb): axis-viewer-src.jar
To run, download axis-viewer.jar. If you have Java installed, and you're running Windows, chances are you can simply double-click on the JAR file to start the application. If you don't have the JVM associated with JAR files in your environment, or you're running Linux, you can start the JAR from the command line:
(mark@bermuda)~> java -jar axis-viewer.jar
To get the source, download axis-viewer-src.jar. The source is available under the MIT License; meaning you can do whatever you want with the code, but I'm not responsible for anything that goes wrong. To extract the JAR:
(mark@bermuda)~> jar xvf axis-viewer-src.jar
Note, this Axis viewer is NOT serving up a motion JPG stream. Instead, it makes repeated requests for a still JPG image at a given interval. If you're looking for Java code to handle/process a motion JPG stream, this is not it.
Enjoy.


Did you find this post helpful, or at least, interesting?