Skip to content
Advertisement

Tag: command-line

Setting JAVA_HOME

I’m having a problem when running programs that use Java from the command line. I get back a message saying Java.exe could not be found. I’ve followed the instructions found in several places for setting JAVA_HOME in Windows 7. As can be seen in the image I’m pointing to the JDK folder as instructed, I’ve also tried several variations including

Parsing command-line arguments from a STRING in Clojure

I’m in a situation where I need to parse arguments from a string in the same way that they would be parsed if provided on the command-line to a Java/Clojure application. For example, I need to turn “foo “bar baz” ‘fooy barish’ foo” into (“foo” “bar baz” “fooy barish” “foo”). I’m curious if there is a way to use the

Command line progress bar in Java

I have a Java program running in command line mode. I would like to display a progress bar, showing the percentage of job done. The same kind of progress bar you would see using wget under unix. Is this possible? Answer I have implemented this sort of thing before. Its not so much about java, but what characters to send

How do I parse command line arguments in Java?

What is a good way of parsing command line arguments in Java? Answer Check these out: http://commons.apache.org/cli/ http://www.martiansoftware.com/jsap/ Or roll your own: http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html For instance, this is how you use commons-cli to parse 2 string arguments: usage from command line:

Build Eclipse Java Project from Command Line

Is there a way to compile an Eclipse-based Java project from the command line? I’m trying to automate my build (using FinalBuilder not ant), and I’m neither a Java nor Eclipse expert. I can probably figure out how to do this with straight java command line options, but then the Eclipse project feels like a lot of wasted effort. In

Advertisement