Customer Complaints

Customer in a restaurant: "Excuse me, how long have you been working here?"

Waiter: "About three months, sir."

Customer: "Oh, then it would not have been you who took my order."

 

Great Politicians

Two politicians were discussing their pool strategy. The Democrat said: "When I take a cab, I give the cabbie a heavy tip and say, 'Vote for Democrats'." The Republican answered, "Whenever I take a cab, I don't give any tip at all and leave him with, Don't forget to vote Democrats."


Two friends

Anita: "I want to measure the ladder, but it is very high."
Priya: "Lay it on the ground and measure it."
Anita: "But I want to measure its height, not its length."

Chapter 3 Java Native Interface

Compiling the Program

To compile this program, you need Microsoft Visual C++ compiler. Use the following command line to compile the program.

cl -Ic:\jdk\include -Ic:\jdk\include\win32 Test.c c:\jdk\lib\jvm.lib

 "Furious activity is no substitute for understanding."

Send your queries to: teachers@universalteacher.com

Set the path and environment variables by running the following file: devstudio\vc\bin\vcvars32.bat

If you want to distribute this program to your users, you must supply the following items:

Executable program (Test.exe)
The class files (Java code)
Java Runtime Environment.


Programs written in the Java language have a number of advantages over programs written in other languages, but there are situations when you need native code. You can use JNI to handle those situations when an application cannot be written entirely in Java.

Contents         Top                              Move to the preceding page Move to the next page
© 2001 www.universalteacher.com. All rights reserved