English 中文(简体)
Java方案能否在C:Windows?
原标题:Can a Java program put a DLL in C:Windows?

I m 利用RxTx序列图书馆提供可执行的JAR。 它需要获得高频飞行,我希望联合调查组自动这样做。 因此,我不需要安装装置——仅需要一个独立的联合核查组。 能否做到这一点?

当我打电话给新的文件OutputStream(新文件“C:Windows/rxtxSerial.dll”)时,我有以下例外:

java.io.FileNot Found 例外:Cor:xtxSerial.dll (被拒)

感谢

Neal

最佳回答
问题回答

是的,你可以把DL文件放在系统夹中。 然而,最新版本的Windows Implementations User Access/Account Control,如果你没有足够方便,可以阻止你这样做。 这不是你用什么语言或工具来处理这个问题。 为了使 your申请能够把档案放在C:Windows,应当作为署长处理。 但是,要求用户作为署长管理申请的时间可能并不方便用户。 因此,我建议做的是,如果档案已经存在,如果没有,则要检查它,并抄送它。 在这种情况下,署长只需要一次特权。 这里是Mark S. Kolich在引出UAC。

希望会有所助益。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签