How to make my applet run in eclipse browser..?

I wrote an applet and it works fine when it is run as an applet in eclipse galileo.I need to embed it in a web page.I have searched this forum but unable to find adequate information.It is also not reporting any errors.Html file looks as below
<html>
<head>
<title>Echo Applet</title>
</head>
<body><h1>This is an example of applet</h1>
<applet code=com.mypackage.EchoApplet.class width="400" height="400"></applet>
</body>
</html>Directory structure is as below
MyFirstApplet
       ->Java Resources:src
             ->com.mypackage
                      ->EchoApplet.java
             ->Libraries
      ->WebContent
            ->META-IMF
                      ->MANIFEST.MF
            ->WEB-INF  
                      ->lib
                      ->web.xml
            ->MyFirstApplet.htmlConsole of html file shows as below
26 Aug, 2009 8:09:04 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
26 Aug, 2009 8:09:04 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2036 ms
26 Aug, 2009 8:09:04 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
26 Aug, 2009 8:09:04 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
26 Aug, 2009 8:09:04 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
26 Aug, 2009 8:09:06 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
26 Aug, 2009 8:09:06 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
26 Aug, 2009 8:09:06 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8085
26 Aug, 2009 8:09:06 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/53  config=null
26 Aug, 2009 8:09:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1992 msany clue of where i might have gone wrong??Thanks in advance..!

hello,
the very first thing is the html console always look the one which you have posted here.it tells that server is started.
directory structure is also ok.
wi think the problem lies in the html file.After defining applet class you have to specify the jar file of your appletin the mannerarchive = "yourapplet.jar" have you any libraries with your applet? if yes then you have to include it in archive information
i would like to know when you run this application does internet explorer opens if yes then can you tell me the error it is giving

