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

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.
主站蜘蛛池模板: 鹿邑县| 罗田县| 安平县| 襄垣县| 台江县| 平泉县| 黄冈市| 柳州市| 平安县| 依兰县| 东源县| 叶城县| 贡山| 溧阳市| 封开县| 黄梅县| 仪陇县| 江达县| 托克托县| 高安市| 章丘市| 安岳县| 铜梁县| 丹棱县| 秭归县| 渭南市| 瓦房店市| 荔波县| 松滋市| 错那县| 海丰县| 赤峰市| 淄博市| 库尔勒市| 东源县| 东台市| 榆中县| 利辛县| 丹巴县| 临清市| 体育|