0

in command prompt I execute this line

java -jar <path_to_jd_gui_jar> <path_to_jar_file>

which opens a the jd-gui (jar viewer) to view a jar file. But if I close the cmd window it automatically closes the jd-gui window too. How can I execute this command so that the window that opens is independed from the command prompt?

I m guessing it has to start in a new process.

1

You can use the javaws Command Line :

javaws -jar <path_to_jd_gui_jar> <path_to_jar_file>

If you wish to disassociate it from the console where you entered the command, use the Windows START command:

start "" javaws -jar <path_to_jd_gui_jar> <path_to_jar_file>

You may also use this in a batch file.

  • this starts a new terminal window (java terminal this time) and if I close it the jd-gui closes again. – Anonymous Dec 6 '18 at 14:57
  • You may need in this case the javaws command. – harrymc Dec 6 '18 at 15:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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