You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Creating a batch / shell script that runs java -jar abc.jar
Changing the program to open .jar file to JRE Relevant StackOverflow (This does not seem to work anymore btw...)
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?
The text was updated successfully, but these errors were encountered:
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.
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.
With regards to this and after some Googling, it seems that almost all solutions involve
java -jar abc.jar
Another solution involving registry editing
java.exe
for JRE / JDK with the command-line argument-jar
in Windows Relevant SolutionAll 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?The text was updated successfully, but these errors were encountered: