Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries regarding launching command prompt upon double clicking the JAR #79

Open
Lucria opened this issue Oct 22, 2019 · 2 comments
Open
Labels

Comments

@Lucria
Copy link

Lucria commented Oct 22, 2019

Ideally, the testers want to double click on the JAR to launch the application. (If you are developing a CLI based application) you may want to check how to launch the command prompt on double-clicking the JAR.

With regards to this and after some Googling, it seems that almost all solutions involve

  1. Creating a batch / shell script that runs java -jar abc.jar
  2. Editing registry Solution 1 from StackOverflow Another solution from superuser
    Another solution involving registry editing
  3. Changing the program to open .jar file to JRE Relevant StackOverflow (This does not seem to work anymore btw...)
  4. Editing the relevant java.exe for JRE / JDK with the command-line argument -jar in Windows Relevant Solution

All these solutions are found that requires the tester to edit something within the testing environment. None of the solutions found is something that developers can do for the testers, other than creating a batch / shell script for the testers to run. As such, does anyone have any insights on how to run the .jar file (that doesn't have UI implemented, it is just a CLI applcation with accordance to project constraints) by double clicking?

@okkhoy
Copy link
Collaborator

okkhoy commented Oct 23, 2019

I think we can let go of this "ideal" situation.

If you have a pure CLI application that runs on the command prompt, you can add a note in the UG that the application should be launched using java -jar abc.jar command on the terminal/powershell/cmd ...

I wouldn't prefer you guys spending time on trying to resolve this.

@liujiajun
Copy link

liujiajun commented Oct 24, 2019

One alternative I could suggest is to provide a simple GUI wrapper for the CLI application. For example, you can have a GUI with just a text field and a text area.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants