如何停止执行的Jar文件 [英] How To stop an Executed Jar file

查看:1173
本文介绍了如何停止执行的Jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这感觉就像一个愚蠢的问题,但我似乎无法弄明白。当我在Windows上运行* .jar文件时,它不会在任务管理器进程中出现。我怎么能终止它,我已经尝试过TASKKILL但它也不适用于我。

It feels like a dumb question to ask, but i cant seem to figure it out. when i run a *.jar file on windows it doesnt apears in the taskmanager processes. how can i terminate it , i have tried TASKKILL but it also doesnt work for me.

推荐答案

在Linux上

ps -ef | grep java

它将显示一个进程列表,其中一个将成为您的可执行jar。只需按进程ID终止该进程。

It will show u a list of processes out of which one will be your executable jar. Just kill that process by its process id.

sudo kill -9< pid>

这篇关于如何停止执行的Jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