Similar Messages

  • How to make a JApplet run in a Browser

    HI ALL:
    Can anyone tell me how to make a JApplet run in a IE.
    I am using JComponents and Visibroker for JAVA ORB for connecting to another ORB's which would in-turn connect to a C++ Server and finally to the SQL Server.
    I am getting a NoclassFoundException whenever I am running my JApplet.
    My code is >>
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    <html>
    <head>
    <meta http-equiv="Content-type" Content="text/html;charset=iso-8859-1">
    <title>
    ORB ISSUE TRACKING SYSTEM
    </title>
    </head>
    <body>
    <Applet
         CODE="file://D:/IssueTrackingSystem/IssueTrackingSystem.class"
         Width=700
         Height=700
         Align=middle
    >
    <param name="CABBASE" value="IssueTest.cab">
    </Applet>
    </Body>
    </Html>
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    The Cabase file is a winzip file having all the ORB's compliant classes and my source classes to interact with the ORB Server.
    Help is urgent.
    Regards
    Ritesh

    I have been having exactly the same problems but I was using JDK 1.2.
    I discovred the problem could be resolved by using the Plug-in on navigaor or IE and bingo it was perfect.
    I also discovered that using the AppletViwer would allow me to see the applet. Then I upgraded to JDK1.3 or 2 or whatever it is and nothing.
    I recompiled the classes using the !.3 still nothing. The applet vewer don't work and the plug in don't work.
    I tried to recompile using the oldjavac ( I assume 1.2) and nothing I do will make this JApplet run. Ordinary a�pplets are OK. Applications with swing are OK, but JAPPLets are dead
    I have come to the conclusion SUN has screwed up big time and are frantically scrabbling about looking for a fix. I have reveert to javascript/DHTML as this is both consistent and stable and for considerably less effort and aggravation you can get 90% of the functioonality.

  • How to make a job run on a appointed node

    I have a problem. The database is Oracle 10g, RAC, two nodes
    There are some job which run on everyday night. Now, something happened, the job run on Node A can't work as normal, but if run on node B, It will work well.
    so I just want to submit the jobs on Node B, I submited the jobs on Node B, but the jobs always run on Node A.
    I want to know how to make a job run on a appointed node.

    the Job just transfer some procedure to add partitions for some table, to merge the records from some tables to one table and so on.
    the problem is when the job run on Node A, it is very very slow, the procedure would run hours and not success end, but if on Node B it will successfully end in seconds.
    restart the Node A would be a way for the problem, but may it will leave a hidden trouble. I want save the scene to find out the problem
    so can you help me

  • How to make a loop run for specific period of time ?

    hello !
    i'm new to labview and could'nt found how to make a loop run for 2 sec for example, and then to exit.
    Solved!
    Go to Solution.

    Hi Hookso,
    You can do it using the different loops like While loop and For Loop. Roderic has already stated how to do it using a for loop. I have illustrated in the attached vi how to do it using a while loop and Elapsed Time function. Take a look.
    Regards,
    Nitzz
    (Give kudos to good Answers and Mark it as a Solution if your problem is Solved) 
    Attachments:
    Untitled 2.vi ‏36 KB

  • How to make tomcat still running after reboot

    hi all,
    i want ask about how to make tomcat still running after our computer reboot.
    so our server still can serve the the request without we start manualy the tomcat.
    please replies
    thank's before

    *nix or win32 or other?                                                                                                                                                                                                                                           

  • How to make another applet?

    Can somebody teach me how to make another applet besides the normal one the tutorial taught me?

    Your question is a litte unprecise. Just read on in the tutorial. When you finishd reading (and understanding) "Learning the Java Language" or when you dont understand something in the tutorial then you could ask again.

  • How to make Attribute Change run alignment & Hierarchy changes in Aggregat

    Hello
    I want to understand that How to make Attribute Change run alignment & Hierarchy changes in Aggregate?
    I posted previously the same question but there were not good answers and i was not able to understand clearly .....
    If there is Process chain XXY which makes Attribute change run for Master Data 0SPELLING ?
    Now there is Aggregate TRT which includes :
    0SPELLING , Fiscal Period , Purchase Product, Purchase Category ?
    Now pls answer following question ?
    1) Does the Process Chain XXY which makes only attribute change run alignment for 0SPELLING , Will this process chain automatically do the Change run alignment for 0SPELLING in Aggregate TRT ? YES or NO
    2) If Yes, then we are just suppose to do Roll up for Aggregate TRT after Process chian XXY completes and finish job ?
    3) If No, then what steps are suppose to be DONE so as to make sure that Aggregate TRT has new values and perfect values for 0SPELLING ?
    Please answer and coorect if i have any wrong question....

    for e.g.
    u have 0spelling whicha has attributes x,y and z on day 1 with 10 records
    so do ur aggregates on day1 with same values
    now on day2 u had new values of attributes y,z,s,d and new hierarchies and so u add new records
    with data load u will load the data with version M of modified and is not available for reporting
    If u do attribute change run then this modified version is activated to A i.e. active version .
    It will also do the change run alignment for Aggregate for new attribute values and new hierarchy values for aggregate.
    now in order for this data to be available for reporting u will need to do the roll up of aggregate.....
    if u roll up aggregate before attribute change run , new data is not avaialable for reporting
    if u roll up aggregate after attribute change run, then data is available for reporting
    if u dont roll up aggregate eventhough new data is in dataprovider, still new data will not be available for reporting.
    this is how it works

  • How to make Attribute Change run alignment & Hierarchy changes in Aggregate

    Hello
    I want to understand that How to make Attribute Change run alignment & Hierarchy changes in Aggregate?
    I posted previously the same question but there were not good answers and i was not able to understand clearly .....
    If there is Process chain XXY which makes Attribute change run for Master Data   0SPELLING ?
    Now there is Aggregate TRT which includes :
    0SPELLING , Fiscal Period , Purchase Product, Purchase Category ?
    Now pls answer following question ?
    1) Does the Process Chain XXY which makes only attribute change run alignment for 0SPELLING ,   Will this process chain automatically do the Change run alignment for 0SPELLING in Aggregate TRT ?         YES or NO
    2)  If Yes, then we are just suppose to do Roll up for Aggregate TRT after Process chian XXY  completes and finish job ?
    3) If No, then what steps are suppose to be DONE so as to make sure that  Aggregate TRT has new values and perfect values for  0SPELLING ?
    Please answer and coorect if i have any wrong question....

    for e.g.
    u have 0spelling whicha has attributes x,y and z on day 1 with 10 records
    so do ur aggregates on day1 with same values
    now on day2 u had new values of attributes y,z,s,d and new hierarchies and so u add new records
    with data load u will load the data with version M of modified and is not available for reporting
    If u do attribute change run then this modified version is activated to A i.e. active version .
    It will also do the change run alignment for Aggregate for new attribute values and new hierarchy values for aggregate.
    now in order for this data to be available for reporting u will need to do the roll up of aggregate.....
    if u roll up aggregate before attribute change run , new data is not avaialable for reporting
    if u roll up aggregate after attribute change run, then data is available for reporting
    if u dont roll up aggregate eventhough new data is in dataprovider, still new data will not be available for reporting.
    this is how it works

  • How to make keynote presentation run automatically

    how to make keynote presentation run automatically

    Keynote can enter play mode when the file is opened:
    Inspector > Document > Automatically play on opening

  • How to make mac desktop run faster . It is starting to freeze up in Safari sometimes.

    How to make IMAC desktop run faster.

    Mavericks is the Operating System, while you could call it a program it's the OS. We need to know:
    what year iMac you have including the amount of RAM installed, the capacity of the internal HD and how much is stored on it and under what conditions the computer runs slowly. Please CAREFULLY read Help us to help you on these forums

  • How to make this example run on IE ?

    for example below :
    * LunarPhasesRB.java requires the following files:
    *    images/image0.jpg
    *    images/image1.jpg
    *    images/image2.jpg
    *    images/image3.jpg
    *    images/image4.jpg
    *    images/image5.jpg
    *    images/image6.jpg
    *    images/image7.jpg
    * It is a modified version of LunarPhases.java that
    * uses radio buttons instead of a combo box.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.URL;
    public class LunarPhasesRB implements ActionListener {
        final static int NUM_IMAGES = 8;
        final static int START_INDEX = 3;
        ImageIcon[] images = new ImageIcon[NUM_IMAGES];
        JPanel mainPanel, selectPanel, displayPanel;
        JLabel phaseIconLabel = null;
        public LunarPhasesRB() {
            //Create the phase selection and display panels.
            selectPanel = new JPanel();
            displayPanel = new JPanel();
            //Add various widgets to the sub panels.
            addWidgets();
            //Create the main panel to contain the two sub panels.
            mainPanel = new JPanel();
            mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
            mainPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            //Add the select and display panels to the main panel.
            mainPanel.add(selectPanel);
            mainPanel.add(displayPanel);
         * Get the images and set up the widgets.
        private void addWidgets() {
             * Create a label for displaying the moon phase images and
             * put a border around it.
            phaseIconLabel = new JLabel();
            phaseIconLabel.setHorizontalAlignment(JLabel.CENTER);
            phaseIconLabel.setVerticalAlignment(JLabel.CENTER);
            phaseIconLabel.setVerticalTextPosition(JLabel.CENTER);
            phaseIconLabel.setHorizontalTextPosition(JLabel.CENTER);
            phaseIconLabel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createLoweredBevelBorder(),
                BorderFactory.createEmptyBorder(5,5,5,5)));
            phaseIconLabel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createEmptyBorder(0,0,10,0),
                phaseIconLabel.getBorder()));
         //Create radio buttons with lunar phase choices.
         JRadioButton newButton = new JRadioButton("New");
         newButton.setActionCommand("0");
         newButton.setSelected(true);
         JRadioButton waxingCrescentButton =  new JRadioButton("Waxing Crescent");
         waxingCrescentButton.setActionCommand("1");
         JRadioButton firstQuarterButton = new JRadioButton("First Quarter");
         firstQuarterButton.setActionCommand("2");
         JRadioButton waxingGibbousButton = new JRadioButton("Waxing Gibbous");
         waxingGibbousButton.setActionCommand("3");
         JRadioButton fullButton = new JRadioButton("Full");
         fullButton.setActionCommand("4");
         JRadioButton waningGibbousButton = new JRadioButton("Waning Gibbous");
         waningGibbousButton.setActionCommand("5");
         JRadioButton thirdQuarterButton = new JRadioButton("Third Quarter");
         thirdQuarterButton.setActionCommand("6");
         JRadioButton waningCrescentButton = new JRadioButton("Waning Crescent");
         waningCrescentButton.setActionCommand("7");
         // Create a button group and add the radio buttons.
         ButtonGroup group = new ButtonGroup();
         group.add(newButton);
         group.add(waxingCrescentButton);
         group.add(firstQuarterButton);
         group.add(waxingGibbousButton);
         group.add(fullButton);
         group.add(waningGibbousButton);
         group.add(thirdQuarterButton);
         group.add(waningCrescentButton);
            // Display the first image.
            phaseIconLabel.setIcon(new ImageIcon("images/image0.jpg"));
            phaseIconLabel.setText("");
           //Make the radio buttons appear in a center-aligned column.
            selectPanel.setLayout(new BoxLayout(selectPanel, BoxLayout.PAGE_AXIS));
           selectPanel.setAlignmentX(Component.CENTER_ALIGNMENT);
            //Add a border around the select panel.
            selectPanel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createTitledBorder("Select Phase"),
                BorderFactory.createEmptyBorder(5,5,5,5)));
            //Add a border around the display panel.
            displayPanel.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createTitledBorder("Display Phase"),
                BorderFactory.createEmptyBorder(5,5,5,5)));
            //Add image and moon phases radio buttons to select panel.
            displayPanel.add(phaseIconLabel);
           selectPanel.add(newButton);
           selectPanel.add(waxingCrescentButton);
           selectPanel.add(firstQuarterButton);
           selectPanel.add(waxingGibbousButton);
           selectPanel.add(fullButton);
           selectPanel.add(waningGibbousButton);
           selectPanel.add(thirdQuarterButton);
           selectPanel.add(waningCrescentButton);
            //Listen to events from the radio buttons.
           newButton.addActionListener(this);
           waxingCrescentButton.addActionListener(this);
           firstQuarterButton.addActionListener(this);
           waxingGibbousButton.addActionListener(this);
           fullButton.addActionListener(this);
           waningGibbousButton.addActionListener(this);
           thirdQuarterButton.addActionListener(this);
           waningCrescentButton.addActionListener(this);
        // Load the selected image (lazy image loading).
        public void actionPerformed(ActionEvent event) {
           phaseIconLabel.setIcon(new ImageIcon("images/image"
                                  + event.getActionCommand()
                                  + ".jpg"));
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create a new instance of LunarPhasesRB.
            LunarPhasesRB phases = new LunarPhasesRB();
            //Create and set up the window.
            JFrame lunarPhasesFrame = new JFrame("Lunar Phases");
            lunarPhasesFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            lunarPhasesFrame.setContentPane(phases.mainPanel);
            //Display the window.
            lunarPhasesFrame.pack();
            lunarPhasesFrame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }i know run above example on command line while i don't how to make run on IE ?
    because mostly people are used to look at sth on IE ?
    so i think it's important to runs javacode on IE .
    who can help me ?
    thanks!

    If you want it to execute inside a web browser then you need to convert it to an applet. Alternatively you can investigate Java Web Start.

  • How to make an applet the default one ?

    Hi everybody,
    I have a NXP JCOP41 72k JavaCard, Eclipse 3.2 with jcoptools 3.1.2, jre 1.5.
    I have read in a lot of places that it was possible to make a specific applet the default one, meaning that my applet will reply to APDUs as soon as it is powered up... I don't want to go through the Card Manager and select my applet everytime it is power up.
    How can you do this, and at what level will I have to do it ?
    This is what I already tried:
    1- I have read through the GlobalPlatform specification, and they say that it is possible to put a certain flag on a application in order to make it default. So this is what I tried... I had my card in the OP_READY status mode, and I tried to put the application in the 'LOCKED' mode in order to make it the default application using the set-status APDU command from GlobalPlatform. It did not worked.
    2- After that, I tried something else. I put the card in the SECURED status mode, and I tried to put the application in the 'LOCKED' mode, but then I think I locked the card. I was not able to authenticate to the card anymore using the init-update command and the 255 keyset. How come the default keyset is not available anymore when you are in SECURED mode ???
    Again, how do you make an applet the default one ???
    Thanks a lot for answering,
    Richard Leroy

    Hi everyone,
    I finally have found the answer to my question, and felt important to let everybody know it ...
    In order to make an applet the default one, you need to upload it and install it with specific privileges...
    With gpshell, you need to add "-priv 4" to the "install" line in order to activate the default option. This will enable a specific flag for the applet.
    Once this is done, you will have to select the applet with the appropriate APDU, and your applet will be the default one.
    You can also get more informations on globalplatform spec 2.1.1 on page 107.
    Richard

  • How to make my applet generally available?

    Hello
    I have written a HTML/javascript website which is ok except that a lengthy calculation in the javascript takes an excessive time to complete. So I have recoded the lengthy calculation as a java applet which is called from javascript by
    return = document.<classname>.<java method name>(param)
    This was done using the J2SE Development Kit 5.0 Update 4 and J2SE Runtime Environment 5.0 Update 4. My PC is Windows XP and I use Internet Explorer 6.0.
    All screen handling is still done by HTML/javascript, the java applet has no i/o apart from receiving a parameter from js and returning a value to js. This all worked fine locally, so I copied all files to my ISP's server (including the java class file) and it still works fine on my PC when accessed from the server. HOWEVER when any other PC enters the website and attempts to perform the calculation they just get an Error on Page message from the javascript link to the java applet. What do I have to do to make the application run on other people's PC's as it does on mine? I have set permissions on the class file to 755. Do I need a policy file? Do I need to sign my applet? (whatever that means).
    Thanks
    Bryn Crossland

    For a start, very few people will have Java 1.5 installed and set up for their browser. I think applets are great (if they are doing something useful), but these days you cant depend any everyone having a JVM installed for their browser, especially since microsoft ripped Java out of XP.
    Maybe you could do the "lengthy calculcation" on the server.

  • How to make an applet load user-defined package?

    How to have an applet load user-defined package?
    I have packages in their own directories, and the applet compiles and links with them, by use of CLASSPATH env variable. But when it comes time to run, it ignores that and does not know where the classes (in the packages) are.
    If I don't use packages and put all code in one directory, runs fine. If I use an application, I can link with and load my packages.
    I know applets can't use things like CLASSPATH for security reasons, but still, they should be able to be compiled out of several packages, why do I have to put all code together??

    OK, for reference for future newbies, here's the answer:
    use CODEBASE attribute in your html file (if on Windows server, don't use drive letter but relative path to .html file, Unix style, and put all your .class files beneath that, for example, in your .html file
    <applet
    CODEBASE="..\class
    and then have package bar Bar.class file, in ..\class\bar

  • How to make my iMac run faster

    Hi there,
    I have a 2011 iMac which is hardly used.  I have upgraded the ram to 12 GB when I purchased it.  However, it takes ages for the computer to run, especially during start-up.
    Any thoughts on how to make it run faster?
    Cheers,
    Gary

    Make sure you installed the correct RAM. Installing the wrong type will cause the system to become unstable and slow.

Maybe you are looking for