Run .jar as window services.

Hi,
I?ve tried running .jar using batch file in window scheduler. The program will auto end if we logoff from the OS(window server 2003).
How can we run .jar as window services, beside using Java wrapper?
Most window wrapper need license to execute. I will like to deploy this .jar as window services in our customer side.

You have to chose the option while creating the task as "When my computer starts", this will work as soon system boots up and until the task is explicity stopped later. This works independent of user logging into the computer; as soon the machine boots up to windows.
If you choose "When I login" during task scheduling, the task becomes active as log as you have logged on to that desktop.
Hope this helps.

Similar Messages

  • How do you create a program in Labview that can be run as a Windows Service?

    I would like to create a Labview program that can be run as a Windows service.  I have read the following Knowlegebase articles and have done what they say. 
    Creating a Windows NT Service Using LabVIEW http://www.ni.com/white-paper/3185/en 
    Running a LabVIEW Application as a Windows NT/2000/XP/Server 2008/7  User-Defined Service http://digital.ni.com/public.nsf/allkb/21BA0F671A63A60386256CB4004DF99B
    When trying to start the service I get an error that says the program didn't respond to the start in a timely manner.  I also set the "run when opened" parameter in the VI.  I am programming in Labivew 2010, proffesional version.  The server is running Windows Server 2008.  Can anyone help?  Is the ini file important in Windows Server 2008?

    I haven't looked through all those links.  But I have created Windows Services from LabVIEW executables way back when WinXP came on the market.
    The problem with services is that they have no UI.  So you can't really see what is going on.  Your EXE might be failing or hanging due to some kind of error (most liklely a security/permissions error), but you can't see the error.  So my advice is to either:
    1.  Have your EXE write lots of info to a log file.  Write info that log every step in the application.  If an error ocurrs, have it write the error info to the log file.  That is a very useful debugging tool.
    2.  Use VI Server functions to monitor the service to see what is going on. 

  • Recommendations for configuring DSEE 6.3.1 to run as a Windows service?

    Hi All, I need some recommendations for configuring DSEE to run as a Windows service. Currently I have CACAO, DSCC, and the Web Console configured and running as Windows services and this works fine. I would like to configure the directory itself to run as a Windows service so that it will restart automatically if the server reboots for any reason. Using dsadm enable-service --type WIN_SERVICE I configured this but initial testing indicated that the service will fail to start automatically on reboot. I can start it manually once the server is rebooted. This appears to indicate a dependancy of some sort with one of the other services like CACAO or DSCC but I did not see any documentation on this. Does anyone know the appropriate way to configure the directory to run as a Windows service? Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    There is an entry in the application-management-common-agent-container log
    [ Apr 22 09:17:52 Executing start method ("/opt/test/dsee6/cacao_2/usr/lib/cacao/lib/tools/scripts/cacao_smf start default") ]
    Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException:
    zone1: zone1
    Which was the problem. The zone was picking up a stale NIS map with the wrong hosname for its IP address.

  • How to run jar as a service on windows 2000 server?

    Hi,
    I built a console jar program and want to run it as a service on windows 2000 server.
    May I ask how can I do it?
    Thanks

    Take a look at something called java service wrapper ,
    http://wrapper.tanukisoftware.org/doc/english/introduct
    on.htmlNot seen that one before. Ta.
    Alexandria software used to support a simpler app called JavaService... google for that maybe if the above is too much.
    /k1

  • Jar as Windows Service

    Is there any way that i can run the jar as an Windows Service?

    Hi,
    Your question is often asked, and there are lots of information on the web. Google on: java windows service
    /Kaj

  • Classic JVM hangs when running Tomcat as Windows Service

    Hi!
    I am running a Tomcat 3.2.4 application, written with Java 1.3.1_01.
    To run it as a Windows Service (W2000), I am using a slightly altered version of JavaService, which works fine so far: I can use both the "hotspot" and the "server" JVM's (by selecting the jvm.dll from the respective subfolder of the JDK/jre/bin folder).
    However, when I try to run the same application with the "classic" JVM, the service starts, inside of it Tomcat starts, the first output appears (to the stdout logfile) and after some time Tomcat simply hangs - it doesn't respond to anything anymore, 0% CPU, no output to logfiles anymore, doesn't even respond to normal Tomcat shutdown (e.g. when stopping the service, Windows waits the standard timeout then just kills it).
    Using the classic JVM in a console (e.g. not through JavaService and the classic/jvm.dll) works fine! No problems!
    Anyone here who can offer any help on this?
    Any hints why Tomcat may behave correctly in 5 out of six possible configurations (hotspot-server/client as service or console or classic as console) but hanging with 1 configuration (classic as service)?
    Also, on my W2000 box where this happens, the moment Tomcat hangs, I hear a Windows warning sound being played (the standard warning gong), like it happens when an info dialog pops up - only there is no dialog or whatever and the same moment Tomcat's CPU usage drops to 0% (although the app is still in startup and should do some more work for a few seconds).
    This also doesn't always happen at the same moment during startup, but each time at a different moment, e.g. I can not pin it down to something that is done during startup, it just happens a short while (sometimes earlier, sometimes later) after startup...
    Of course, I could simply say "forget classic, it's being phased out anyway", only: The SAME thing happens with IBM's Java 1.3 VM too (except for the gong sound, which seems to be Sun-JVM specific ;-)! And I would very much like my app to be able to run on IBM's VM (usually I'm using Sun's VMs everywhere, but we have a few stray W2000 boxes with SP2 where Sun's 1.3.1_0x VMs crash with our application [not hang like described above, but really crash, even when run as a console]) and on those boxes the IBM JVM in a console works fine - now I only have to get it working as a service too (and while researching why it hangs I saw that Sun's classic JVM hangs too, so I figured, I first find out why that happens, with the hope that the fix is applicable to IBM's JVM too...).
    Thanks already,
    Johannes

    re setting classpath when using JavaService
    for Win2k, Tomcat 3.3.1a, JDK1.2
    below is my script for creating/installing JavaService
    (based on Alexandria web site version). However, if i
    try to add .jar files to classpath (ie, CP environment
    variable), the service does not work. It only works
    when this single .jar file is there. How can .jar or
    .zip files be added to classpath for this service?
    I've not been working with Tomcar as a service, so can't help directly, but can offer some comments that might be of use (apologies if they aren't!).
    There are Tomcat scripts for V3.1, V3.2 and V4 with the JavaService code from Alexandria SC. Looks like you need one for V3.3 as well?
    In these others, there are fairly long lists of jar files in the classpath, so I would expect it to work correctly for the version you are using (unless there is a problem with the way that classloaders are involved, which is something that is known to get in the way for some app server-based programs).
    I would expect the classpath to work if changed from what you have listed to something like the following:
    set CP=%TOMCAT_HOME%\lib\tomcat.jar;%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME$\lib\other_library.jar
    Is that what you have tried to do, and found problems?
    Does this version of Tomcat bundle all of its resources into a single jar file (tomcat.jar), or is that a file you have created yourself?
    Is the problem found when loading and starting Tomcat itself, or from within your server-based application?
    Does it fail to load a 'standard' Tomcat library archive, or a jar file containing your own program code?
    set CP=%TOMCAT_HOME%\lib\tomcat.jar
    echo %CP%
    JavaService.exe -install "Jakarta-Tomcat"
    %java_home%\jre\bin\classic\jvm.dll
    -Djava.class.path=%CP% -Dtomcat.home=%TOMCAT_HOME%
    -Djava.security.policy=%TOMCAT_HOME%/conf/tomcat.policy
    -Xms128m -Xmx128m -start
    org.apache.tomcat.startup.Main -params start -stop
    org.apache.tomcat.startup.Main -params stop -out
    %TOMCAT_HOME%\logs\stdout.log -err
    %TOMCAT_HOME%\logs\stderr.log
    Regards,
    John Rutter

  • RFCEXEC running as a windows service

    Hello,
       Is it possible to run rfcexec.exe from the RFC SDK as a Windows service (other than being launched by srvany.exe, for example) ? Thanks in advance for your input.
    Peter DOUGHERTY

    If you have Visual studio installed, create a windows service project with all the parameters, see the following example:
    Shell (rfcexec.exe -a  XXXXXX  -g xxxxx -x sapgw01)
    Compile it as exe file.
    use SAP provided ntscmgr program to register this as a windows service.
    This is working great in my environment.
    Thanks,

  • App Server 8.0, run as a Windows service?

    I am running Sun Java System Application Server 8 (Platform Edition) on Windows XP.
    I want to run the app server as a Windows service.
    How can I do this?
    I looked at Sun's documentation. I could not find any information about using the app server as a Windows service.

    Some details:
    The server is started/stoped by a batch asadmin, which collect some parameters and use a java class to instantiate/stop the server. The server process then forks and will be an independent one. Moreover, the App Server is dependent of Sun Message Queue, another service it will start. This other service is called by an exe that will initiate another java process to implement this service. You end up with three process: the java process of the App Server, an exe which controls the JMS service and another java process for the JMS. The Sun Message Queue can be installed as a Windows Service itself, see the docs. App Server 7 seemed to connect cleanly to a running instance of JMS (started either as service or from console), but App Server 8 seems to require its own. I write this in a hurry and it is still an unsolved problem for me (us?), sorry.

  • How to run application as Windows Service

    I have developed an appl using Java Swing. I want to run the application as Windows Service. How can I do that? Along with that, I also want to start Tomcat Server as a separate Windows service. Kindly Suggest some solutino to this!!

    There is a version of Tomcat that runs as a service. (1.4 for windows?)
    As for your own app, there are several free service launchers around (Google for java service etc.) Not sure about a service with a user interface though - services are usually headless. You may have to paritiotn your app into a headless service and a user interface app which communicaes by RMI, sockets or some other RPC mechanism.

  • Different thread/memory limits when running Java via Windows Service?

    My company is developing a Java application that employs a "black-box" interface, which generates several memory-intensive threads. When we run the application via a batch file, the threads seem to run in parallel on a quad-core server. However, when we install the application as a Windows Service on the same server, it appears that we hit a hard limit of 35 threads, and the process pegs out one of the server's CPU's at 100%. Does anyone know why we don't see the parallelism when we run it as a Windows Service? Does anyone know if Windows imposes different memory or thread restrictions on services, as opposed to normal desktop applications?

    My company is developing a Java application that employs a "black-box" interface, which generates several memory-intensive threads. When we run the application via a batch file, the threads seem to run in parallel on a quad-core server. However, when we install the application as a Windows Service on the same server, it appears that we hit a hard limit of 35 threads, and the process pegs out one of the server's CPU's at 100%. Does anyone know why we don't see the parallelism when we run it as a Windows Service? Does anyone know if Windows imposes different memory or thread restrictions on services, as opposed to normal desktop applications?

  • Problem with  WebLgoic running as a Windows Service

    If you know the answer, plase send me an email at [email protected]
    I'm running a weblogic startup class that starts a Thread. I need to
    run a batch program that should be running as long as WebLogic is
    running (to process new orders).
    It works fine when I run WebLogic (5.1 SP8) from a script, but causes
    problem when I'm running it as a Windows Service. It calls the
    startup class, however, the startup class never spawns the Thread
    class.
    Following is excerpts from different components:
    =============================================================
    *** weblogic.properties ***
    weblogic.system.startupClass.pdfCreatorStart=WebLogicStartupPdfCreator
    *** WebLogicStartupPdfCreator.java ***
    public class WebLogicStartupPdfCreator implements T3StartupDef {
    public String startup(String name, Hashtable args) throws
    Exception {
    Thread t = new ProductionPdfBatchRunner();
    t.start();
    return "success";
    *** ProductionPdfBatchRunner.java ***
    public class ProductionPdfBatchRunner extends Thread {
    public void run() {
    try {
    //work being done here
    this.sleep(30000);
    catch (InterruptedException ie) {               
    catch(Exception e) {
    e.printStackTrace();
    =============================================================
    Thanks for any help

    Hi.
    You can add extra path information by using the -extrapath option in your
    installNTservice.cmd script.
    Regards,
    Michael
    martin wang wrote:
    When I installed a weblogic server as a windows service using installNTservice.cmd,
    I found that the system path was not appended to the java.library.path. Here is
    the detail:
    step 1: went to ...\config\mydomain, run installNTservice.cmd, and the weblogic
    server "myServer" was installed as a NT service.
    step 2: went to Control Panel -> administrative tools -> services and started
    up the service "myserver".
    step 3: went to ...\config\mydomain\logs, open Weblogic.log and found that:
    java.library.path = C:\bea\wlserver6.0\bin;.;C:\WINNT\System32;C:\WINNT
    usually java.library.path should be the above paths plus the system path(which
    can be changed in control panel -> system ->advanced -> environment variables
    Does any one know why?--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Run JavaAPP as window service!

    I have created an app, now i need to make it as window service, i have found an wrapper to do it, but there is some problems on it
    1- there is no samples code
    Some one give me an solution!
    ps: anyone know a tool to decompiler .jar file :P because i saw there was a testwapper.jar, and it worked properly!

    try JAD to decompiler a jar.
    There are a number of service wrappers. If one doesn't do what you want try another.

  • Setting up OIM to start as a Windows Service running under Weblogic 10.3.2

    Hi,
    On recommendation from our Oracle Rep. we have begun migrating our existing OIM installation on Oracle AS to a Weblogic Application Server. As such we are looking for a way to get the OIM application to run as a service in windows - so we dont have to start it manually after a reboot and so that system monitoring can alert us if/when the application crashes for some reason.
    I have asked Oracle support - which basically said that no such howto/documentation exists and that "One needs to debug on their own when face any issue." (whatever the h*** that means).
    I was thinking that we werent the first customers trying to get the OIM webapplication to start automatically under weblogic and that someone must have figured out a way to accomplish this ?
    Any advice on how to do this will be greatly appreciated.
    Thank you in advance.
    /Jacob

    Hi Jacob,
    See this post that I answered few time ago. Re: Keeping Remote Manager running - Windows
    Our OIM is running as a Windows Service.
    REnato

  • Running a 9.2 managed server as a windows service

    Is it possible to run a WebLogic 9.2 managed server as a windows service? I was able to get the AdminServer to run as a service, but not my managed server. I am not using Node Manager. Should I be? Please help...

    Yes. I re-installed and this time I installed node manager and it runs as a windows service. I then was able to get my AdminServer to also run as a windows service, using a script I found in the BEA forum. I start up my managed server now through the Admin Console and it runs ok. Only problem now is that the managed server is not running as a windows service, so that if the machine re-boots I have to manually go in and re-start the managed server again. Do you know how to make the managed server start up automatically too?

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

Maybe you are looking for

  • How to find out first words in a sting

    Hi All, I have a requirement to find out first two words in a string by using SQL. Your help will be more appreciated. Thank you,

  • How to remove the entity instances from a decision report

    Please see below the rules and the resulting decision report How can I remove, from the decision report, the four lines that say "the persons in the family unit", instance 1, instance 2, instance 3? I just can't seem to find a place where the use of

  • N9 LOCKED!! what is default security code???

    Hi, I just set up my N9 with MFE for my corporate email and I am assuming that the security policy came on my device requiring a lock code. But it never asked me to set a lock code at all and now the phone is locked. I tried 12345, 1234 and now i'm o

  • Interactive report - French language character problem

    Hi, I made an Interactive Report with this table : CREATE TABLE "DEPT" (     "DEPTNO" NUMBER(2,0),      "DNAME" VARCHAR2(14),      "LOC" VARCHAR2(13),      CONSTRAINT "DEPT_PK" PRIMARY KEY ("DEPTNO") ENABLE I have two rows in my table insert into dep

  • 4mot/4/40000003:hdd-1221 error is on iMac?

    Hi, can anyone tell me what a 4mot/4/40000003:hdd-1221 error is on an iMac and how it can be repaired?