我可以直接从/bin目录运行一个.jar程序吗?

huangapple go评论76阅读模式
英文:

How can I run a .jar program directly from /bin?

问题

每当我需要打开logisim-evolution.jar文件时,我需要输入以下命令:

java -jar logisim-evolution.jar

我想在/bin目录中为该程序添加一个条目,以便可以通过dmenu打开它。我应该如何操作?

英文:

Whenever I need to open the logisim-evolution.jar file, I need to type the command:

java -jar logisim-evolution.jar

I would like to add an entry for that program in /bin to be able to open it through the dmenu. How can I do that?

答案1

得分: 0

你最好制作一个.sh启动器,运行java -jar logisim-evolution.jar,并将其放在/bin目录下。

英文:

You're better off making a .sh launcher that runs java -jar logisim-evolution.jar and put it in /bin

@Federico klez Culloca

huangapple
  • 本文由 发表于 2020年9月19日 20:25:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/63968779.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定