首先,我需要在远程Ubuntu机器上的目录中读取和写入文件。
首先,我编写了一个Java程序,它可以从远程Windows计算机上的共享文件夹(即局域网上)读取、写入文件。在这里,类似的内容可以在我的(本地) Windows机器上工作:
File inputFile = new File(
"\\172.17.89.76\EBook PDF");/*ignore the syntax errors, the loc is just for the idea*/
现在,当我考虑远程Ubuntu机器时,显然我不能这样做,因为机器不在LAN上(我不确定即
我试图通过Putty (SSH)在远程Linux上运行一个可执行文件。
当我通过Putty在远程Linux上运行可执行文件时,会得到以下错误:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/user/xhs/tps/lnx32/jre/lib/i386/libawt_xawt.so: libXi.so.6: cannot open shared object file: No such file or directory
如果我执行apt-file search libXi.so.6,就会得到: