how to implant .exe in java applet?
I want to implant an .exe file into a java applet program,
how to implement???:confused: |
You can't.
|
Nickhx, what do you mean by implant ?
|
Whatever you mean, you can't run native code in an applet without getting around the security restrictions.
|
Or expressed more positively, you can do whatever you want with an applet, including calling native code, as long as:
- your applet is signed - the user viewing the applet agrees by clicking on some warning windows. Of course, you loose most of the java portability in doing that. |
well, I was told to program a port scanner program with java applet,I have already finish this job with c and java,so I wonder whether I could implant the .exe into applet.
|
then how to sign an applet?
|
Not an easy task, see:
http://mindprod.com/jgloss/signedApplets.html Here is an example of a signed applet implementing a port scanner, with no C code I guess: http://www.onjava.com/pub/a/onjava/2...22/plugin.html What do you do in C that can't be done in Java ? You may also look at the java web start technique, that allows full java application to be launch from a browser. |
wow,this example is just what I am told to implement,thanks a lot !!!
I implemented it in both c and java,but since I was told to implement it using java applet, so I wonder whether I could implant the .exe or not.Anyway,thank you very much! |
All times are GMT -5. The time now is 10:40 PM. |