LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how to implant .exe in java applet? (https://www.linuxquestions.org/questions/programming-9/how-to-implant-exe-in-java-applet-210131/)

nickhx 07-27-2004 04:03 AM

how to implant .exe in java applet?
 
I want to implant an .exe file into a java applet program,
how to implement???:confused:

ToniT 07-27-2004 08:12 AM

You can't.

jlliagre 07-27-2004 09:07 AM

Nickhx, what do you mean by implant ?

aaa 07-27-2004 02:46 PM

Whatever you mean, you can't run native code in an applet without getting around the security restrictions.

jlliagre 07-27-2004 03:14 PM

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.

nickhx 07-27-2004 07:55 PM

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.

nickhx 07-27-2004 10:29 PM

then how to sign an applet?

jlliagre 07-28-2004 01:32 AM

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.

nickhx 07-28-2004 03:41 AM

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.