Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-27-2004, 04:03 AM
|
#1
|
Member
Registered: Jul 2004
Posts: 35
Rep:
|
how to implant .exe in java applet?
I want to implant an .exe file into a java applet program,
how to implement??? 
|
|
|
07-27-2004, 08:12 AM
|
#2
|
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357
Rep:
|
You can't.
|
|
|
07-27-2004, 09:07 AM
|
#3
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
Nickhx, what do you mean by implant ?
|
|
|
07-27-2004, 02:46 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
Whatever you mean, you can't run native code in an applet without getting around the security restrictions.
|
|
|
07-27-2004, 03:14 PM
|
#5
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
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.
|
|
|
07-27-2004, 07:55 PM
|
#6
|
Member
Registered: Jul 2004
Posts: 35
Original Poster
Rep:
|
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.
Last edited by nickhx; 07-27-2004 at 07:56 PM.
|
|
|
07-27-2004, 10:29 PM
|
#7
|
Member
Registered: Jul 2004
Posts: 35
Original Poster
Rep:
|
then how to sign an applet?
|
|
|
07-28-2004, 01:32 AM
|
#8
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,795
|
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.
|
|
|
07-28-2004, 03:41 AM
|
#9
|
Member
Registered: Jul 2004
Posts: 35
Original Poster
Rep:
|
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 12:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|