原帖由 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(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.
后面省略
原帖由 wwjjtt 于 2009-1-17 10:59 发表
我自己做了一个文件系统,并且自己的内核也跑起来了,此选项并没有编译进内核,但是我在移植了一个Java虚拟机到文件系统之后,Java程序也是可以运行的,...
原帖由 wwjjtt 于 2009-1-17 10:59 发表
版主法师,我自己做了一个文件系统,并且自己的内核也跑起来了,此选项并没有编译进内核,但是我在移植了一个Java虚拟机到文件系统之后,Java程序也是可以运行的,不知道这个选项是不是在进行java应用时必须那? ...
原帖由 wwjjtt 于 2009-1-19 10:14 发表
我是用java myclass执行的,你的意思是如果这个选项被选中了,那么就可以直接用./myclass来执行了吗?![]()
我做个试验来看看。
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.
原帖由 wwjjtt 于 2009-1-19 10:14 发表
我是用java myclass执行的,你的意思是如果这个选项被选中了,那么就可以直接用./myclass来执行了吗?![]()
我做个试验来看看。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |