最近看到一个文档,有些疑惑。当然,本人不搞驱动,求高手指教
OmniDriver was created in the Java environment and includes native libraries for select Windows, Macintosh and Linux operating systems.
...全文
11707打赏收藏
java可以开发驱动程序么?
最近看到一个文档,有些疑惑。当然,本人不搞驱动,求高手指教 OmniDriver was created in the Java environment and includes native libraries for select Windows, Macintosh and Linux operating systems.
到目前为止,至少基于linux的驱动都是用C和汇编来做,但驱动框架不少用到了面向对象的思想,楼主所说的OmniDriver was created in the Java environment and includes native libraries for select Windows, Macintosh and Linux operating systems.这里的include native libraries则是由C/C++来实现的底层代码,JAVA是不能直接来写驱动的,不仿仔细想一下,JAVA的工作平台是JAVA虚拟机,在操作系统之上,而现有的高级操作系统(linux/windows),驱动层都是在操作系统内核下被内核管理的。
The bulk of OmniDriver’s capabilities are implemented in the Java language. This is key to OmniDriver’s ability to run on multiple platforms. The functions in the above-mentioned DLLs merely invoke corresponding Java functions.