- 论坛徽章:
- 0
|
原帖由 wwjjtt 于 2009-1-17 09:51 发表 ![]()
各位大侠,CONFIG_BINFMT_MISC 定义为运行Java程序的自动运行是什么概念?此选项为Y时,Java程序就可以不用虚拟机直接运行吗?请高手帮忙解疑答惑,谢谢。
应该是说在内核中支持某些二进制的程序格式,
CONFIG_BINFMT_MISC: │
│ │
│ If you say Y here, it will be possible to plug wrapper-driven binary │
│ formats into the kernel. You will like this especially when you use │
│ programs that need an interpreter to run like Java, Python, .NET or │
│ Emacs-Lisp. It's also useful if you often run DOS executables under │
│ the Linux DOS emulator DOSEMU (read the DOSEMU-HOWTO, available from │
│ <http://www.tldp.org/docs.html#howto>). Once you have │
│ registered such a binary class with the kernel, you can start one of │
│ those programs simply by typing in its name at a shell prompt; Linux │
│ will automatically feed it to the correct interpreter.
但并不是说只选进去就可以运行JAVA这些了,仍然需要安装JDK这些的。在内核文档Documentation/java.txt中讲到:
Java(tm) Binary Kernel Support for Linux v1.03
----------------------------------------------
Linux beats them ALL! While all other OS's are TALKING about direct support of Java Binaries in the OS, Linux is doing it!
You can execute Java applications and Java Applets just like any other program after you have done the following:
1) You MUST FIRST install the Java Developers Kit for Linux. The Java on Linux HOWTO gives the details on getting and
installing this. This HOWTO can be found at:
ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/Java-HOWTO
You should also set up a reasonable CLASSPATH environment
variable to use Java applications that make use of any
nonstandard classes (not included in the same directory
as the application itself).
2) You have to compile BINFMT_MISC either as a module or into the kernel (CONFIG_BINFMT_MISC) and set it up properly.
If you choose to compile it as a module, you will have
to insert it manually with modprobe/insmod, as kmod
cannot easily be supported with binfmt_misc.
Read the file 'binfmt_misc.txt' in this directory to know
more about the configuration process.
后面省略
另外,还可以参考一下内核文档
Documentaton/binfmt_misc.txt |
|