How to restart Java Application from state when system crash

I want to know about the API that provide mechanism to save your program state peroidically or any specific task completed of application and if system crash and next time when application restart it should be started from previous state.
I required solution urgently plz. replay as soon as possible

write it yourself.
Serializable Interface, FileOutputStream, ObjectOutputStream ... that'd be a start for you.

Similar Messages

  • How to invoke java application from ABAP

    How to invoke java application from ABAP  ? Suppose I needto execute a EJB wihic is running on my SAP J2EE Enigne from an ABAP Program .
    Thanks,
    Manish

    Hi Manish,
    did you get some further documents concerning "abap program calls ejb"?
    If yes, could you please send me some informations.
    Thank you for your help.
    Kind regards, Patrick.

  • How to avoid other applications from showing when JDialog is running?

    Hi to all,
    I need to get JDialog from JFrame when a button is pressed in my application.
    Im getting JDialog fine but what my problem is,
    When JDialog appears on the screen at the back it is showing windows application which is already opened..
    My JFrame hides at that time.
    How to make it display on JFrame only...
    Can anyone help me out.
    Thanks in advance.

    Specify the JFrame as the owner of the JDialog. Read the JDialog API for the different constructors you can use.

  • How to remove Java Applications from "Add and Remove Programs" list?

    I have deployed my Java applications (both JWS and Applet) via JNLP with allow-offline option enabled and without installer-desc option specified.
    My questions are:
    1. An entry is added to the Add and Remove Programs list after launching the application via JNLP. Is it due to the specification of JNLP or JWS? Is there anyway to prevent this behavior?
    2. I removed my application by clearing the cache via Java Control Panel but the entry for the application is still listed in Add and Remove Programs. How can I remove the entry in the Add and Remove Programs?
    I have tried following methods but neither works:
    1.Go to Add and Remove Programs, and click [remove] button to the right of my application.
    *Warning message like 'Application cannot be uninstalled completely' is thrown.
    2.Follow instructions listed @ [Microsoft Online Support site|http://support.microsoft.com/kb/314481/en-us] to remove my application manually via Windows registry.
    *Couldn't find appropriate registry entry to delete.
    Thanks in advance!

    Hi, guys!
    This issue has been officially approved as a new bug (Bug Id: 6946221) for the JDK 1.6_20(might include any release below) release.
    It will take a couple of days for it to be shown up in the external Bug database. However, once it becomes available for viewing on external Bug database.I would like to encourage your valuable participation to vote on this bug to get it fixed ASAP by the SUN developer teams.
    Java Bug Database @
    [http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6946221|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6946221]
    Voting for the bug @
    [http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6946221|http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6946221]
    Thank you for your cooperation!
    Edited by: Jay-K on Apr 23, 2010 12:14 AM

  • How to creating a application that starts  when system start ups

    plz help
    i creating a scheduler application.
    i want it to make it like , it should start automatically whenever the system restarts
    Plz help me

    hi ,
    I tried Java service wrapper
    I got a Frame2.class i.e. in c:\1\Frame2.class
    it just creates a simple Frame window
    say i am using it as a appplication ( Frame2.class)and need it to be start when system restarts, and run it 24x7
    Frame2.java:
    import java.awt.*;
    import java.awt.event.*;
    public class Frame2 extends Frame {
    private Closer Handler;
    Frame2 () {
    Handler = new Closer ();
    setTitle ("Frame Example");
    setSize (300,120);
    addWindowListener (Handler);
    setVisible(true);
    public static void main (String args[]) {
    Frame f;
    f = new Frame2 ();
    class Closer extends WindowAdapter {
    public void windowClosing (WindowEvent event) {
    System.exit (0);
    Now i downloaded wrapper 3.2.3
    Then,
    1) copied bin and conf folder from wrapper3.2.3/src/bin & wrapper3.2.3/src/conf folder to c:\1\
    2)copied Frame2.class from C:\1\ to c:\1\bin\ folder
    3) copied Wrapper.exe from wrapper 3.2.3/bin/ folder to c:\1\bin\ folder
    4) Renamed files App.bat - Frame2.bat,
    InstallApp-NT.bat - InstallFrame2-NT.bat
    UninstallApp-NT.bat - UninstallFrame2-NT.bat
    SimpleInstallApp-NT.bat - SimpleInstallFrame2-NT.bat
    SimpleUninstallApp-NT.bat - SimpleUninstallFrame2-NT.bat
    SimpleApp.bat - SimpleFrame2.bat
    AppNoWrapper.bat - Frame2NoWrapper.bat
    5) And renamed the c:\1\conf\wrapper.conf.in to wrapper.conf
    ( I haven't changed any thing in the wrapper.conf file)
    6) then i executed the Frame2.bat (double clicking it)
    i got this error
    wrapper | --> Wrapper Started as Console
    wrapper | Launching a JVM...
    jvm 1 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/test/Main
    jvm 1 | Exception in thread "main"
    wrapper | JVM exited while loading the application.
    wrapper | Launching a JVM...
    jvm 2 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/test/Main
    wrapper | Wrapper Process has not received any CPU time for 17 seconds. Extend
    ing timeouts.
    jvm 2 | Exception in thread "main"
    wrapper | JVM exited while loading the application.
    7) and then I executed InstallFrame2-NT.bat
    i got error as
    wrapper | CreateService failed - The specified service already exists. (0x431)
    Press any key to continue . . .
    Plz help what should i do to put it on the windows service control panel i.e. to make it start automatically
    Edited by: venkat_walking on Jul 9, 2008 12:38 PM
    Edited by: venkat_walking on Jul 9, 2008 12:40 PM

  • How can I prevent Firefox from closing when it crashes?

    So, I'm using a Windows 8 computer, & when it crashes, it closes altogether & it's really annoying having to reload my session, but when I was using a Windows 7 computer, Firefox hardly ever closed altogether when it crashed- all it did was freeze. Is there some way to only have it freeze instead of closing altogether? I hope you understand what I'm saying. Thanks.

    If only, if only! :)
    No, there isn't a way you can choose what Firefox does when it crashes. It crashes for a reason. But we can see what's causing those crashes.
    Can you give me your crash reports?
    #Enter ''about:crashes'' in the Firefox address bar and press Enter. A Submitted Crash Reports list will appear, similar to the one shown below.
    #Copy the '''5''' most recent Report IDs that start with '''bp-''' and paste them into your response here.
    Your System Details looks very light/empty. Can you start by giving us the troubleshooting information from the Firefox installation that's having problems. This is an essential step in troubleshooting.<br>
    *Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting Information'' from the sub-menu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting Information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy text to clipboard". Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.

  • How to restart java application

    Hi ,
    I have an application which have some parameters ( These parameters are configured in APP )
    I want if the config values changes then our application should be restarted .
    How can I do it programmitically
    Thanks and regards
    Anshuman

    Let your program detect the changes and exit with a defined return code.
    If the running script detects the Java program's having stopped with this return code,
    it restarts the program.

  • Every time I restart my mac air some applications like calendar and Microsoft word automatically starts, how can I stop such applications from starting when ever I restart my mac

    Every time I restart my mac air some applications like calendar and Microsoft word automatically starts, how can I stop such applications from starting when ever I restart my mac?

    One thing to check:  when shutting down or restarting, there is a checkbox in the shutdown/restart dialog which asks whether you want currently open applications to open at startup.
    charlie

  • How do I keep applications from automatically opening when I power up my Macbook Air?

    How do I keep applications from automatically opening when I power up my Macbook Air?

    When you Shutdown or restart, uncheck this option.
    Regards,
    Captfred

  • How do I start and suspend Java Application from say C++ program

    I want to start a Java application via C++ and on some condition i want to suspend the same program not terminate , but suspend

    Have you tried running the virtual machine from your C++ application ? You can start Java applications from your C++ application using JNI after starting the Virtual machine from within your C++ application. According to the Java documentation you can even now stop the virtual machine from within your C++ program.
    I haven't looked at the 'suspend' detail but I suppose it will not be a problem to call a method via JNI to set a flag to suspend a thread etc.
    There is a tutorial: 'Invoking the Java Virtual Machine' at the following URL: http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html.
    This example seems to work only for version1.1 of the JDK. For JDK1.3, version 1.2, (I am not so sure whether I fully understand Sun's version numbers for Java yet) there is some updates on the JNI for starting the VM from C++. This article is called 'JNI Enhancements'. The URL for this article is:
    http://java.sun.com/j2se/1.3.0/docs/guide/jni/jni-12.html
    You have to set version to: JNI_VERSION_1_2
    There is only one problem. I get an error when calling JNI_CreateJavaVM from C++. I could not find any documentation that indicates how you can go about diagnosing what is causing the problem. Normally in Visual C++ you can just get the probable cause by inspecting GetLastError() or the function itself can return helpful diagnostic (error) codes.
    If you manage to start the VM correctly from within Visual C++ please let me know. My email address is [email protected]
    good luck
    Henko

  • How do I stop applications from coming up when I power up my computer. If this were a Windows system I would be able to take the app out of the start up folder. On the Mac I don't know how.

    How do I stop applications from coming up when I power up my computer. If this were a Windows system I would be able to take the app out of the start up folder. On the Mac I don't know how.

    The app (Excel) is in the dock. When I left click on it there is no check next to open at login.
    Lets go back to the beginning when I installed ms office both word and excel were in the dock. then one day excel dissapeared. I put it back in the dock and that is when it started opening during login. There is only one X showing in the dock.
    Maybe I have little gremlins.

  • How do I stop apps from relaunching when restarting my macbook?

    How do I stop apps from relaunching when restarting my macbook?

    Adding to the list of quitting app's before shutting down and the reopen app's options above, go to: Apple > System Preferences > Users & Groups > Login Items and remove any unwanted App's from the list that are set to open at login.

  • How do I prevent the Window Office applications from launching when my iMAC boots or recovers from sleep? I've tried System Preferences however the Office programs are not listed?

    How do I prevent the Window Office applications from launching when my iMAC boots or recovers from sleep? I've tried System Preferences however the Office programs are not listed?

    lunagirl wrote:
    The first 3 apps listed are not installed because I have not run the activation assistant for the Office trial that came with the T61.  Add/Remove programs has only these pre-installed apps:
    Microsoft Office 2003 Web Components
    Microsoft Office 2007 Primary Interop Assemblies
    Microsoft Office Small Business Connectivity Components
    MS SQL Server 2005
    MS SQL Server Native Client
    MS SQL Server Setup Support Files
    MS SQL Server VSS Writer
    Is the activation assistant one of them?
    No, AFAIK should be listed as Microsoft Office Suite Activation Assistant
    Rgds,
    Ahti

  • How to call a WD JAVA application from a WD ABAP application

    Hi experts,
    Here I have two applications with me. One has been created through WebDynpro ABAP while the other one has been created through WebDynpro JAVA. Now i have to call upon the JAVA aplication from my ABAp application. In other words in need to integrate both the applications so as to have an easy navigation in between them.
    In the whole process I need to take care that the data is not lost from both ABAP or JAVA side.
    Please help me someone knows the solution.
    Regards,
    Kaustubh Maithani

    Hi,
    Usally to run WebDynpro for Java Application, we get the Application URL.
    If you want to call this WebDynpro Java Application from Webdynpro Abap, then create UI element like Link to Action or LinktoURL and give the url as WebDynpro for Java URL.
    Regards,
    Lakshmi Prasad.

  • How to open a java application from a web page?

    Friends
    I am in a situation to open a java application from a web page. I wrote a applet and placed a button on it. Onclicking of that button i con't open my java application. plz help me to open a userdefined application from web page.
    Ramesh
    e-Brahma technologies

    http://java.sun.com/products/javawebstart/index.jsp

Maybe you are looking for

  • Time to upgrade my machine...HELP!

    Alright, so it's time to build up my new mac empire...move up from the very tired Dual G4 I've been using to the next (or at least current) generation. Basically, I need to go "balls out" on this machine--I'll have about 10k to spend. I'd like to hea

  • Payment card not working and it says an error

    PAyment card not working

  • Playing DJ mixed audio files?

    It seems somehow that when I play downloaded audio files that are a DJ mix compilation, iTunes and my iPod seem to insert a momentary silence between songs when switching to the next song. I know for sure that this is not the case with windows media

  • Function module to read data from a SPO

    Hi guys, Inside a transformation a have a rule, ABAP routine type, in wich I need to read data from a SPO (semantically partitioned object). Is there an ABAP function module or Class that allows to read data from a SPO? The SPO from wich I need to re

  • T/X Will Not Charge

    I have two T/X's. The first one recently started having touch screen problems. That prompted me to take the second one off the shelf and out of the box where it had been sitting for a year or two without being opened. I plugged it into the wall outle