Re: How to make java client app to download jar package from server autoly?



Thomas Kellerer wrote:
Andrew Thompson wrote on 31.12.2006 12:54:
sealo wrote:
....
I want to write a command line java client program.

Why? Or rather, why would you want to use Java to
program a tool intended to be run from within the
command line, as opposed to a program with a GUI?

Why not?

1) I expect most things invoked from the command
line to be 'quicker than the eye can see'. Which is
not the case with any Java application, where the
JVM needs to load, loads some basic classes, load
the appliaction classes, and run.

2) Java is not well suited (from what I understand) to
adding those 'little extras' that make CLI based
programs better/bearable. Font colors, 'menus' etc.

It's a very good language to write a cross-platform application be it a GUI or a
commandline app.

I disagree with the latter, unless you are referring
to starting a server (or some other long running
process) from the command line, and also presuming
the application does not need to thereafter gain
input (beyond the very basic) from the end user.
(oh, and of course for those just learning programming,
no need to go rushing into GUI programming until
you've got some understanding of the language)

But then, I did want to push the web-start aspect,
which is another plus for GUI'd desktop apps. ;-)

Andrew T.

.



Relevant Pages

  • Re: How to make java client app to download jar package from server autoly?
    ... why would you want to use Java to ... command line, as opposed to a program with a GUI? ... JVM needs to load, loads some basic classes, load ... A GUI would be a disaster for this type of work - there is no way I'm ...
    (comp.lang.java.programmer)
  • Re: A constructive debate: Eclipse or NetBeans?
    ... that Linux and command-line driven languages like OCaml are so much more ... That's because most people never learn to use a command line or a simple ... Trying to run other people's OpenGL-based Java demos from the web I find ... OpenGL). ...
    (comp.lang.java.softwaretools)
  • Process.waitFor() returns, but threads reading output/error streams are blocked on read
    ... threads to read in the out/err streams, ... i'll include the java source below, but the problem seems extremely specific ... passed in on the command line). ... process is hung if i terminate the process the command line tool connects to ...
    (comp.lang.java.programmer)
  • Re: Java JNI problem
    ... System.load loads from a specific file path and does not use any library search path. ... Perhaps you are catching the exception and that is why the program is not dying or you have a multi-threaded application and only the one thread that tries to load the library is crashing while another thread is still running preventing the program from exiting. ... Perhaps CROM does not have the same library search path as when running from the command line. ... You can specify the path on the command line for java: ...
    (comp.lang.java.programmer)
  • Re: Timed wait fails under WebStart in Java 1.6 prerelease?
    ... the java command line. ... that I show you the jnlp specs for the configuration which does not run: ... java.specification.vendor: <Sun Microsystems Inc.> ...
    (comp.lang.java.programmer)