How to execute a java pgm thru Window service

How can we execute a java pgm thru window service, now am executing thru a .bat file but want to change it as window service

http://sourceforge.net/projects/wrapper/

Similar Messages

  • How to execute a java code ...

    how to execute a java code just like in javascript:
    for example in javascript: we can create a function :
    name_fonction=new Function("param1","param2",..., "Instructions");
    but can it be supported in the common java code? how to do it?
    Je suis a little urgent...
    Thanks a lot!!!

    See beanshell
    http://www.beanshell.org/
    which should be include in the next J2SE 6.0 or 7.0.
    See JSR 274 at http://jcp.org/en/jsr/detail?id=274
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                               

  • How i can Start OC4J Instance as window service

    hi ,
    How i can Start OC4J Instance as window service ?
    Regards
    Omar

    Omar,
    check
    http://www.taltech.com/TALtech_web/support/sw_tricks/NTService.htm
    Frank

  • How to execute an java code in pl/sql

    hi frnzzzzz....
    iam new to java and sql both..... and i whant to execute an java program at pl/sql window. do i have to write an code on java source in program unit of pl/sql editor (i.e is in File>>new>>program window>>java source), if yes then i have done
    (i have writtttten
    create or replace and compile java source named tt as
    public class tt
    public static int entry()
    return(10);
    that and after pressing f8
    i gott up the message compiled successfully, and after that i am wondering that how i can run it .
    and if i have write an seprate code using notepad then i have done that tooooo....
    but now what to do to load java in my pl/sql window?????????
    plz. help me out...

    Hhhhhhhhhhhaaaaaaaaaavvvvvvvveeeeeeeee
    yyyyyyooooooooouuuuuuuuuurrrrrrrrrr
    kkkkeeeeeyyyyyyyybbbbbboooooooooaaaarrrrrrrrrddddddddd
    ffffffffiiiiiiiiiixxxxxxxeeeeeeeeedddddddddd
    ffffiiiiiiiirrrrrrrsssssssssssssttttttttt,,,,,,
    ppppppppppplllllllllzzzzzzzzzZZzzzzzzzzzzzzZzzzzzzzzzz
    !!!!!11!1!!11111!loool

  • How to schedule a java application via Windows Scheduler

    I can't figure out how to schedule a java application using the Windows Scheduler. Do I schedule the java application with the .class file as a parameter? How do I pass arguments to it?
    To execute FileCopy.class, my best guess was:
    Start | Control Panel | Performance and Maintenance | Scheduled
    Tasks | Add Scheduled Task | Browse | Program Files | Java |
    jre1.5.0_06 | ... Advanced Properties
    Under the Task tab:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe"
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy
    FileCopy"
    This does not work. How do I schedule the FileCopy.class java application, and how can I pass arguments to it? Can this be done without specifying a password?
    TIA,
    John

    Suppose that your class is FileCopy (has no package name) and is located under MyDocuments\Eclipse_Workspace\Java_File_Copy folder, then you should have:
    Run: "C:\Program Files\Java\jre1.5.0_06\bin\java.exe" FileCopy
    Start In: "MyDocuments\Eclipse_Workspace\Java_File_Copy"
    And yes you must provide a user password to execute the task.
    Best way to do this is to create a special user (with password) for executing this task.
    Regards

  • How to execute a java program by clicking !?!?

    Just a click to execute a java program?!!
    Like the ".exe" in Windows or "x" permission in Unix ?!?!?!
    How can I do that?
    And how to set a java program file to display as a personal icon? (My Icon)
    :-)

    Well this is what I do in Windows (I use XP but it works in others):
    First you have to make sure all the class files are in the same folder (duh)
    Then you copy your java.exe from your jre folder into the folder with all your class files.
    Finally, you create a shortcut to java.exe and add your class name to the command line on the shortcut.
    Now all you have to do is double click on the shortcut and your program runs. Sure it's not that pretty but it works.

  • How to execute one java file in another java file

    Hi All!
    I hava a problem.. I need to validate functionality of one java file in my Junit test case.. so, I need to run that java file in my test file..
    How should I start with???? Are there any java API's for that.. I checked 'system' ..but which function will suite that functionality,,I am not sure about..

    I need to check the functionality of deletetion which
    is done by a java class.. Now I need to check this
    functionality..whether it is deleting or not... in my
    test case.. so, for that I need to execute that java
    file in similar manner as how we normally do it...,
    in my test case..So let the test case create a file and have your class delete it. What's there to run?

  • How to run a java program in windows 2003 server from unix server.

    Hi ,
    I want to run a java program in windows 2003 server from unix machine ..
    will RMI helps me to obtain this.
    Please tell me the procedure to do this.
    Thanks in advance,

    rmi,web services,corba,web 2.0,xml,xls,dtd,rss,ruby on rails,https,soap,tags,blog,podcast,google

  • How to start a java application as windows 2000 service?

    Hi all,
    I'm trying to start / stop a java application as a windows 2000 service. But nothing appens (I can see the screen that rapidly display the java help prompt and then disappear)
    I've a working directory i.e C:\MyDir and it contains instsrv.exe, srvany.exe and my application jar MyApp.jar
    I'm using instsrv.exe to register a java application as a service ( C:\MyDir\instsrv MyApp C:\MyDir\srvany.exe )
    I've added a key in registry by running regedit
    The key is under the tree HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyApp
    the key value is Parameters
    in the key I've added a string value "Application" with the value "C:\j2sdk1.4.2_01\bin\java.exe"
    and a string value "AppParameters" with the value "-classpath C:\MyDir\MyApp.jar main" where main is the name of the main class application.
    This seems to run correctly with Windows NT 4.0
    But doesn't work with Windows 2000.
    Can anyone help me?? pls.
    Thanks.
    Max

    I'm replying to myself .... ;-) ahah
    All we need for this purpose is JavaService, at link
    http://www.alexandriasc.com/software/JavaService/index.html

  • How to execute a Java method when row inserted into a database table?

    I have the need to fire off a java method when a row is inserted into a database table. I am unfortunately working with MySQL which just recently supported triggers but these new triggers can not execute a Java application on any event.
    What I am looking for is an event driven approach such that when a row is inserted into a specific table I can fire off a java method (sitting in a tomcat container) that will take the contents and send it to a web service.
    It has been mentioned that JMS may have the ability to poll and monitor a database table. Just wondering if anyone could point me in the right direction.
    thanks
    JavaTek

    A service handler might be the right way to run some code at the end of a service call (another way would be to make use of filters).
    First, make sure your static table is merged with ServiceHandlers.
    Secondary, change your custom method name into one that is not already in the service definition of COLLECTION_COPY_LOT (preferably a unique method name like collectionCopyLotLastAction that describes its purpose) and remove the following line from your code:
    m_service.doCodeEx("",this);Now create a service definition for COLLECTION_COPY_LOT in your custom component based on the original COLLECTION_COPY_LOT (copy paste from the original service definition) and add you own method collectionCopyLotLastAction as the last step in the service. Play with the load order to make sure CS is using your service definition of COLLECTION_COPY_LOT instead of the original.
    regards,
    Fabian

  • How to execute a Java program from ODI

    Hi All,
    I am new to ODI. I would like to know whether its possible to execute a java program from ODI.
    Reason for this is, I would like to write information in error tables into a file. And after that another program will mail that error log to concerned person.
    Could anyone please help me with this?
    Thank you in advance
    Regards,
    Srini

    if you have the java code then u can create a procedure with Java BeanShell as the Technology and write your java code in the procedure

  • How to register DI RfcSvr as an Windows service

    Every time I must manully start DI RfcSvr program on windows. I want to know how to register it as a Windows service?
    I try to run below command:
    ntscmgr install SAPRFCService -b "D:\Business Objects\BusinessObjects Data Services\bin\rfcsvr.exe" -p "-a DI_SOURCE -g HOST_NAME -x gateway_name"
    It successfully register the command to NT service but It can not start. The error message in Event Manager is:
    Event ID 7009, Timeout (30000 milliseconds) waiting for the SAPRFCService service to connect. I though this is caused by no return code returned by program rfcsvr.exe.
    Anybody has good idea?
    TIA

    Hi,
    I'm in the same situation, I need to know if it's possible to record DI RFCSVR as a Windows service or not.
    When I try to start the service, I get the same error
    Event ID 7009, Time (30000 milliseconds) waiting for <name Service> of service to connect.
    I have searched without success guides.
    Any suggestions.

  • How to get 'clover.cmd' running as Windows service?

    Right now I have the InDesign instances all running great as services so on a server reboot they start up fine. The clover/lbq part is  just the .cmd script and it's not running as a service. I looked in the documentation but haven't found any info on getting clover to run as a Windows service.
    Anyone know how to set it to do this? I'm on InDesign CS6 (server).
    thanks.

    This information is in the Install Guide that comes with EAS.Running EAS as a Windows service is an option you can select when you install it. If you did not do that, you can set it up to run as service by doing the following: (From the EAS Install Guide)----------------------------------------Adding Administration Server as a Windows ServiceYou can add Administration Server as a Windows service, even if it was not installed as a Windows service.?To add Administration Server to the list of Windows services:1. From a command prompt, navigate to the following directory: EASPATH\eas\server\bin2. Run the following command: install_service.batAdministration Services installs the Windows service as Hyperion-Essbase_Administration_Server Windows service. A message displayed in the command prompt window indicates that the service is installed.3. Start the Hyperion-Essbase_Administration_Server Windows service. See ?Starting the Administration Server Windows Service? on page 49.The Hyperion-Essbase_Administration_Server Windows service is set to start automatically each time you reboot.

  • How to register an instance as a windows service in SJWS 7

    Hi all,
    I need to backup my sites config and restore them on another machine.
    I found out that I could simply copy over the folders under the config-store and it'll work, I can see & even start my sites from the other machine through the Admin GUI.
    However, I need to register these sites as Windows Service in order to enable them to be started automatically upon server reboot. In the past, the SJWS 6.1 has ntregister.exe which I could use to do this, but this exe file is no longer there for version 7, does anyone has any idea how I can register an instance as a Windows Service in SJWS 7u4?
    Thanks in advance!
    Regards,
    DM

    hi Javahardcore,
    Thanks, it's the command I've been searching for (it's not listed under the CLI Reference Manual so I couldn't found it).
    However it failed when I tried it with the following error msg:
    ADMIN3577: Service creation and deletion is not supported on this platformI'm running Windows Server 2003 R2 and I've just upgraded the SJWS from 7u4 to 7u5, any idea whether that might be the issue?
    Can you share with me under which config did you managed to get the command working? Thanks!

  • How to convert a Java Program into a Service?

    Hello Experts,
    We want to convert a java program into a Service (not WebService).
    then we want to consume this service through SAP PI.
    Can any1 please give details as to how can we convert a java program into a service.
    Thanks in advance,
    ~ Suraj

    Hi Suraj,
    Unfortunately this information is still not enough. Probably I cannot understand right what you are trying to do.
    To work with tables and databases SAP uses several specifications, for example JPA API, Java Dictionary and so on. But I am not sure if this is what you need.
    Best regards,
    Ekaterina

Maybe you are looking for