Calling Java application from applet

Can I call a Java application (or native) from an applet?  If so, how is it done?  This would be in a windows 95/98/NT environment.  
EbrooksAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Ravindra76Connect With a Mentor Commented:
Hi ,

From: vladi21
 Date: Tuesday, November 16 1999 - 08:46PM CST  
 
http://java.sun.com/docs/books/tutorial/applet/overview/security.html 

Code signing resources:

Creating Signed, Persistent Java Applets
http://www.ddj.com/articles/1999/9902/9902h/9902h.htm 

http://www.javasoft.com/products/jdk/1.1/docs/guide/security/index.html 
http://java.sun.com/security/signExample/index.html 
http://www.verisign.com/library/guide/developer/signing/index.html 
http://www.suitable.com/Doc_CodeSigning.shtml 
http://www.securingjava.com/appdx-c/ 
http://tactika.com/realhome/javaht/java-s1.html 
http://www.fastlane.net/~tlandry/javafaq.txt 

MS:
http://www.thawte.com/support/developer/ms.html 
http://www.developer.com/journal/techworkshop/curr.html 
http://www.verisign.com/library/guide/developer/authenticode/index.html 
http://msdn.microsoft.com/library/psdk/crypto/cryptotools_6cdv.htm 
http://msdn.microsoft.com/library/psdk/crypto/portaltool_3u3p.htm 

NN:
http://developer.netscape.com/docs/manuals/signedobj/ 
http://developer.netscape.com/docs/manuals/signedobj/javadoc/Package-netscape_security.html 
http://developer.netscape.com/docs/manuals/signedobj/targets/contents.htm 
http://developer.netscape.com/support/faqs/objfaq.html 
http://developer.netscape.com/docs/manuals/deploymt/4_5PREFS.HTM 

NN: Bypass the need for a certificate
Netscape provides a way to accept a codebase as trusted (then a certificate is not needed). This can be useful during development or in a private Intranet. In the Netscape Users directory, there is a file called prefs.js. Adding the line user_pref("signed.applets.codebase_principal_support", true);

will enable JAR file without a certificate to request privileges on your machine. If you agree, it will be possible for an Applet to lauch a program, write a file on your hard disk or print on the printer. You will still have to ask for privileges in your program using the Netscape capabilites classes.
Another way is to lower general security setting to more allow more freedom when running applets locally. Add or modify the following entries in the prefs.js: user_pref("unsigned.applets.low_security_for_local_classes", true);
user_pref("signed.applets.local_classes_have_30_powers", true);
user_pref("signed.applets.low_security_for_local_classes", true);
user_pref("signed.applets.verbose_security_exception", true);


Then you don't need to asked for privileges for local classes.
When adding or modifying the file prefs.js, Netscape must not be running because your modification will be overwritten. So shut down Netscape, edit the prefs.js and then restart Netscape.


Running signed applets with the JavaTM Plug-in
http://www.suitable.com/CodeSigningSignPlug.shtml 
http://java.sun.com/security/signExample/index.html 

http://www.javasoft.com/products/jdk/1.1/docs/guide/security/index.html 

DEPLOYING RSA SIGNED APPLETS IN JAVA TM PLUG-IN 1.2.2
http://java.sun.com/products/plugin/1.2/docs/nsobjsigning.html 
http://java.sun.com/docs/books/tutorial/security1.2/toolsign/index.html 

 Best of luck
 
0
 
dvd99Commented:
The short simple answer is No, Sorry but because of applet and browser security applets can not acess system files (Certian files including .exe)
The only way I can think of to do this would be to sign a applet.
Or make a signed .jar file.

Hope this helps !
I'm sorry i don't know how to sign applets

0
 
TikshyaCommented:
Hi,

What dvd99 said is very true. You can use trusted applets for this purpose.
For this you can sign the applet or release the restrictions on the site from where you are running the applet.
(1)You can release the restrictions on any http site in IE thru' Tools -> Internet options -> security.
(2)However, if you are looking for professional solution, signing is better approach. You can obtain certificate from agency such as Verisign. They will provide a certificate which confirms you genuinity and also some info. about you. The client will have to download your certificate and then he can access the signed applets/jars.

You will face several implementation problems if you are seriously looking for this option. Get back to me if you have any issues.

Regards
0
 
EbrooksAuthor Commented:
Found a comment with a more complete answer.
0
 
EbrooksAuthor Commented:
Thanks for your help
0
All Courses

From novice to tech pro — start learning today.