Urgent ! how to run swing from dos

hi
how should i run swing program through dos prompt.when found in i tried compiling from c:\jdk\bin i got an error "package javax.swing not import".
viji

what you willdo is this,
at the top of your code type the line.
import javax.swing.*;
//for event type the next line..
import javax.swing.event.*;
import java.awt.event.*;
I think this should solve your problem.

Similar Messages

  • Urgent: how to run report from forms runtime

    hi
    can anybody tell me how to call reports in forms through menu
    i just forgot how to call...
    exact menu item code!!
    rgds,

    Dear
    if u are using client server then use this code
    Run_Product(REPORTS, 'd:\emp.rep', ASYNCHRONOUS, RUNTIME,
    FILESYSTEM, 'x', NULL);
    if u r wsing web then use this code
    Web.Show_Document('/reports/rwservlet?server=myrepserv&report=test.rdf&userid=scott/tiger@mydb&desformat=pdf&destype=c
    ache&paramform=yes', '_blank');
    M Rizwan

  • How to run expdp from client ?

    Hi All,
    I tried searching google and forums for my issue but to no avail > How to run expdp from client side ....like in my laptop.
    Because currently our PROD database server has no space for expdp dump file. So I want it directed to my laptop which has an extenal USB of 1TB harddisk...via client EXPDP
    import data using impdp command
    Posted on: 08-May-2012 11:36, by user: 841731 -- Relevance: 53% -- Show all results within this thread
    below command is correct or not? if it is not correct could you please send me the correct command. impdp user/pass@databasename schemas=sourceschemaname remap_schema=sourceschemaname:destinationschemaname ...
    System generated Index names different on target database after expdp/impdp
    Posted on: 30-May-2012 11:58, by user: 895124 -- Relevance: 43% -- Show all results within this thread
    After performing expdp/impdp to move data from one database (A) to another (B), the system name generated indexes has different ...
    [ETL] TTS vs expdp/impdp vs ctas (dblink
    Posted on: 08-May-2012 21:10, by user: 869578 -- Relevance: 39% -- Show all results within this thread
    (table : 500 giga, index : 500 giga), how much faster is TTS (transportable tablespace) over expdp/impdp, and over ctas (dblink) ? As you know, the speed of etl depends on the hardware capacity. (io ...
    Oracle Client
    Posted on: 21-Jun-2012 22:47, by user: Sh**** -- Relevance: 32% -- Show all results within this thread
    Hi Guys, Please can you guys elaborate the difference between Oracle Client and Oracle Instant Client. Also, please can you advise from where I can download the Oracle normal ...
    Oracle 10g Client
    Posted on: 05-Jun-2012 10:11, by user: dzm -- Relevance: 26% -- Show all results within this thread
    to search at oracle site and this forum, but i wasn't able to find a link to download the oracle 10g client. I really need especificaly the 10g version. Anybody know the link or another way to download ...
    9i client to access 11g database
    Posted on: 22-Jun-2012 07:31, by user: kkrm333 -- Relevance: 24% -- Show all results within this thread
    Hi, Can i access a 11g database using 9i client? Thanks,
    SQLplus in Oracle Client
    Posted on: 14-Jun-2012 00:36, by user: Tim B. -- Relevance: 24% -- Show all results within this thread
    Hi, I tried to install an 11g oracle client in linux. As I've compared the files with the files when you install using the oracle instant ...
    Re: Information on Oracle Client 11202-1.1.4-6
    Posted on: 05-Jun-2012 03:33, by user: 898763 -- Relevance: 23% -- Show all results within this thread
    Actually thats the client requirement
    Analysing the performance of a single client
    Posted on: 28-Mar-2012 02:05, by user: 880172 -- Relevance: 23% -- Show all results within this thread
    timeouts even on some of the simplest queries. I want to try and get some data about how just this one client is performing and what it’s doing, but everything Google has thrown up so far is orientated around ...
    to make client connection as sys
    Posted on: 12-Jun-2012 22:04, by user: user11221081 -- Relevance: 23% -- Show all results within this thread
    Dear gurus can i connect to my server from my client machine with sysdba without giving sys password i have connected in different ways as sys@abc ...Thanks a lot.

    Though you can initiate the binary from your client side but for the file creation, there is no other way but to store it on the server side. So your best bet would be to get some space free on the server side of yours.
    Aman....

  • How to run report from form using run_object_report

    I AM USNING FORMS9I/REPORTS 9I , HOW TO RUN REPORT FROM FROM USING RUN_REPORT_OBJECT AND HOW
    TO PASS PARAMETER AS WE DID IN RUN_REPORTS PLEASE HELP ME

    here an example !
    I hope this example you can use it
    PROCEDURE pr_reporte IS
    BEGIN
    DECLARE
         repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    d1 DATE;
    d2 DATE;
    BEGIN
         d1 := :GLOBAL.DIA_INI;
         d2 := :GLOBAL.DIA_FIN;
         repid := find_report_object('rep_lab02');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'p_fec_uno='||to_char((add_months(last_day(d1),-1) +1),'DD/MM/YYYY')||' '||
         'p_fec_dos='||to_char(d2,'DD/MM/YYYY'));
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := report_object_status(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
              rep_status := report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' then
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
         ELSE
              ventana('E','error reporte no encontrado','S');
         END IF;
    END;
    END;
    The 'rep_lab02' is the name of the report that you give in the node reports
    p_fec_uno and p_fec_dos they are the parameters in the report
    repserver is the name of server created with rwserver
    Greetings

  • How to run workflow from Developer studio ?

    Hi Guys,
    I searched for a work item type in the developer studio and it showed the results, but could not find out how to run it from there.. I know we can run it from there.. There is no run button or options available.
    Do i need to setup some profile options ?
    Any help in this is highly appreciated !!
    Thanks,
    Sathish

    Hi,
    Are you logged in as the Workflow Administrator or a user who has been assigned that responsibility?
    Have a look on the Administration tab and it will show you who is configured as the admin.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to Run scenario from the web using HTTP web page?

    Hi guys
    Please let me know How to Run scenario from the web using HTTP web page?
    Regards
    Janakiram

    Hi Janakiram,
    ODI provides web based UI for running the scenarios using Metadata Navigator (read only of ur ODI components) and Lighweight designer (u can edit the mapping here).
    Please explore how to install metadata navigator in ODI and have a look at ODI Setup document for more information.
    Thanks,
    Guru

  • How to run notepad from a web application

    hi
    can any body know,how to run notepad from a web application under tomcat

    You already asked this question:
    http://forum.java.sun.com/thread.jspa?threadID=5150005&messageID=9561597
    Obviously running notepad on the clients PC is not possible (ignoring active x)

  • How to run import from Unix Oracle 8.0.5 database with Windows Oracle client?

    How to run import from Unix Oracle 8.0.5 database via network with Windows Oracle client? Is it possible? When I try to do it Oracle client just hangs... If not which ones are compatible Aix or Solaris to Unix or it must be a Unix client to connect to Unix Oracle database. Thank's for any help.

    Hi,
    In our project we are using this type. Since in this project server in UNIX(DEC) and client is running on windows. We have created a listener which always listen requests from client and doing the according to the request.
    Step1. create a request table, where u are inserting ur request.
    step2. create PRO*C proram, which is listening request on the table. If there is any request, call the imp (executable). This is happening on server side.
    Benifit. U can make a request from cleint and ftp the file client sit.
    Are u interested in more details and code, pls send a mail to me
    ---- Boby Jose Thekkanath
    [email protected]
    Dharma Computers(p) Ltd. Bangalore.
    null

  • How to run clientgen from Workshop 9.2 IDE

    Is there a way to run clientgen for wsdl from within IDE, rather than creating your ant script and running it from dos prompt.
    -Anil Patel

    Hi Andrey,
    Are you on Workshop 9.2.1 ?
    The client jar gets created only during publish. Hence if you have deployed your application or ejb to a running server instance and you choose to publish the app, the jar will be created in the root of your project, assuming you have left default values.
    You can run a quick test by right clicking the project and selecting WebLogic EJB
    In that screen uncheck use default setting for the client jar value and specify your own jar file name
    with the server running, publish the app to the server.
    the jar should be created in the root of your project.
    you can always specify the fullpath to the jar too
    let me know if this works for you
    cheers
    Raj

  • How to run JRE from an external USB disk

    Hi
    I wanted to put up a tomcat servlet engine that could run from a USB harddisk without any previous installment on the host machine. The OS of the host machine would be windows 2000.
    My first question would be; is that possible ?
    I think that when i install JRE environment on some w2k machine som registry stuff is created. And my problem here would be, how to run the java without any registry updates and directly from the USB stick that i insert into the machine.
    And my second would be; what should i install of java on the USB to make this work?
    Grateful for any input on this, or any pointers.
    Best regards
    Abid

    You would need the whole JRE on the media, and I would also assume the the full SDK/JDK as many servlet containers use the SDK's java compiler if you're doing JSPs.
    You would then simply install your servlet container and your .war files. Now I believe that registry settings are not mandatory but one must ensure the PATH, JAVA_HOME, and CLASSPATH environment variables are set accordingly, thus a startup script (.bat/.cmd) would be necessary to create the OS environment, spawn the JRE and in turn invoke the servlet container.
    I've never done this with tomcat, but I've done very similar things with Jetty FYI.

  • Urgent: how to run applet which connected to the servlet?

    hi frends:
    i have written an applet on the server side and it supposed to pass parameters to my servlet and retrieve some info from the servlet.
    i put both applet and servlet under tomcat../WEB-INF/classes. but when i run the applet from the web browser, there is no response from the servlet.
    could anyone help me to solve this problem?
    one more thing is i know that applet is able to connect to servlet, but how about java application? is it able to do so? if yes, is it also using URLconnection as applet? and how to run it?
    i will be very appreciate if anyone can help me... thanx a million.

    You can connect to the servlet from an application.There's a URL class in java.net that has an openConnection method. Then cast the return to an HttpURLConnection and use setMethod to set up as a post request.This may be the default if you call setDoOutput(true) on the URLConnection. Then you'll need to get an OutputStream and write properly formatted form POST data to it. It's also possible to encode your data on the URL, even when using the POST method, and this may be easier when doing it programmatically from an application. To send a get request you can append the name-value pair at the end of the url.

  • URGENT: How to run threads in sequence?

    Dear experts, I am new to writing threads. I would like to know how to run threads in sequence? How do I know when a thread finishes its task?
    In the following code, classes Process_A(), Process_B(), Process_C() and Process_D() are subclasses of Class Thread.
    I'd like to know if I am using the join() function correctly? My intention is to wait for the previous process to finish before running the current process.
    Could anyone kindly give me some solutions on how to run the processes in sequence?
    Thanks!!
    =============================================================
    Thread process;
    Vector process_names = new Vector();
    process_names.add("a");
    process_names.add("b");
    process_names.add("c");
    for(int i=0; i<process_names.size(); i++)
    String process_name = (String) process_names.elementAt(i);
    if(process_name.equals("a"))
    process = new Process_A();
    else if(process_name.equals("b"))
    process = new Process_B();
    else if(process_name.equals("c"))
    process = new Process_C();
    else if(process_name.equals("d"))
    process = new Process_D();
    timer = new javax.swing.Timer(1000, new ProcessListener());
    timer.start();
    // ProcessListener()
    class ProcessListener implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
    if(process!=null)
    if(process.isAlive())
    try
    process.join();
    catch(Exception ex)
    ex.printStackTrace();
    process.start();

    just look at this simple example u will get to know how to use join method
    This does exactly what u want
    class callme
    void call(String msg)
    System.out.println("["+msg);
    Try
    Thread.sleep(1000);
    catch(InterruptedException e)
    System.out.println("interrupted");
    System.out.println("]");
    class caller implements Runnable
    String msg;
    Callme target;
    Thread t;
    Public Caller(Callme targ, String s)
    target=targ;
    msg=s;
    t=new Thread(this);
    t.start();
    public void run()
    target.call9msg);
    class Synch
    public static void main(String arg[])
    Callme target=new Callme();
    Caller ob1=new Caller(target,"hello");
    Caller ob2=new Caller(target,"Synchronized");
    Caller ob3=new Caller(target,"world");
    Try
    ob1.t.join();
    ob2.t.join();
    ob3.t.join();
    catch(InterruptedException e)
    System.out.println("interrupted");
    waiting for dukes

  • New in Oracle Web form 9i : How to run fmx from web and login

    oracle form 9i from web.
    I am new in oracle form 9i (web form). Before I use oracle form client 6i. Just set icon with command (D:\ora6i\BIN\ifdbg60.EXE MYFORM.FMX). The login will be prompt out and user can log in to run many oracle 6i forms from oracle menu. In Oralce form 9i designer, I can open form designer and use run form from IE.
    1. How can I depoly these form with menu to other users.
    2. How can I define the url link to public (Application Server)?
    3. SHould there is any login prompt from web usage.
    Tks.

    solved.

  • How to run openscript from Java?

    Hi!
    I have recorded a web script using OpenScript. But instead of doing the playback in the OpenScript environment, I want to run the script from regular Java code.
    Does anyone know how to do that?
    Basically what I have tried out, is copying the code from the Java code view in Openscript, into a class in my Java project and imported all the oracle.oats... jar-files into my build path. It compiles fine.
    Then I try to call;
    MyOpenscriptClassInstance.initialize();
    MyOpenscriptClassInstance.run();
    MyOpenscriptClassInstance.finish();
    The initialize fails on a NullPointer on the browser.launch(), so clearly some more setup is needed to get the script running.
    I found one useful tip here How to call openscript from a flat java file about an alternative method, but I do not have oracle.oats.jagent.applications.qos among my jar-files in C:\OracleATS\openscript\plugins, so I am not able to locate the JavaAgentWrapper-class, the ScriptResult-class and the RunParameters-class.
    If anyone could guide me in the right direction, I would be grateful.
    I am running OpenScript version 9.2.0.0 by the way.

    Hi again!
    I found theoracle.oats.jagent.applications.qos jarr file now, so I feel like I am getting closer. I also set up log4j (hopefully correct using this guideline: http://snippets.dzone.com/posts/show/3248).
    However, the execution fails with this error message:
    *[2011-02-09 14:43:45,960]ERROR 0[Thread-2] - oracle.oats.jagent.applications.qos.JavaAgentWrapper.run(JavaAgentWrapper.java:82) - runScript.bat can't be found at null\runScript.bat*
    There are errors when running the script.
    My code looks like this:
    package guiDriver;
    import oracle.oats.jagent.applications.qos.JavaAgentWrapper;
    import oracle.oats.jagent.applications.qos.RunParameters;
    import oracle.oats.jagent.applications.qos.ScriptResult;
    public class OpenScriptWrapper {
         private String m_jwgFile;
         private JavaAgentWrapper m_qos;
         private ScriptResult m_result;
         private RunParameters m_param;
         private static final String RESULT_FOLDER = "C:\\OracleATS\\OFT\\DatabaseChangeTest\\results";
         // the JavaAgent playback process is supposed to finish
         // within this duration specified by users.
         private static final long JAGENT_TIMEOUT = 90000L;
         public OpenScriptWrapper() {
              m_qos = new JavaAgentWrapper();
              m_jwgFile = getJWGFile();
              m_param = new RunParameters();
              m_param.setScriptJWGFile(m_jwgFile);
              m_param.setResultFolder(RESULT_FOLDER);
         private String getJWGFile() {
              return "C:\\OracleATS\\OFT\\DatabaseChangeTest\\DatabaseChangeTest.jwg";
         public void runJAWrapperWithTimeout() {
              m_result = m_qos.run(m_param, JAGENT_TIMEOUT);
              if (m_result == null) {
                   System.out.println("There are errors when running the script.");
                   return;
              System.out.println("Overall Result: " + m_result.getOverallResult());
              System.out.println("Overall Duration: " + m_result.getOverallDuration()
                        + "ms");
              System.out
                        .println("Result Report File: " + m_result.getCsvReportFile());
         public static void main(String[] args) {
              OpenScriptWrapper jaws = new OpenScriptWrapper();
              jaws.runJAWrapperWithTimeout();
    Tips anyone?

  • How to Run Swing in Browser

    Hi frnds
    I gotta a Problem in swing.I want to run my swing in Browser.I have tried it with JApplet.But i can execute it only in Console.using appletviewer <filename>.html
    how to run it in browser.
    Please Help Me..

    Quite easy, well for you. You have to have the newest java plug in working in your browser, but as a flaw, if a user wants to access it they need to download it too, but there is a way in the new JDK i believe to have the JRE on Suns server to run the applet, so the user w/o the Swing librarys can use the applet w/o problems

Maybe you are looking for

  • How to set the debug port for Eclipse for OracleAS 10g Enterprise Server

    Hi All, I want to debug a java class, which is exposed as webservice. what are the settings I need to do in OracleAS 10g Enterprise Server to debug a java class using a eclipse. Thanks in advance, Vidyasagar.

  • Powerbook G4 12" 1.33 logic board problem

    My wireless antenna was broke so I disassembled my powerbook, installed the new antenna and when I turned it on this happens: -CD drive spins nonstop - Black Screen - HDD doesn't power on I've checked everything I can think of, I was very careful whe

  • 3d problem - drawing order

    Okay, I'm working on 3D stuff and everything is going fine, etc. But I've got one problem: I don't know how to determine the drawing order of all the faces, so know faces behave like they shouldn't, because they get drawn at the wrong order, and get

  • Restricting Broswer Controlled Font Sizing

    Hi Gang, I'm a bit new to Dreamweaver (have CS3) and have a question about font formatting and sizing. I have a tables / cell-based text column layout using CSS. It looks great when I have the type size set on "normal", but when the type is enlarged

  • Can I find out how old my iphone4 is

    I would love to know how old my iPhone is