Which command i use to run SWING APPLET

Hi friends,
i m a new in swing technology i got and problem when i run swing applet .
i make a file and complie it with -deprecation it work and make a .class file but how can i run this applet [i use jview command , appletviewer command but it can't work]
i hope that someone hellp me.

Just as a matter of interest and i know its a stupid question, but did you create a html file to access the class file/jar
Here is some example code of an applet html page
Hope it helps...
Also have you put it in a Jar file?
<html>
<head>
<title>(Whatever title youu want)</title>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000">
<TR>
<APPLET CODE = "ClassName.class" ARCHIVE = "JarName.jar" WIDTH = "800" HEIGHT = "600"></XMP>
<PARAM NAME = CODE VALUE = "ClassName.class" >
<PARAM NAME = ARCHIVE VALUE = "JarName.jar" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<dont worry about this>(they just variables for my applet)
<PARAM NAME = SERVER_IP VALUE ="192.1.1.209">
<PARAM NAME = SERVER_PORT VALUE =8701>
<PARAM NAME = DEBUG VALUE =true>
<PARAM NAME = REFRESH VALUE =10000>
<PARAM NAME = TAIL_REFRESH VALUE =2500>
<PARAM NAME = MESSAGE_TIMEOUT VALUE =60>
</dont worry about this>
</APPLET>
</body>
</html>

Similar Messages

  • Run swing applet without installed plug-in

    Is any possible way to run swing applet without installed java plug-in? Does exist way how to load swing classes from server?

    Is any possible way to run swing applet without
    installed java plug-in? Does exist way how to load
    swing classes from server?It is impossible to run a swing applet without the plug-in.
    There may be a solution : include the swing library in your applet,
    so you don't need the plugin anymore (personnaly i prefer having
    the plugin downloaded once and the use it as needed).
    For the load from a server you will need to be more specific, but
    don't forget : the applet don't run on the server, so it won't request
    Swing classes from the server.

  • How to run swing applets in a browser??

    I understand it is a typical question and there lot of articles on it. I tried but am confused. I installed JRE1.3 which has java plug-in along with it which supports swing applets in a browser.Once i got that plug in i also downloaded html converter but am confused how should i run my swing applet.Can anyone please explain in simple steps as to how to achieve this objective..Thanks much in advance..an example would be of real big help
    Thanks

    The below links will help you.
    http://java.sun.com/products/plugin//1.3/docs/index.docs.html
    http://java.sun.com/products/plugin/1.3/plugin.faq.html

  • How to run swing applets???

    I already posed this question yesterday but i got no replies.please help me out.
    I understand it is a typical question and there lot of articles on it. I tried but am confused. I installed JRE1.3 which has java plug-in along with it which supports swing applets in a browser.Once i got that plug in i also downloaded html converter but am confused how should i run my swing applet.Can anyone please explain in simple steps as to how to achieve this objective..Thanks much in advance..an example would be of real big help
    Thanks

    u need to convert ur html-page with the applet-tags with the htmlconverter.

  • Which interface to use to run 2 extra screens with a macbook pro 13"

    Hi All
    Just bought MBP 13" (non retina) and would like to hear about some external monitor solutions in particular which interfaces are used.
    Is the USB3 slot best to use with DisplayLink kit or the Thunderbolt and DisplayPort stuff.
    My need is to run LogicPro 9 over 3 windows as this will improve my productivity, had been used to just MB White Screen and 1 external VGA Monitor.
    Any suggestions would be most welcome...
    In anticipation
    Shiningheart

    Hello, Carl. 
    Thank you for visiting Apple Support Communities.
    Here is the best resource I could find that gives the best option. 
    About Mini DisplayPort to HDMI adapters
    http://support.apple.com/kb/HT4241
    Cheers,
    Jason H. 

  • Running Swing Applet

    After running through HTML converter 1.3, my applet is running in Internet explorer but doe NOT run in Netscape Navigator.
    I used 'extension template' while converting the Applet.
    When I am running in Netscape Navigator, I am getting 'Applet Not Initialized' error message even though I have explicitly written the 'init' method.
    Does ANYONE have any idea? Could you help me??
    I am posting my code here :
    HTML file :
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    <head>
    <title>My Applets</title>
    </head>
    <body>
    <!--"CONVERTED_APPLET"-->
    <!-- CONVERTER VERSION 1.3 -->
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "328" HEIGHT = "224" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = CODE VALUE = "WelcomeApplet.class" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="scriptable" VALUE="false">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3" CODE = "WelcomeApplet.class" WIDTH = "328" HEIGHT = "224" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!--
    <APPLET CODE = "WelcomeApplet.class" WIDTH = "328" HEIGHT = "224">
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->
    </body>
    </html>
    MY JAVA FILE :
    import java.awt.*;
    import javax.swing.*;
    public class WelcomeApplet extends JApplet
    public void init() {
    public void paint (Graphics g)
    super.paint(g);
    g.drawString( "Welcome to Java Programming" , 25, 25);
    Thank You in advance.

    Hi,
    I'm not too sure what is happening with your setup - but I can say your applet & HTML all work fine for me using 1.3.1_01a/1.4 on Netscape 4.08/6.2.1 and IE 5.5 on WindowsNT 4 sp6.
    Maybe you could post the JRE you are using and also the browser version?
    Regards,
    Matt
    Java Developer Technical Support
    Sun Microsystems

  • An old Question:Is it possible run swing applet in IE?

    Pls tell me what use of Swing if it only can be run in IDE.
    Thank you very much.

    You can use a plugin - see the following which explains all:
    http://java.sun.com/products/jfc/tsc/articles/plugin/

  • Can't load Facebook on Firefox . Suspect malware/trojan. Downloaded 3 free scan/remove programs, all end in .exe and my Mac wants to know which "Application" to use to run them. Help?!

    Firefox 3.6.19
    Mac OS 10.4.11
    attempted the''' 3 free options''' listed here
    http://support.mozilla.com/en-US/kb/Firefox%20never%20finishes%20loading%20certain%20websites?s=cannot+load+page&as=s
    when I click on any of them, they don't just open/run. they want to know what application to use to open them. do these work for my Mac, or is there another free alternative?
    Here's what the Mozilla page above said
    Firefox never finishes loading certain websites
    If specific websites (not all) start to load, but never finish (i.e. The Firefox activity indicator may spin for several minutes, or the status bar may show "Done" on a blank page), it is either because of a software trojan called Vundo, or a file being in the wrong format.
    Table of Contents
    * Vundo trojan variant
    o Search for malware
    o More help
    * JavaScript file format
    Vundo trojan variant
    A variant of the Vundo trojan is known to cause Firefox to have problems loading certain high-traffic sites, including Google, Yahoo, MySpace, Facebook, and more.
    Search for malware
    Not all variants of the Vundo trojan can be detected or removed by malware scanners. However, you should scan your computer for infections first:
    * Run the Microsoft Malicious Software Removal Tool.
    * Run a full system virus scan with something other than your normal program:
    o A '''free solution online is Kaspersky's online scanner'''.
    * Run a full system spyware scan with something other than your normal program:
    o MalwareBytes' Anti-Malware
    o '''SUPERAntiSpyware''' is known to detect many variants of Vundo, and has a free version.
    o '''Spybot S&D''' is a well-known free solution.
    More help
    If you're having a problem loading sites other than the one described above, see the Error loading websites article to see if it addresses your problem. You can also check your Internet security software - resetting permissions for Firefox can often fix similar problems.
    There can be other causes of the symptoms described above. Before attempting these instructions, try the methods described in the Basic Troubleshooting article to see if they will address your problem.
    If you still have problems after scanning, you may ask a support question.

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Which browser to use to run the RWB in PI 7.1

    Dear colleagues,
    Our PI systems runs on 7.1 version.
    With IE 8.0, the Alert Inbox works properly, but the other application (End-to-End Monitoring, Component Monitoring ...) does not work.
    With FireForx, the Alert Inbox does not displayed all data, but the other applications works properly.
    Which browser do you recommand to use ?
    Best regards
    SAPNetWeaver Admin

    Hi,
    It is recommended to use IE 6.
    For IE8.0 use compatible mode option. (Menu>tools->compatible view)
    Thanks,

  • Which command we use to check  root privileged users in solaris

    Hi,
    please tell me ,if i want to check the number of people using super user privilege in the sun solaris server .how we can find that ? ,is there any command to find that ?
    please reply me
    boby

    there is few ways to use root privileges
    - login as root or as user with UID 0
    - login as ordinary user and do su - . In this case check group ownership of su file and pam config
    - use sudo command - check sudo config file

  • Swing Applet won't run

    Hi,
    I am unable to run swing applets on my pc. When I view swing applets on this site in the tutorial section the applets run fine, but when I download them and try to run them locally I get a java.lang.ClassNotFoundException. All the files are compiled and in the correct directories.
    Any ideas?
    Thanks

    OK, I get your point, let me rephrase my question:
    I'm trying to run a java application,
    which does not have any syntactical errors since it compiles and runs on my development computer without any errors or warnings.
    The application is built in NetBeans IDE 5.0 (on a winXP) and uses components from the javax.swing package.
    On my other computer (winXP) I get ClassNotFoundExceptions on the swing classes.
    So I assume, I either don't have the swing classes on that computer,
    or I have them, but the java engine can't find them anyway.
    And now my new question:
    Is the javax.swing package not include in the "Java Runtime Environment Version 5.0 Update 8"?
    If it is not, where do I find them and how do I install them?
    It seems strange to have to install a development kit just to be able to run a java application.

  • Swing applet view problem in IE

    Hi,
    I am new to Java and have to develop a web enabled tool where the servlets in my Solaris-Tomcat web server is manipulating with data in an oracle database. The client code is on Swing Applet, which is to be opened in Internet Explorer 5.5 from Windows NT platform.
    In view of this, I have written a small swing applet and it is not opening in IE. I heard that I need to use HTML converter to run Swing applets in IE. But, Is it enough to download the HTML converter for Solaris and install it in the server and convert the html pages where <applet> tag is included? Or , do I need to install the HTML converter for windows to all the client machines?
    Please help. This is very urgent.
    Thanks in adance.

    You can use this html code :
    <html>
         <body>
              <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 695 HEIGHT = 525 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
                   <PARAM NAME = CODE VALUE = MyApplet >
                   <PARAM NAME = CODEBASE VALUE = "." >
                   <PARAM NAME = ARCHIVE VALUE = "MyApplet.jar" >
                   <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
                   <PARAM NAME="scriptable" VALUE="false">
              </OBJECT>
         </body>
    </html>
    replacing only the dimension, the code value and removing or modifying archive value.
    Don't modiy the classid. This code indicates to the browser to use the Sun Java VM instead of its own vm.
    I hope this helps,
    Denis

  • Oracle JDBC and Swing Applets

    Hi
    I'm trying yo connect to an oracle databse using the oracle thin driver
    in a Swing Applet deriving from JApplet class using a JTable .
    Note my browser is Swing enabled and i can view normal swing applets.
    But i get an error which says
    Oracle/jdbc/driver/oracel/driver not found
    But if i run this as an application instead of a swing applet it works
    Remember it's a Swing Applet not a normal Applet.and the oracle driver works in a normal application.this error occurs only when the oracle driver is used in a Swing Applet.
    any ideas?
    mail me at [email protected]
    '**********************Heres the code************************
    import java.sql.*;
    import java.lang.*;
    import java.awt.*;
    import java.applet.Applet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    <applet code =testdata.class width=300 height=300></applet>
    class databaseconnect{
    public Connection conn;
    public ResultSet rs;
    databaseconnect(){}
         public void connect(){
              try{
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());     
              conn = DriverManager.getConnection("jdbc:oracle:thin:@theserver:1521:dbase", "un", "pw");
              }catch(SQLException e) { }
         public ResultSet getdata(){
              try{
              Statement st = conn.createStatement();
              rs = st.executeQuery("select * from tt");
              }catch (SQLException e) { }
         return rs;
    class toggledata{
    static ResultSet rs;
    static String s,r;
    //public static void main(String args[]){
    databaseconnect data = new databaseconnect();
    public String makestr(){
         s = "1";
         r = "1";
         try{
         data.connect();
         rs = data.getdata();
              while(rs.next()){
                   s = s + "," + rs.getString(1);
                   r = r + " " + rs.getString(2);
         }catch (SQLException e) {}
         //System.out.println(s);
         //System.out.println(r);
    return s;
    public class testdata extends JApplet{
    int d,cont,y;
    String t;
    char n,m;
    int c;
    Object h;
    //public testdata(){
    public void init(){
         //super("My First Oracle Application");
         cont = 0;
         y=1;
         h = ",";
         //colstr e = new colstr();
         toggledata f = new toggledata();
         String rs = new String(f.makestr());
         Object [][] data = new Object [1][15];
         char chars [] = rs.toCharArray();
         for(int x=0; x<15; x++){
              data [0][cont] = new Integer(chars[x]);
              cont = cont + 1;
         String [] col ={"a","b","c","d","e","f","g","h","i","f","g","h","i","j","k"};
         final JTable table = new JTable(data, col);
         table.setPreferredScrollableViewportSize(new Dimension(500, 70));
         JScrollPane scrollPane = new JScrollPane(table);
         getContentPane().add(scrollPane, BorderLayout.CENTER);
    //public static void main(String args []){
    //     testdata g = new testdata();
    //     g.pack();
    //     g.setVisible(true);
    Thanks

    continued...
    I re-read your problem , your problem is as same as me.
    So, unzip classes12.zip oy folder /htdocs/ on your server
    , when this file is unziped it will create the necessary
    folders and files so your program will find the drivers
    classes and I think your problem is solved.
    Thanks Jamanir

  • Swing applet

    I've been trying to get my browser (Netscape 4.77
    on Windows NT) to run swing applets. I've got
    jre 1.3.1 installed and it said it got the plugin,
    but when i try to run the test applet at the url
    www.java.com/products/jfc/tsc/articles/getting_started/applet_test.html i get an error message complaining
    about class format errors and bad magic numbers.
    i've also tried to do the same on my linux system
    and had no success (although a different error)
    how do i get swing applets to work?

    It's frustrating...isn't it?
    I ran into the same problem and found out that the demo on their site was out of date. After I downloaded the tutorial from Sun, everything worked out ok. Try the link below for a download:
    http://java.sun.com/docs/books/tutorial/
    V.V.

  • Requirement is to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a windows service, which will be created by command: - net use z: \\servername\sharedfolder /persistent:yes

    Environment:
    OS:  Windows 7 32/64 bit, Windows 2008 Server 64
    bit/ Windows 2012 Server 64 bit
    Priority:
    - Critical
    Requirement: - Since
    the Windows Service is running under the Local System Account, we would like to emulate this same behaviour.
    Basically, we would like to run CMD.EXE under the Local System Account. So that we can map a network drive to be used by a service using following
    command
    net use z: \\servername\sharedfolder /persistent:yes.
    Already Attempt:
    We tried to launch the CMD.exe using the DOS Task Scheduler AT command.  Here’s a sample command:
    AT 10:36 /interactive cmd.exe
    But I received a warning that “due
    to security enhancements, this task will run at the time excepted but not interactively.”
    It turns out that this approach will work for XP, 2000 and Server 2003 but due to session isolation
    Interactive services no longer work on Windows 7, Windows Server 2008 and above.
      2.  We
    tried to create a secondary Windows Service via the Service Control (sc.exe) which merely launches CMD.exe.
    <Drive>:\sc create RunCMDAsLSA binpath= "cmd" type=own type=interact <Drive>:\sc
    start RunCMDAsLSA
    In this case the service fails to start and results it the following error message:
    FAILED 1053: The service did not respond to the start or control request in a timely fashion.
      3. One
    suggestion, we found to launch CMD.exe via a Scheduled Task, but
    it is not giving any option to launch CMD.exe in interactive mode; so that I can map network drive using net command.
      4. I read an article, which
    demonstrates the use of PSTools from SysInternals. I launched the command line and executed following command
    psexec -i -s cmd.exe
    PSTools worked fine, but It seems that in scope of Sysinternals Software License
    Terms. You may not "use the software for commercial software hosting services."
    Application will deploy on client, which will be like commercial,
    so we are not able to use PSTools.         
    Kindly assist us for achieving the requirement. We have tried all the ways, but nothing is working for us. Kindly suggest.
    I will be really thankful.

    Hi Sir,
    Nothing worked from above for us. You can see our remarks on posted query.
    That’s why, we posted on forum.
    And there will not be any vulnerability, because, if we will use "net
    use ..."
    in network domain; definitely,
    we will provide username and password of mapped drive system.
    And, that system, itself is given by client; so that, there must not be any vulnerability; they are ready to provide user name and password.
    We need a way; by which we can complete the requirement. Kindly assist.
    Regards,
    S. P. Singh

Maybe you are looking for

  • Has anyone tried to use Labview with VNC

    I am trying to use VNC viewer and Labview to remotely code/control labview application. Lots of right clicks dont show up on the VNC. I guess this happens only for Labview and not for other applications. Has anyone tried to use VNC before? is there a

  • Unusual start up problem - Zen Nomad freez

    Hi, dont know if anyone can help me. I have a Creative Zen Nomad and have not used it for about 5 months. Anyway, I decided today to see what MP3's I had left on it, and as the battery was flat I started recharging it. So, there I was waiting for it

  • HT4557 I am not enjoying the Apple TV as we can not connect our ipad or computer - even using the instructions above.......

    I have tried all the troubleshooting tips from the website and we still can not connect our ipad or mac book......it is so frustrating...........

  • Plugging in ipod

    Is it true that the first time you open up itunes you have to plug in your ipod nano? Do i need a 2.0 usb?

  • Decoding a kernel panic

    Can anyone decode this kernel panic for me? This is the second I've had since installing Mountain Lion. I ran the AHT (nothing amiss) and reformatted the computer after the first one. Interval Since Last Panic Report:  179816 sec Panics Since Last Re