I created a class file , if i execute this class file it has to be always o

i created a class file , if i execute this class file it has to be always on top if i open any other programms or applications then also this class file application has to show me on the screen top , i meas ti has to show me first and behind all applications which i opend other applications
How to do this please help me
bhaskar

It sounds like you might be able to write a .bat script to run the application, create a desktop icon for that and set its properties so it runs in the background.

Similar Messages

  • When i executed this class file  i am getting runtime errors

    when i executed this class file i am getting runtime errors
    code is :
    import java.awt.event.*;
    import java.awt.*;
    public class Test extends Frame
    java.awt.Window w;
         TextField t;
         Test()
         t=new TextField(20);
         add(t);
         addWindowListener(new WindowAdapter()
                             public void windowDeactivated(WindowEvent ev)                               {                    
                                  w.toFront();          
                                  System.out.println("hai");
         setSize(300,300);
         setVisible(true);
    public static void main(String args[])
    Test t =new Test();
    after executing that class i am getting this errors
    Exception occurred during event dispatching:
    java.lang.NullPointerException:
    at WindowEventDemo.windowActivated(WindowEventDemo.java:76)
    at java.awt.Window.processWindowEvent(Window.java:612)
    at java.awt.Window.processEvent(Window.java:576)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Window.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventQueue.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)
    if anybody know how to pls help me

    You are using w that you have not done anything with.
    Add following code to the begining of your cinstructor:
    w = this;
    Then it should work.
    //Anders ;-D

  • I created table maintainace generator but while executing this in SM30.

    I created table maintainace generator but while executing this in SM30 it's giving following error. Error message " Conversion error"
    The program has been interrupted and cannot resume. Program "SAPLZ_DEV_AC_DAT_MOE" attempted to display fields on screen 0001.
    An error occurred during the conversion of this data.
    Table has following fields:
    MANDT          MANDT     CLNT     3     0     Client
    YEAR1          CHAR     4     0     Year
    SOLD_TO_PARTY     KUNRG     CHAR     10     0     Payer
    MATNR          MATNR     CHAR     18     0     Material Number
    JANACP          CURR     15     2     Jan Accural Plus.
    and reference field for JANACP is VBRK-WAERK.
    Can anyone help me on this.

    Hi,
    you have a field of type amount and need a referring currency field. You have chosen a VBRK field, but in SM30 you have no connection to a special VBRK entry because of a missing connection on key field VBELN.
    Either you create a currency field in your table, or (if possible) you have to add a foreign key relation to VBRK with a fixed VBELN (existing on all systems) to get the VBRK currency. But the second way is no good idea!
    You need a currency to get the right decimal point for your amiount.
    Regards
    Klaus

  • After effects CS6 error file cannot be imported - this 'moov' file is damaged or unsupported

    Hi there,
    I'm working in After Effects CS6 (11.0.2.11)
    I imported an AAF that was exported from Avid MC 6.5.2. I colour corrected and graded the sequence using colorista 2 and magic bullet looks and some other native AE FX.
    Before exporting I decided to double check something to do with the audio. I imported the same AAF into FCP 7, took a quick look, but decided nothing needed to be done. I tabbed back to AE (which was left open), and upon returning, AE started giving me all these 'damaged or unsupported' errors.
    Subsequently, AE will now not import any quicktime movies - even ones I rendered out of after effects earlier in the day (these quicktimes use ProRes422 codecs, animation codecs and other lossless codecs)
    I've restarted, re-exported the AAF several times using diff settings, uninstalled perian... but to no success.
    Anyone got any good ideas? I've had this happen before, where AE will import an AAF and it works first time no problem. Then something happens when I re-open the project and boom... 'moov' errors. It's really odd and very annoying - esp since it now won't import other normal quicktime movies too - with the animation codec. I have quicktime 7 pro installed and quicktime X on Mountain Lion (OS 10.8.3).
    -Rich
    Editor,
    Caravan Media, New Zealand
    System Details: MacPro (OS10.8.3) 2 x 2.93GHz 6-Core Intel Xeon, 24GB RAM, Radeon HD 5870 1GB

    I have the exact same problem on a Mac with 10.8.3 and After Effects from the Adobe CS6 MasterCollection (AE 11.0.2.11 (german)): all of a sudden I cannot import any native QuickTime-Movies (ProRes, Animation) or even movies that use e.g. H264 in a QuickTime container. Even projects that worked 2 days ago that contain QuickTime-movies will not open anymore.
    This happened 2 days ago without any action from me that I can think of that could have caused this. I did not install any new codecs or plugins, nor was there anything in the apple software update.
    What I tried/checked so far (to no avail):
    disks are OK,
    file permissions are OK,
    no Firewall is blocking anything,
    deleted AE-prefs,
    removed all 3rd-party plugins,
    removed all 3rd-party codecs.
    Edit: I did some further poking around, and it turns out that after deleting or resetting file permissions of the folder "~/Library/Preferences/Adobe/After Effects" AE will briefly allow you to open an existing project that contains QT-movies. If you then try to import any QT-movie you get the error message -- and after that you cannot open the project again.
    This is really bad -- AE is basically unusable right now.
    P.S.: The (german) error-message is this: "After Effects Fehler: Die Datei "filname.mov" kann nicht importiert werden: Datei "MooV" ist entweder beschädigt oder wird nicht unterstützt."
    Message was edited by: Hanz Franz
    Message was edited by: Hanz Franz

  • Executing a .class file

    Hi all,
    Can anyone help me about how to execute a ".class" file from within a java Program. Thanks in advance
    Regards,
    Deepan

    i have a class file in "c:\sample.class" i want to
    run this class file from my program. How to achieve
    this? i am a newbie kindly bear with me..the reason you're not getting a straightforward answer is that this is the sort of thing you can find out for yourself in the tutorials, or from your teacher, or a book, or a simple google query. the forum isn't the place for complete novices to learn from, that would be a waste of effort on everybody's part
    get reading!

  • Can i give a process name of executing java class

    hi all,
    what i need is when i execute the class file using java at the command prompt i want to create a separate process of that class. that means when i execute this class i want 2 processes running one is "java" and the other is "The Class To be executed".
    is it possible????
    actually my requirement is that i want only one instance of my class can run at a time.
    please help me
    thanks
    bye

    hi
    actually i can not use the file lock because my application is going to run on Solaris machine and since its a mutiuser platform and every user has a limited access to his data.and any user can run my application so the problem is where one user will write into a file so that other user can also read from the same file.
    can i do it other way using native methods if yes can u elaborate please
    thanks
    bye

  • How to execute a jar file which has an applet, without using a html file ?

    I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code
    <html>
    <applet code="file.class" archive="file.jar" width="500" height="300">
    <param name="name" value="value">
    </applet>
    </html>
    I want to know how to execute this class file without using the html tags.
    pls help me out in this.
    Anki

    Hi,
    You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
    1. Open a notepad and write the following
    Main-Class: XXXXXXXX
    XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
    2. Save the file as Mani.mf
    3. In the commant prompt ( your directory ) type following lines.
    jar cmf Mani.mf Demo.jar *.*
    4. This will make a jar file which is executable jar file
    Hope this will help you.
    Deepak

  • How to execute a scenario File to File with SAP XI ?

    Hi all,
    I'm starting study SAP XI, i see in the link follow:
    [http://www.****************/Tutorials/XI/File2File/page8.htm]
    a scenario to exchange file to file with SAP XI.
    After designing and configuration everything (same as tutorial of this scenario), i don't known how to execute this scenario.
    Anyone can answer my question: how to execute this scenario file to file?
    Please see the link below to understand more about this scenario.
    Thanks all a lot in advance,
    Point will be reward for any valuable answer.
    Vinh Vo

    Hi Vinh,
    Hope u read all the basic documents of the XI, if not please go through once u wil come to know how to execute a scenario.
    the step-by-step procedure for a simple file-file scenario...
    First u have to finish the Design Part in the IR
    1) Create Data types
    2) Create Message Types
    3) Create Message Interface
    4) Message Mapping
    5) Message Interface.
    Here it complete the desing part.
    Then start thr configuration:-
    1) Create the Configuration Scenario
    2) Create the Business system and create the Communication Channel.
    3)  Sender Agreement
    4) Receiver Determination
    5) Interface Determination
    6) Receiver Determination.
    If u perfome this steps u wil be successfully complete u r File- File Scenario.
    follow the below link to have clear picture of file-file scenario
    STEP1:-
    /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-i
    STEP2:-
    /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-ii
    Hope this helps u a lot.....
    Thankx
    Anil
    Edited by: Venkat Anil Gannavarapu on Jun 11, 2008 11:36 AM
    Edited by: Venkat Anil Gannavarapu on Jun 11, 2008 11:40 AM

  • Java.exe does not execute the clas file ????

    I would like to know how to run a compiled program in Java, for example HELLOWORLD.CLASS after I have changed it from a .java file into a .class file.
    What can I do to execute this .class file to see how
    the program works ?

    You should start with:
    java HelloWorldRemember that it is case sensitive. There are several other things that can go wrong so keep posting your trials and errors!

  • How to execute a batch file on different remote server using TFS Build

    I have a build server and have 2 web servers. I am deploying using TFS Builds. Now, I have a requirement to execute a batch file which is kept on these 2 web servers. i.e. C:\MyBatch\CreateMe.bat
    After my build is successful, I need to execute this batch from the build server.
    Note, I cannot make any shared folder.

    Hi Sameer, 
    Thanks for your post.
    What’s the version of your TFS?
    How do you deploy solution using TFS Build, run MSBuild deploy command or using Release Management?
    That C:\MyBatch\CreateMe.bat file stay on your two web server machines separately? 
    If you want execute this bat file on your two web server machines separately using build process template, you need configure your web server machine as build agent, then add the InvokeProcess activity in build process template to run the bat file on build
    agent machine after build, please refer to Hari’s answer reply in this post:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/b8bcb19f-1296-441c-8356-e701b949445a/tfs-2010-how-to-execute-a-batch-file-after-build?forum=tfsbuild.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I execute a  .bat  file from inside a java application

    I have a .bat file which contains an executable file(.exe) and some input and output file names. What commands can I use to execute this bat file from my java application.

    After raeding tkleisas' reply; i am trying to invoke another application (which can be invoked from the command line) by using a batch file and trying Runtime.exec for executing a batch file.
    My current code is:
    Runtime runtime = Runtime.getRuntime();
    Process trialProcess;
    trialProcess = runtime.exec("cmd.exe /C start C:\\guns.bat /B");
    And my guns.bat looks like:
    cd C:\CALPUFF
    echo trial
    start calpuff.exe CALPUFF.INP
    This is not working for me and i get the following in the error stream of the trialProcess:
    Error :
    The system cannot execute the specified program.
    Process finished with exit code 1
    Has anyone come across something like this and know what's wrong with this one??
    thnx

  • This PostScript file was created from an encrypted PDF file.

    I have a postscript file which has been created from secure or encrypted (opening restriction) pdf.
    Now when i use distiller to convert this postscript file to pdf then distiller cannot produce a pdf file.
    The log file contains following text:
    This PostScript file was created from an encrypted PDF file.
    Redistilling encrypted PDF is not permitted.
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    1) Is there a way to convert this postscript file into pdf ?
    I have a limitation that i cannot remove security from secure pdf.
    2) Do distiller provide any settings which can be changed to convert
    this kind of ps(from secure pdf) to pdf.
    3) Can we provide password to distiller during process of conversion to
    pdf.
    4) If above methods do not work then is there a way we can
    programatically use Distiller Api's for conversion of postscript (in case
    of postscript created from secure pdf) to pdf
    Like methods 'FileToPdf' etc.
    Thanks in advance.

    I am facing a similar problem.
    My workflow dictates that I convert the input PDF job initially to PS and finally back to PDF. If the input PDF file is secure (it's not encrypted - you will still be able to open the document), the redistillation of PS to PDF fails while using Normalizer 6.0 && 9.0 libraries. If I use Normalizer 505 library, the redistillation succeeds. I have checked with the same generated PS on both Distiller 6.0 && 9.0, and both the versions fail to reconvert as well. I am a little surprised that 6.0 and 9.0 will fail to do something that 505 library manages.
    Any suggestions?

  • Flex/AS3 Best way to construct a derived class instance from an existing base class instance?

    What is the best way to handle the instantiation of a derived class from an existing base class.
    I have a base class which is being created via remote_object [RemoteClass alias] from the server.   I have other specialized classes that are derived from this baseclass, but serialization with the server always happens with the base class.     The base class has meta data that defines what the derived class is, for example
    [RemoteClass (alias="com.myco...')]
    public Class Base
         public var derivedType:String;
         public function Base()
    public Class Derived extends Base
         public "some other data"
         public function Derived()
    In my Cairgorm command which retrieves this object from ther server I want to do this:
    public function result (event: Object):void
        var baseInstance:Base = event.result;
         if (baseInstance.derivedType = "derived")
              var derivedInstance:Derived = new Derived( baseInstance );
    What is the most efficient way of doing this?   It appears to me that doing a deep-copy/clone and instantiation of the derived class is pretty inefficient as far as memory allocation and data movement via the copy.

    Thanks for the assistance.  Let me try to clarify.
    MY UI requires a number of composite classes.    The individual components of the composite classes are being transfered to/from the server at different times depending upone which component has changed state.    The construction of the composite classes from the base class happens in my clients business logic.
    Composition happens in a derived class; but server syncronization happens using the base class.    When I recieve the object from Blazeds through the remote object event, it is in the form of the base class.  I then need to instantiate the derived class and copy the elements of the base class into it (for later composite construction).   And likewise when sending the base class back to the server, I need to upcast the derived class to its base class.   But in this case just a mere upcast does not work.  I actually need to create a new base class and copy the attrbutes into it.  I believe this is limitation of how remoting works on Flex/AS3.
    My question is, what is the best way to turn my base class into it's derived class so further composite construction can take place.   The way I am currently doing it is to create a  load method on the base class, that takes the base class as on argument.  The load function, copies all of the instance attribute references from the base class to the target class.
    public Class Base
         public function Base()
         public function load(fromClass:Base)
        {  //  copy the references for all of the instance attributes from the fromClass to this class }
    Then,  after I recieve the base class from the server.   I create a new derived class and pass the base class into the load function like this:
                for (var i:int=0; i < event.result.length; i++) {
                    var derived:Derived = new Derived();
                    derived.load(event.result[i]);
    The drawbacks of this approach is that it now requires 2 extra instance creations per object serialization.   One on recieving the object from the server and one sending it to the server.    I assume copying references are pretty efficient.  But, there is probably some GC issues.     The worst of it is in code maintenance.   The load function now has to be manually maintained and kept in sync with the server class.
    It would be interesting to hear how others have solved this problem.      The server side is an existing application with around 2M LOC, so changing the code on the server is a non-starter.
    Thanks for your help.

  • In wich jar can i get this class org.apache.batik.dom.util.DOMUtilities

    please let me know in which jar file can i get this class and tell me the location for downloading
    org.apache.batik.dom.util.DOMUtilities;
    import org.w3c.dom.Document;

    Hai,
    I think you have to use the xml-apis.jar file from the batik project, which has the class org.apache.batik.dom.util.DOMUtilities.
    Yogesh.

  • Imported par file to NWDS, jar file missing. Where find par file structure?

    Hi All,
    We want to implement idle session timeout on the portal.  We found a wiki here on the subject.  In order to implement the solution we need to make adjuestments to com.sap.portal.navigation.masthead.par.bak.  When we import this par file to Netweaver Developer Studio, the libraries and jar files are missing.  So obviously it errors then in portal as files are missing.
    So I could add them manually but I don't know what the file structure is on this par file so don't where to add what.  Does anyone know?
    Also when I export the file after manually adding the missing files, will it export all the files or will it behave the same way as the import and leave out the additional files?
    If anyone could help, I'd really appreciate it,
    Kind regards,
    Liz.

    Hi Bala,
    I thought of that just before you responded and it worked!!  Thanks for the response..
    Regards,
    Liz.

Maybe you are looking for

  • Can't add songs to iTunes

    One day I noticed that several of my albums in iTunes were missing songs. I searched high and low for them, and sure enough, they are not to be found in iTunes. They are, however, very much on my HD, and they work with WMP, MM, etc. I used mp3checker

  • Unable to install soa suite 10.1.3.1.0 in windows XP

    hello when i install SOA Suite10.1.3.1.0 in my windows XP, Configuration Assistant "Oracle Web Services Manager Configuration Assistant" failed, the following is the log: install.configApps.setUpLogging: [copy] Copying 1 file to D:\Oracle\10.1.3.1\Or

  • Preview of the Database Migration Assistant for Unicode

    Dear Forum Readers, Are you attending Oracle OpenWorld next week in San Francisco? Is the process of migrating an existing database to Unicode (AL32UTF8/UTF8) of interest to you? If your answer is "yes" to both questions, you will be certainly intere

  • Quicktime won't work after lion upgrade

    quicktime won't work after installing Lion

  • Wacom or photoshop issue ?

    Hi all, First things first. I work with the following setup : win7 64bit, photoshop cs5 (latest update), wacom intuos4m (driver up to date). I don't do a lot of drawing in photoshop, so I may have missed the exact moment when the issue started, but y