applet and native method

K

kaul

i have read that applet cannot call a native method due to security
reasons.But start() in thread class is a native method.Then how is it that
we can create thead in applets?
 
B

Boudewijn Dijkstra

kaul said:
i have read that applet cannot call a native method due to security
reasons.But start() in thread class is a native method.Then how is it that
we can create thead in applets?

You mean you haven't tried to just *do* it?
 
T

Thomas Fritsch

kaul said:
i have read that applet cannot call a native method due to security
reasons.
Not quite true!
More exactly: You cannot load your *own* native libraries (*.dll on
Windows, lib*.so on Unixes) from an applet due to security reasons.
But start() in thread class is a native method.Then how is it that
we can create thead in applets?
But of course you can load the native libraries of the JVM *itself*
(containing native methods like Thread#start).
 
A

Andrew Thompson

Not quite true!
More exactly: You cannot load your *own* native libraries (*.dll on
Windows, lib*.so on Unixes) from an ..
unsigned

...applet due to security reasons.

( If we are being very accurate. ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top