The Artima Developer Community
Sponsored Link

Java Answers Forum
Execute the applet without java plug-in

3 replies on 1 page. Most recent reply: Jul 30, 2003 3:33 AM by Adam Duffy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Mohamed Riyaz

Posts: 7
Nickname: riyaz
Registered: Jul, 2003

Execute the applet without java plug-in Posted: Jul 28, 2003 1:14 AM
Reply to this message Reply
Advertisement
Hi,

Is it possible execute applet in client (non java plug-in)browsers without using HtmlCoverter utility. because I want to display it in home page. How do I do this?

regards
riyaz


Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Execute the applet without java plug-in Posted: Jul 28, 2003 6:06 AM
Reply to this message Reply
The HtmlConverter utility in question is, I believe, this one

http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/html_converter.html

Taken from the guide is the following quote

"However, an APPLET is rendered by the browser and there is no easy way to interrupt the browser and force it to use Sun's Java Runtime Environment (JRE) to run the applet. To force the browser to do so, however, you may use a special Java Plug-in tagging structure—involving the OBJECT or EMBED tag or both, as described below—in place of the usual APPLET tag in an your HTML pages. This will cause the browser to launch Java Plug-in, which will then run the applet using Sun's JRE."

If your applet requires the use of the JRE plug-in (necessary if you're using Swing etc) then you need to have the applet in a HTML page in tags generated by HtmlConverter.

If your applet does not require the JRE plug-in then you don't need HtmlConverter. Just use the simple <applet> tags.

Adam

Mohamed Riyaz

Posts: 7
Nickname: riyaz
Registered: Jul, 2003

Re: Execute the applet without java plug-in Posted: Jul 28, 2003 11:09 PM
Reply to this message Reply
Thanks,

In my applet, i didn't use swing features.I want to display it in client browser(Microsoft VM enabled machine).How do I implement without JRE or JRE plugin support.Plz reply.

riyaz

Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Execute the applet without java plug-in Posted: Jul 30, 2003 3:33 AM
Reply to this message Reply
If your applet does not require the features supplied by the JRE then all you need to do is use the simple form of the HTML <applet> tag as detailed at the following link

http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html

Simply try your applet in this format. If the applet will not run then post your error here and you'll be able to get more specific advice.

Adam

Flat View: This topic has 3 replies on 1 page
Topic: buttons help Previous Topic   Next Topic Topic: Problems with my code

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use