I have a simple data validation command line utility that I've written in Java. We distribute this utility to our clients as a JAR file. Our clients run this utility on data in their local machines.
Since we frequently update this validation tool, it would be nice to be able to distribute this using Java Web Start / JNLP so that they receive code update开发者_开发知识库s automatically.
From what I can gather, Java web start is most commonly used for Swing/UI based apps. Can it be used for command line console applications? Or if there is another way to tackle this issue, let me know.
Java Web Start does assume a GUI app and does its best to hide the code it downloads from the users. It doesn't seem right for a command line app that users are apt to, for example, incorporate in their own scripts.
Maybe you could write a simple GUI that retrieves the latest version of your command-line JAR and puts it where your users are expecting it, and put that GUI in JWS.
精彩评论