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

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.
主站蜘蛛池模板: 南雄市| 福州市| 南部县| 南宁市| 城口县| 石渠县| 阿克苏市| 清水县| 石首市| 淄博市| 格尔木市| 澄城县| 平潭县| 额敏县| 涪陵区| 亚东县| 灵璧县| 麦盖提县| 兴山县| 巢湖市| 三门峡市| 本溪| 凤凰县| 腾冲县| 称多县| 衡南县| 改则县| 宁国市| 宿迁市| 库尔勒市| 双峰县| 商城县| 新余市| 宽甸| 抚远县| 石楼县| 巴南区| 松原市| 富阳市| 开阳县| 达州市|