|
JNI Interview Questions -
Part3
1)Can I use JDI to monitor
which the classes that are being loaded and information about which
classloader is being used to load each of the classes?
import java.io.*; import
java.util.*; import com.sun.jdi.*; import com.sun.jdi.connect.*; import
com.sun.jdi.event.*; import com.sun.jdi.requirement.
2)What is
JAWIN?
The Java/Win32 integration project
is free, open source architecture for interoperation between Java and
components exposed through Microsoft.
3)How can I start a shutdown
without using JNI on my Windows box?
You can call Runtime.exec() and
execute rundll32.exe with a few parameters. rundll32.exe shell32.dll,
SHExitWindowsEx (to close the session) rundll32.exe.
4)How to make calls to C or C++
methods from a Servlets?
We have to use JNI.
5)Can I insert ActiveX controls
in SWT?
Yes.
6)What is
SWT?
SWT is the software component
(part of the Eclipse IDE Framework) that delivers native widget functionality
for the Eclipse platform in an operating...
7)How can I use JNI with
WebSphere Application Server (WAS)?
One problem is that Servlets
cannot load libraries because they are in a custom classloader. Move the
Servlets to a location in the application server...
8)can I call activex control
developed in VB/VC in java using JNI? Is it possible to call activex control
developed in VB/VC from JAVA and if yes how?
Yes, it's possible: Bridge2Java
(from IBM alphaWorks) allows Java programs to communicate easily with ActiveX
objects, using the JNI and COM technology....
9)Tools for Native Exe
generation. What tools can I use to generate a native executable from my
*.class files?
These tools fall into 2
categories. Those that package interpreted code into exes (wrappers) and those
that actually compile the java code to machine...
10)How can I access java from
Python (and the other way around)? Are there any JNI wrappers which can bridge
the gap between the two?
JPE (Java-Python Extension) is an
open-source effort for seamless inter-operability between Java and Python.
Java-Python Extension main site JPE
java6 ejb3 jsf hibernate eclipse ajax groovy spring seam java struts webservice j2me guice java5 jca tapestry soa linux ria books
|