官术网_书友最值得收藏!

Removal of the Native-Header Generation Tool (javah)

This version of JEP has removed the javah tool from the tools shipped with the JDK.

Suppose that you need instances of your class to be referenced by native code in C. Developers have used the javah tool to generate the C header and source files from a Java class. The generated code is used to enable native code (say, written in C) to access the instances of your Java class. The javah tool creates a .h file, which defines struct, similar to the structure of your class. For multiple classes in a source file, the javah tool generates separate .h files.

The removal of javah doesn't imply any decline in the usage of your Java classes by the native code.

With Java 8, javah was enhanced to take on the responsibility of generating the C header and source code files. After testing over two versions, javah is being removed from Java SE 10.

The removal of the javah tool is compensated by the advanced compilation options in javac, which can be used to generate the C header and source files.
主站蜘蛛池模板: 余干县| 柳州市| 内乡县| 拉孜县| 聂荣县| 苍南县| 庄浪县| 宁海县| 伽师县| 开封县| 长岭县| 利辛县| 高台县| 天长市| 长武县| 长宁区| 敦煌市| 壶关县| 邵阳市| 北京市| 周至县| 静海县| 宁化县| 米易县| 镇宁| 东海县| 新乡市| 蒙山县| 昌邑市| 台前县| 孝感市| 武宁县| 湖州市| 扎兰屯市| 芮城县| 土默特左旗| 曲周县| 大埔区| 城口县| 滕州市| 任丘市|