检查的程序安装在Linux机器上的Java小程序 [英] Check if a program is installed on a linux machine from a java applet
问题描述
您好我需要能够检查是否安装客户端计算机并在上某个软件,才能启动它。我发现下面的三个职位至于如何做到这一点在Windows和Mac,但我似乎无法推测出来的Linux,因为没有注册。是否有任何人知道这是如何能够在Linux上做什么?
Hi I need to be able to check if a certain software is installed on the clients computer and where, in order to launch it. I found the following three posts as to how to do so on Windows and Mac but I can't seem to figure it out for Linux as there is no registry. Does any one know how this can be done on Linux?
类似的职位为Windows和Mac:结果
<一href=\"http://stackoverflow.com/questions/4854775/can-a-java-applet-open-a-select-directory-and-write-to-a-filesystem-via-javascr\">Can Java小应用程序打开一个&QUOT;选择目录&QUOT;和写入通过JavaScript交互的系统中呢?结果
使用读/写Windows注册表的Java 结果
<一href=\"http://stackoverflow.com/questions/4748895/how-can-i-see-the-software-installed-in-a-mac-os-using-a-java-application\">How我可以看到使用Java应用程序安装在Mac OS上的软件?
Similar posts for Windows and Mac:
Can a Java applet open a "select directory" and write to a filesystem via JavaScript interaction?
read/write to Windows Registry using Java
How can I see the software installed in a Mac OS using a java application?
任何帮助将大大AP preciated:)
any help would be greatly appreciated :)
推荐答案
使用了
which file
命令,以找出是否该软件安装路径。如果什么也没有出现,那么你可以做一个
command to find out if the software is installed in the path. If that comes up with nothing then you could do a
find ./ -name "file"
另外,请查阅当地的垃圾桶或.BIN如果不在路径包括在内。
Also check their local bin or .bin if its not included in the path.
这篇关于检查的程序安装在Linux机器上的Java小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!