Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

HTML code for Java Application

I need to add a Java Application to a web page.  In the past, I used

<applet code ="MyApplet.class" width = "360" height = "360"></applet>

in the html file to add a Java Applet to a web page.

What html code is used to add a Java Application to a web page?
0
CharleneS77
Asked:
CharleneS77
2 Solutions
 
ZylochCommented:
You cannot add a Java application to a webpage. The nature of an application is that it is standalone. If you need something on a webpage, then you need to make an applet. Usually, however, it is simple to convert applications to applets:

    http://www.google.com/search?q=converting%20application%20to%20applet
0
 
Ajay-SinghCommented:
> I need to add a Java Application to a web page

You need to convert that application to applet. Best way to ship java application is to use java web start (http://java.sun.com/products/javawebstart/)
0
 
Mayank SAssociate Director - Product EngineeringCommented:
If this is an academic question - the answer to be told to your teacher is simply "no, this cannot be done", as already told.
0
 
CharleneS77Author Commented:
>>>>Best way to ship java application is to use java web start

Java Web Start is included in the JRE.  I'm not sure I understand what you mean?  How do you use Java Web Start to view the application from a web page?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now