LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 07-27-2004, 04:03 AM   #1
nickhx
Member
 
Registered: Jul 2004
Posts: 35

Rep: Reputation: 15
how to implant .exe in java applet?


I want to implant an .exe file into a java applet program,
how to implement???
 
Old 07-27-2004, 08:12 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
You can't.
 
Old 07-27-2004, 09:07 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Nickhx, what do you mean by implant ?
 
Old 07-27-2004, 02:46 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Whatever you mean, you can't run native code in an applet without getting around the security restrictions.
 
Old 07-27-2004, 03:14 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 07-27-2004, 07:55 PM   #6
nickhx
Member
 
Registered: Jul 2004
Posts: 35

Original Poster
Rep: Reputation: 15
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.
 
Old 07-27-2004, 10:29 PM   #7
nickhx
Member
 
Registered: Jul 2004
Posts: 35

Original Poster
Rep: Reputation: 15
then how to sign an applet?
 
Old 07-28-2004, 01:32 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 07-28-2004, 03:41 AM   #9
nickhx
Member
 
Registered: Jul 2004
Posts: 35

Original Poster
Rep: Reputation: 15
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
need some help with a java applet gulo General 1 07-14-2005 02:52 PM
Java Applet ekl_n Programming 2 02-26-2005 11:48 AM
Java applet error: "Applet Failed" nro Programming 1 08-28-2004 05:52 PM
Netscape and Java applet asianboi2k Linux - Software 2 10-17-2003 08:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration