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

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.
主站蜘蛛池模板: 泉州市| 胶南市| 上饶县| 永定县| 广河县| 晋江市| 广西| 桓仁| 班玛县| 邯郸市| 襄垣县| 连山| 贺兰县| 台南市| 朔州市| 土默特左旗| 临夏县| 敦煌市| 秦安县| 灵寿县| 缙云县| 怀远县| 五台县| 蒲城县| 惠水县| 太康县| 都匀市| 博客| 靖州| 建平县| 宿松县| 同心县| 庄浪县| 鄂托克前旗| 清水河县| 长宁区| 赤峰市| 抚远县| 阳西县| 长葛市| 饶河县|