"how do you run java applet in JDK.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: "how do you run java applet in JDK.

  1. #1
    kunthy Guest

    "how do you run java applet in JDK.



    Hi, my name is kunthy. I am wondering how do you run java applet in JDK 1.8.
    please let me know

    thanks


  2. #2
    Carlos Guest

    Re: "how do you run java applet in JDK.


    "kunthy" <kkunthy@rocketmail.com> wrote:
    >
    >
    >Hi, my name is kunthy. I am wondering how do you run java applet in JDK

    1.8.
    >please let me know
    >
    >thanks
    >


    Hi kunthy, you have to use the appletviewer tool to look your applet running.
    If you want to view your applet in the web you have to put in your html code
    the following label:

    <APPLET CODE= "Your_Applet.class" HEIGHT=height WIDTH=width>
    if your browser canīt support applets, you will see an applet!!
    </APPLET>

    ...Carlos

  3. #3
    omar Guest

    Re: "how do you run java applet in JDK.


    Hi Kunthy,
    for running applet you ca use a browser like netscape navigator 4.7 or later
    because it must understand applets. or the other alternative is to use the
    the appletviewer you find it with the jdk in the jdk1.X\bin directory.
    but you must follow those steps:
    1. write your applet
    2.compile it
    3.write an html file like that :
    <html>
    <applet code=yourapplet width=200 heght=300></applet>
    </html>
    4.you give it a name like first.html
    5.you run the appletviewer like that:
    appletviewer first.html

    good luck.
    Bounah Omar from Algeria

    "kunthy" <kkunthy@rocketmail.com> wrote:
    >
    >
    >Hi, my name is kunthy. I am wondering how do you run java applet in JDK

    1.8.
    >please let me know
    >
    >thanks
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center