|
JNI Interview Questions -
Part1
1)How to get the window handle
under the Microsoft JVM?
Bu using the AWT NI can get the
window handle of a canvas. However, the Java application/applet is always
subject to...
import java.awt.*; import
java.awt.peer.*; import com.ms.awt.peer.*; class DrawingCanvas extends
java.awt.Canvas { void viewZoomBy(double.
2)Are there JVM's that work as
a true 64-bit application?
IBM's SDK for Windows on Itanium
Solaris TM-SPARCTM platform edition of J2SDK 1.4.0 CACAO is 64 bit
just-in-time (JIT) compiler for Java
3)Can I setup Tomcat to run
inside the web server process itself (on Netscape/IIS?), instead of running it
as a separate process.
Yes, Look for Tomcat documentation
for clear idea.
4)How to use JNI on
OpenVMS?
Please click the link
http://www.slac.stanford.edu/grp/cd/soft/aida/using_jni_on_openvms.htm
5)What is BootClassPath and
what we it can do in Java?
Please
download this PDF
www.javageeks.com/Papers/BootClasspath/BootClasspath.pdf
6)How can I create standalone
Java applications that can be launched just like any other Mac OS
application?
You can use JManager API or
JBindery to do so. Here's an article that shows you how to create a wrapper
program around a Java application:
7)Is there an alternative to
JNI on MacOS?
If you want to call Mac OS C code
from your Java code, there are currently two mechanisms for doing so: JDirect2
and the Java Native Interface (JNI).
8)What are the changes to JAWT
(AWT Native Interface) API in JDK1.4?
Added Lock() and Unlock() function
pointers to the basic JAWT structure in jawt.h. These are needed to handle
locking of the AWT without requiring a...
9)Am using -Xbootclasspath to
add my custom jars, But this prevents loading custom JNI libraries from my
user directory. Is there a work around?
That is the intended behavior. All
system classes will only lookup shared libraries in $JAVA_HOME/bin. If you do
need to load custom libraries for the system...
10)How can I use JBuilder to
make my Java program into a native executable?
Borland Developer Support has an
article on how to do this: How can I run my Java program as a native
executable?
java6 ejb3 jsf hibernate eclipse ajax groovy spring seam java struts webservice j2me guice java5 jca tapestry soa linux ria books
|