Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've downloaded the Java RESTClient tool, which is a Swing-based GUI app. Unfortunately, there is no .exe to launch like with other apps (at least those I've written in .NET).

Instead, I have to launch this command every time:

java -jar restclient-2.2-jar-with-dependencies.jar

Is there a way in which I can automate launching this command?

share|improve this question

You don't say which environment you are in. The automation varies accordingly.

  • For graphic environments create a new application launcher. You will need to set the desired directory and specify the command to use.

  • For command line environments put a script in on your path that runs the command.

share|improve this answer

Put the command in a file named restclient.bat.

share|improve this answer

If you're in a windows environment with a normal Java installation, you should be able to just create a shortcut to your restclient-2.2-jar-with-dependencies.jar file, and let the shell association for .jar handle the rest.

share|improve this answer

You could use java webstart, look up the jnlp syntax. Its great if you want to launch from a web page for instance.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.