readme.txt

来自「JNI(java本地接口)之delphi版」· 文本 代码 · 共 40 行

TXT
40
字号
This is a Console example

** Windows **********************************************

It is configured to find JNI.pas in ..\..\PAS.

First create HelloWorldImpl.dll by compiling HelloWorldImpl.dpr
with Delphi.
The second step is to compile Main.java and HelloWorld.java
with the Java compiler. For Sun's JDK this is javac.exe.
You will get Main.class and HelloWorld.class.

Now you can start the Java program Main by executing
java Main
in a console window (DOS box).

** Kylix ************************************************

Please add ../../PAS to the search path in the project options
in Kylix.

First create HelloWorldImpl.so by compiling HelloWorldImpl.dpr
with Kylix.
The second step is to compile Main.java and HelloWorld.java
with the Java compiler. For Sun's JDK this is javac.
You will get Main.class and HelloWorld.class.

You may have to include the Kylix bin directory and the current
directory into your library path.
Check if the environment variable LD_LIBRARY_PATH contains
these directories.
Sample entry: LD_LIBRARY_PATH=/opt/kylix/bin:.

Now you can start the Java program Main by executing
java Main
in a shell window.

*********************************************************

See the included documentation for details.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?