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

Similar Messages

  • How do I turn off all the applications that open when I start my Mac up?

    Everytime I start my Macbook Pro up, it opens all of these applications up.  I know there is a way to turn it off, but I can't remember how.  Can anyone help, please?

    Launch System Preference.  Click General.
    Go to the section "Number of recent items".
    Uncheck the box preceding
    "Restore windows when quitting and re-opening apps".
    Restart.
    Hope this helps.

  • 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.

  • I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple I'd as there was some problem with the first one. Now at some places still my old apple I'd is appearing.  Pls adv how I change this to my new apple Id.

    I created one apple I'd when I started using the iPad.  After some days, I had to create a new apple id
    as there was some problem with the first one. Now at some places still my old apple Id is appearing.  Pls adv how I change this to my new apple Id.

    Anything you downloaded with the first Apple Id will forever be tied to it, and will always require it to update.
    The question here is, why did you think you needed to create a new Apple ID? What was the problem with the first one?
    To get rid of th old one, you'll need to delete everything you downloaded with it, and then sign out of the ID in several places around the iPad. 
    Go to Settings->iTunes & App Stores->Apple ID->Sign out.
    Repeat the process, for Facetime, Messages, Mail and any other App you need to sign out of.

  • How to create Automator application?

    I cannot figure out how to create an application in Automator that actually works.  
    What I have is a workflow that combines PDFs.   As a workflow it works well.
    I would like to create an application that does the same thing.   First I tried saving the workflow as an application.   I duplicated the workflow and saved it as an application.  Later I started at the beginning by creating a new application and building it up with the same actions that are in the workflow.
    With both techniques I got an "application" that sits on my hard drive.   The OS describes it as an application.  But, when I click on the icon, the icon blinks as if an application is opening.  But then nothing happens.   The computer remains in Finder.   The Automator "application" does nothing.
    I must be missing something.  How do I create an Automator application that opens?

    It won't. It runs the task in the background.
    My suggestion is to create two folders
    PDF Files
    Merged PDF Files
    Tell the workflow to merge PDFs found in PDF Files and place the merged PDFs into Merged PDF Files.
    Then dump a bunch of PDFs into the first folder. Click the application. Then check the second folder. You should see them all merged into one there.

  • Best practise for creating an application that connects to a SQL Server database

    I have created an application that connects to a SQL Server database and views information using a datagrid and performs several updates when a button
    is selected.  
    I have created a SQLcontrol.vb using the following code:
    Imports System.Data.Sql
    Imports System.Data.SqlClient
    Public Class SQlControl
    'connection 1
        Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
        Public sqlcmd As SqlCommand
        Public sqlda As SqlDataAdapter
        Public sqldataset As DataSet
        Public Function hasconnection() As Boolean
            Try
                SQLCon.open()
                SQLCon.close()
                Return True
            Catch ex As Exception
                MsgBox(ex.Message)
                Return False
            End Try
        End Function
        Public Sub runquery(query As String)
            Try
                SQLCon.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon.State
    = ConnectionState.Open Then
                    SQLCon.Close()
                End If
            End Try
        End Sub
        Public Sub runquery1(query As String)
            Try
                SQLCon1.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon1)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon1.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon1.State
    = ConnectionState.Open Then
                    SQLCon1.Close()
                End If
            End Try
        End Sub
    End Class
    A code for one of my button which views displays data grid contains the following code:
    Private Sub Button1_Click_1(sender As Object,
    e As EventArgs) Handles Button1.Click
            If SQL.hasconnection
    = True Then
                SQL.runquery("select 
    * from tablea")
                If SQL.sqldataset.Tables.Count
    > 0 Then
                    DGVData.DataSource = SQL.sqldataset.Tables(0)
                End If
            End If
        End Sub
    I am fairly new to vb.net and have read a few books and followed a few tutorials on youtube, what I would like to know is, are there any disadvantages
    to the way I have connected to a SQL database using the SQLControl.vb.  A lot of the vb books include data adapter and dataset within the form, I'm not sure if I'm following best practice by have the connection details outside of the form.
    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter
    and dataset.  It all works fine but I just wanted to know of any potential issues?
    Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
    Thanks

    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter and dataset.  It all works fine but
    I just wanted to know of any potential issues
    1) You are not using Sepration of concerns for a solution that is doing data access, like using a DAL.
    http://en.wikipedia.org/wiki/Separation_of_concerns
    2) You are directly issuing SQL commands at the UI, leading to sql injection attacks.
    3) You are not using a UI design pattern, which leads you to tightly couple database activity to the UI.
    http://www.codeproject.com/Articles/228214/Understanding-Basics-of-UI-Design-Pattern-MVC-MVP
    @System243trd, parameters are important to prevent SQL injection attacks (people will insert SQL commands into the database if you do not perform basic checking of what you are passing to the database). If you write a stored procedure try to make
    the variables the correct SQL server data type to avoid problems later of people trying to call it directly.  Darnold924 is right, I see no code to prevent against SQL injection attacks. In addition, during development in some instances LocalSQLDB
    database system is used and during deployment you usually need to use the production SQL server database. Moreover,  Linq-to-SQL is used on Windows Phone 8.1 and it is required for phone development later and so I highly recommend learning
    it if you plan on developing windows phone applications.
    @System243trd, If you want the code for the windows phone app I think it uses the MVVM model or that might be for universal apps or regular windows phone apps. I have been using the windows phone Silverlight pivot or panorama template (it might
    be pieces of both). I've already submitted to the windows phone marketplace and it had to go through certification first. I plan on later making an article on it but I need to first fix one or two simple problems I have with it.  Here's a link to
    the source code if you later want to look at the source code (in vb.net): 
    https://jeffsblogcodesamples.codeplex.com/downloads/get/1445836
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - Sherlock Holmes. speak softly and carry a big stick - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog
    - http://www.computerprofessions.us

  • Application that sets up and starts internet sharing

    I'm new to OS X programming and was hoping to get some ideas in solving a problem i'm having.
    Need to create an application that will set up internet sharing with specific configurations (Firewire and airport only) and then start it.
    I have been playing around with applescript to automate the gui controls of System Preferences and it works pretty good. However its very annoying that the gui needs to be displayed to do this.
    MS provides an API called INetSharingConfiguration that enables network connection bridging in visual studio. http://msdn.microsoft.com/en-us/library/aa365935(VS.85).aspx I would be surprised if apple did not provide something of the same, however I have not been able to find it.
    Does anyone have knowledge of a framework or API that could be used in xcode to get the same thing done? Suggestions would also be helpful.
    Also, If I have to stay with applescripting the gui controls, is there a way to hide the gui when this is activated?

    still looking for a good solution but I did come across a plist file that seems to hold these settings. /Preferences/SystemConfiguration/com.apple.nat.plist
    Has anyone successfully modified this file and started internet sharing by using it?

  • How to create a vi that counts for example 3 - 10 pulses in and then give a 1 puls out

    how to create a vi that counts for example 3 - 10 pulses in and then give a 1 puls out.
    I'm working with Labview 6.1
    Running with Labview 6.1
    Fieldpoint hardware

    Hi,
    You should be more specific, what kind of hardware you are using ???
    Which kind of pulse you are measuring ?? You are saying that you want to count a number of pulses and then when you get to a limit (which will be between 3 and 10) you want to output a pulse ?
    Andre Oliveira

  • How to get the Application perform actions when exits?

    How to get the Application perform actions when user clicks on the "X" icon in the top right hand corner?
    OR
    If i placed an Exit Button.... when actions that i need to use to allow my application to perform a certain action when it exits?
    Thanks

    frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        // do your stuff here
    });The WindowListener and WindowEvent can be found in java.awt.event package
    //David

  • Create a validation that runs when a button is pressed

    Hi good people from this forum, I was wondering if it's possible to create a validation that runs when a button is pressed.
    I'm using Oracle Apex 4.2.2 with Oracle Apex Listener 2.0 and Oracle Database XE 11g
    Thank you so much for your time
    P.S. On another note, How can I change my display picture =P?

    You can create a validation and give it's condition like 'When Button Pressed' and select a button name or select the Condition Type as 'Request=Expression1' and give request(button name) in Expression1.
    Thanks
    Lakshmi

  • How to retrieve all datas that lost when i update my iphone4 to that 6.10 ios. i tried to look at may i tunes in my computer but it seems that i forgot to perform back ups since i purchased this phone 2yirs ago.. pls send me an advice..thank u.

    how to retrieve all datas that lost when i update my iphone4 to that 6.10 ios. i tried to look at may i tunes in my computer but it seems that i forgot to perform back ups since i purchased this phone 2yirs ago.. pls send me an advice..thank u.

    All of the data should be on your computer, simply sync it back.
    If the update was done via iTunes on the computer, the first step in the process is a backup of the device.

  • How Tou2026 Create Custom Application in E-Commerce 7.0?

    Hi all,
    We want to set up SAP E-Commerce for ERP 7.0. For SAP E-Commerce for ERP 5.0 the following configuration guide is available:
    How Tou2026 Create Custom Application in E-Commerce 5.0
    What about SAP E-Commerce for ERP 7.0? Is this guideline also valid for 7.0?
    If not, where can I find the corresponding configuration guideline for SAP E-Commerce for ERP 7.0 (on the SAP Service Marketplace?)?
    Thanks in advance.
    Regards,
    AV

    Hello Av,
    Please see the Development and extension guide @
    http://service.sap.com/crm-inst
    => Release 7.0
    => Operate
    Regards
    Mark

  • How to create an applet that shows a pdf as non-editable.

    Hi friends,
    Does any one know how to create an applet that shows a pdf document (should make that pdf a non-editable one) while clicking a link.Its urgent for me as I have to complete this one tomorrow itself...please help me...
    I am able to view the pdf document but that cannot be make a non-editable one.
    Can anyone gave me the code for that one....please I am not very much good in Java.

    PDF is a proprietary format and Java doesn't support it by default. Are you using a 3rd party tool to create the PDF? If so, you need to review the developer docs to see how to make the document non-editable. Frankly, I don't see why you're using an Applet to view a PDF in the first place. What exactly are you trying to do. I'm confused.

  • How to create CRUD application using bapi in webdynpro java

    Hi All,
          I have implemented the CRUD application using bapi  Now i want to create, retrieve , update and delete the existing table by click on Insert, delete, retrieve ,and update button dynamically. i get null values from database,  Please let me know the logic and procedure for how to create CRUD application using bapi  Please any one help me..
    Thanks in advance

    Hi,
    Hey tell me one thing your BAPI having CURD methods. See you are getting data from BAPI and pull the data in Table in WDJ. So if u can do any action it will comes trough BAPI.
    If your BAPI having CURD methods. You can implement CURD methods in WDJAVA also.
    @ You said you are getting null values from the database. Please let me know what code you have to wrote for CURD. Please tell me.
    Hope this is help full for u
    Best Regards
    Vijay K

  • How to Create New Application for iPhone

    Hi,
    Can anyone guide me how to create New Applications for the iPhone.
    Regards,
    Mustafa Ali Qizilbash

    If you think Apple's is making a profit off the $99 it collects for the iPhone Developer Program membership, you're badly underestimating how much it costs to run the program.

Maybe you are looking for

  • Strange Import Problem

    I'm running JES Q42005, the whole messaging stack. When I import an ICS file using both csimport, and the webmail (via UWC and directly to CS) interface, the time isn't coming over properly. As a control, I used two identical calendar entries that we

  • Any ideas when the c680032p10g will be available ?

    any ideas when the c680032p10g will be available ? Or any of the new 6800 line cards?

  • N97 Mini Move message folder to Mass Storage

    Ok, I'd like to get this right for once and for all. I'm challenging the Move message to Mass storage feature. These are the steps: 0) I have two message in my Inbox, Remove and replace the battery and switch on the device. After that I format E:Mass

  • System form resizing problem

    Hi, I expanded the width of the Sales Quotation system form and move fields to the right to allow space for new fields in the centre. I used the oForm.Width to adjust this. If I load the form, expand to full screen, everyhting is in the right place a

  • Billing and Pricing condition in BW means

    Hi All, Can somebody tell me what is Billing Condition data,pricing condition and Order condition data. Actually what is condition type and condition itself. with some examples plz thanks harish