Unable To Start .jar File As A Window Service

Jul 8, 2012

I've a jar file which contains a very simple program of displaying "Hello" message in the console.I've pasted the code at the end of this thread.I want to run this jar file as a windows service.This service gets started without any hiccup,However,It simply wouldn't start the service.

I've tried running this service as using NET and Sc command.But in vain.Below is the error i'm facing C:Windowssystem32>sc start MajaService [SC] StartService FAILED with error 193.

Further, as a workaround I created a .bat file for executing this .jar file and again tried creating a window service for this .bat file,In this event i get the followingh error:

[SC] StartService FAILED 1053:

The service did not respond to the start or control request in a timely fashion.

and below is my program:
-----------------------------------------------------------------------------------
import java.io.*;
class Hello implements Runnable
{

[Code].....

View 3 Replies


ADVERTISEMENT

Unable To Start JAR File As Windows Service

Dec 10, 2012

I've a jar file which contains a very simple program of displaying "Hello" message in the console. I've pasted the code at the end of this thread.I want to run this jar file as a windows service. This service gets started without any hiccup,However,It simply wouldn't start the service. I've tried running this service as using NET and Sc command. But in vain. Below is the error I'm facing:

C:Windowssystem32>sc start MajaService
[SC] StartService FAILED with error 193.

Further, as a workaround I created a .bat file for executing this .jar file and again tried creating a window service for this .bat file,In this event i get the followingh error:

[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.

Below is my program:
import java.io.*;
class Hello implements Runnable{
Thread thread;
Hello(){
thread = new Thread(this, "Hello1");
thread.start();
} public void run(){
try {
while(true){
System.out.println("Hello");
Thread.sleep(500);
}}
catch(Exception e){}
} public static void main(String[] args){
Hello h = new Hello();
}}

View 3 Replies View Related

Unable Start A Service When UAC Is Default (ON)?

Feb 14, 2012

I created a new Windows Service using C#. And Created a windows application to CREATE SERVICE, START SERVICE, STOP SERVICE and DELETE the SERVICE. This application is working fine when the UAC is turned OFF. When the UAC isturned ON then none of the above operations are working.1. Can i create a Service without Admin Rights, for creating am using the following[CODE]

View 5 Replies View Related

Unable To Start Bluetooth Stack Service

Dec 13, 2011

I didn't find the solution for the issue of "unable to start bluetooth stack service"

View 1 Replies View Related

Unable To Start The Bluetooth Stack Service?

Jan 30, 2012

Error: unable to start the bluetooth stack service

View 1 Replies View Related

Unable To Start Bluetooth Stack Service

Jan 28, 2013

Whenever I start 2 computers A Toshiba Satellite Pro and a Lenovo Z370/Both using Windows 7 Ultimate SP1, I receive a recurring Error Message to do with the BlueTooth Tray (BTT) simply stating "ERROR: Unable to start the Bluetooth stack service".How do I correct this error and prevent it from re-occurring?

View 2 Replies View Related

ERROR: Unable To Start The Bluetooth Stack Service

Feb 2, 2013

I am getting an error message which states:ERROR: unable to start the Bluetooth Stack Service. How do I fix this?

View 1 Replies View Related

Error:unable To Start Bluetooth Stack Service?

Jan 20, 2012

I keep getting this box telling me "Error:unable to start blue tooth stack service".Also unable to open certain Web pages.

View 4 Replies View Related

Batch File To Start A Service?

Jan 15, 2011

if servicename is running, do nothing.if servicename is not running, then start servicename, then record the date and time.based on my search [COLOR=blue ! important][COLOR=blue ! important]online[/COLOR][/COLOR], here is what I have so far.

[code]...

It looks like that the If statement is not working. Every time I run this batch file, it runs through all the command lines.and I got a error message said the service is already running.

View 6 Replies View Related

Site:tomshardware Com Error Unable To Start The Bluetooth Stack Service

May 31, 2010

I have a sony vaio laptop when i start up my computer i get " ERROR unable to start the Bluetooth stack service" what is this?

View 3 Replies View Related

"windows Was Unable To Start Bluetooth Stack Service"

May 16, 2012

windows was unable to start Bluetooth stack service.

View 1 Replies View Related

When I Start The Computer Up It Says "the User Profile Service Service Failed The Login?

Oct 6, 2011

I have a Dell XPS M1730 with Windows 7 Ultimate and it was doing an iTunes update and the lid got closed during the update process. Now when I start the computer up it says "the user profile service service failed the login, user profile cannot be loaded". The computer starts up in safe mode and won't let me do a system restore because it says it is shut off.When I look at User Profiles in Windows 7, it states that the users profile is as backup and the default profile is the local profile. How can I fix my computer to get my user profile back up and working?

View 1 Replies View Related

System Not Connecting To Window Service

Feb 4, 2013

my system is very slow and shows this error cannot connect to window services?

View 1 Replies View Related

Window Security Center Service Cannot Turn On

Aug 10, 2011

Currently I am having problem to turn on my window security center. Solution that I have tried is:

1- By going to services>>properties>>automatic /automatic (delayed start) - failed
2- Already scan with malwarebytes anti-malware and removed affected files - failed

Because of this, I cannot install or update my windows update and antivirus.

View 3 Replies View Related

Error 1719 The Window Installer Service Could Not Be Accessed

Mar 22, 2012

new computer.. windows 7..dont know which bit..tried to install ms 2007 and i keep getting error 1719 the window installer service could not be accessed

View 1 Replies View Related

Perl File (.pl) File With Arguments As Windows 7 Service?

Jan 1, 2013

I am running Windows 7 32-bit. I have a perl script which i want to start everytime computer starts. Setting it as service will be a good option as i can start and restart the service from command line.In windows XP I was using srvany.exe but that is not a good solution. Is there any way I can make this Perl Script which takes in some command line arguments as windows service. Tried using sc.exe, with that service is created but it fails to start.To run that perl script i run on command line:Quote: perl PesrSclipt.pl --arg1 Hello --arg2 Buddy --arg3 Good

View 6 Replies View Related

Fax Service Cannot Start

Nov 26, 2011

I am Running Windows 7 Professional. This is what it says every time I try and start the Fax Service.

The Fax Service on Local Computer started and then stopped. Some services stop automatically if they are not in use by any other service or program.

View 12 Replies View Related

Window's Won't Start Normally

Aug 24, 2012

My drivers all seem to be up to date and the computer used to work fine, we've tried reinstalling windows (once or twice) and the same problem still continues. Also tried replacing the C: drive with another harddrive which had Windows Ultimate on it, this worked for a while but then went back to the screen that is the problem. Safe Mode works but once I start normally it starts up but then at the end of the flashing of the windows logo it says "Not Supported" on the monitor and you cannnot start it normally. I tried Microsoft's "Fix It" help option and came up with "The current video card driver isn't compatible with the Windows Display Driver Model" The graphics card is Asus EAH5870 (ATI Radeon HD 5800 Series), Asus P7P55D Motherboard and I am also running Windows 7 Home Premium 64bit.

View 7 Replies View Related

Unable To Drag Tab To New Window In IE

Jul 6, 2012

Not able to Drag tab to New Window.

View 7 Replies View Related

Workstation Service Won't Start

May 15, 2012

This is my first time here. I'm having a problem with my workstation service. The service won't start, so the services depending on workstation won't start neither. I get error 1068, but the network store interface service is started. I've tried to run sfc /scannow, but there are no problems there.I'm running win 7 64bit?

View 6 Replies View Related

Window Is Unable To Format A 1 GB Pendrive

Nov 23, 2012

i was not able to format 1gb pen drive using windows 7

View 1 Replies View Related

Unable To Start Most Programs From Taskbar And Start Menu?

Jul 1, 2012

When I start up my computer, my Steam starts up, then I manually start Chrome. Chrome comes up fine, Steam does too, but when I try to right click on Steam and click friends, all it does is create another steam process running at 100-108 K. Then if I close Chrome and try to reopen it, it will do the same. This happens with EVERY program after I start up. There's a 5 second window where I can open programs without issue, then after that it will only start 108 K copies of them. It takes me around 30 restarts just to get it working properly, if not more.

View 14 Replies View Related

Windows Search Service Does Not Start

Mar 5, 2012

I am having an issue with Windows Search Service. Almost every time I boot (in the morning), the Search service is disabled. Either I have to repair the function, or go into Services and restart it. Each time I do, I set the Windows Search service to start automatically. Sometimes it does, and sometimes not. This has been going on for several months. It got so bad; I installed another search program that worked just fine. But in the end, I actually reformatted my HD and reinstalled all apps and restored Documents. For a couple of weeks, everything was fine. Now it has started again.

I have tried every fix that seemed reasonable and that I found online. My virus software (AVG) finds nothing. I checked all the Windows components and they are correct. No repair needed.

Here is my SysInfo data:

Tech Support Guy System Info Utility version 1.0.0.2
OS Version: Microsoft Windows 7 Professional, Service Pack 1, 64 bit
Processor: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz, Intel64 Family 6 Model 42 Stepping 7

[Code]....

View 3 Replies View Related

System Security Service Won't Start?

Jun 6, 2012

Got a Dell laptop with Wn7 premium and I noticed windows update was not up to date. Checked manually and it said Windows security center is not turned on, tried to turn it on and all I got was it won't start.

I checked and I uninstalled a Norton AV that was a come with, I rebooted and I still have same issue. I havent been able to keep Win 7 updated. I am using McAfee for AV, it seems to be working fine.

View 10 Replies View Related

Windows Update Service Will Not Start?

Mar 7, 2011

I have a Toshiba laptop with 64 bit Windows 7 Home Premium installed.

Although it has updated in the past, I am now not able to start the Windows Update Service. There is no malware on the system and I have tried several methods found on the internet such as resetting the service. I have also been unable to install MATS RunWindowsUpdate.

View 11 Replies View Related

Cannot Start Power Service, Error 127

Jul 19, 2012

I am currently running Windows 7 Ultimate x64 and one morning, my audio stopped working. I discovered audio stopped working because the Windows Audio Service, which relied on the Windows Audio Endpoint Builder service, which relied on the Power service, all stopped working. So to solve my audio problems, I must first start the Power service.However when I try to start it, it gives the following message:Windows could not start the Power service on Local Computer.Error 127: The specified procedure could not be found.

View 3 Replies View Related

Print Spooler Service Won't Start

Jan 13, 2013

New computer build with fresh install of Windows 7 (64) on formatted hard drive. I have no printers installed and am allowing window to download all updates. I can't install any printers as windows print spooler service is not loaded. If I go to services, and attempt to start the service, I get an error message that says "Windows could not start the Print spooler service on Local Computer" "Error 1053; The service did not respond to the start or control request in a timely fashion".

All dependant services are loaded and running. I have restored the computer to an earlier point and was able to determine the spooler services are running. I continue to allow updates and at some point the service becomes corrupted again. I check in services.msc after every restart. I can't seem to figure out what's corrupting the spooler service. I've even gone as far as to re-install a system image created just after all motherboard divers where installed. The service appears to be working fine and during the process of doing Windows updates,after a random restart, it's not working again. Once it stops working it never comes back until I do a system restore.

View 14 Replies View Related

BSoD After Windows 7 Start Up Window

Dec 9, 2012

I went to the toilet for 5 minutes and when I came back, my computer was off so I tried restarting it and this happened. Its my custom built PC. Its been fine for a few months but a few weeks ago, It said before start up: SATA3G_6 Hard Disk:S.M.A.R.T. Status BAD, backup and replace. I don't know whats happened.

Problem Event Signature: StartupRepairOffline
Problem Signature 01: 0.0.0.0
Problem signature 02: 0.0.0.0
Problem Signature 03: unknown
Problem Signature 04: 0
Problem Signature 05: unknown
Problem Signature 06: 01
Problem Signature 07: unknown
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033

I've not created a back up or a disk image file so It better not wipe the memory.

View 7 Replies View Related

Unable To Open Browse Window Through Other Programs

Jan 16, 2011

problem is that when i go to microsoft word or powerpoint or excel, i press the "open" button and nothing happens. absolutely nothing as in no window will pop up that has the c: drive similar to when you run windows explorer or anything. i should add that windows explorer still works, its just using the "open" or "browse" button that nothing happens. This also happens in other programs as well i just cant think of them at the moment. The problem seemed to start one day when i was playing a computer game and i was also using deskspace (for organization) what happened was that the game switched to a completely seperate desktop and changed one of the desktop wallpapers. if you dont know deskspace is a virtual desktop manager that organizes it like a cube (cube desktop is better but i cant get it to let me change the icons on each desktop which completely defeats the purpose for me. Deskspace is somewhat similar to compiz for anyone who knows about that program for linux. So back to the problem after that i went to change the wallpaper back to what it was before, and i pressed the "browse" button and nothing happened. I didnt really think much of it until i tried to use word today and pressed "open" and nothing happened. from there i tried various programs and none seemed to work.

View 3 Replies View Related

Gupdate Service / Auto (delayed) Start

Jan 16, 2013

I ran across an issue when I booted my computer this morning. One of the tray icons was missing that usually shows and my cursor was spinning non-stop. Not to mention nothing else worked. It was frozen, so I pressed the power button and restarted it that way,Normal, not in safe mode.I'm sending 2 Snips to show you what I think was the reason for this. gupdate is set for Auto(Delayed) start in services. When I went in there and looked gupdate was no started at either time. The first time 9:35:58am was when this whole mess started. I just happened to go back an hour later to look in Event Viewer and it was listed again and still not started with the same explanation.Would this have caused this freeze or crash and is there anything that can be done to rectify this deal? I know some people disable gupdate and everything to do with it but I do not want to get into this.

View 6 Replies View Related

Windows 7 64 Bit Security Center Service Can't Start

Apr 12, 2011

A flag is appearing in the bottom right corner on my laptop running windows 7 Ultimate 64 bit version. On opening the action center by clicking on flag the message appears "Windows Security Center Service (Important) - The windows Security Center service is turned off" Next to this message is a button "Turn on now". When I click on the button gets an error message "windows security service can't be started". no details. checked my laptop for any virus, torjan, malware etc. using 3 different tools: McAfee, Windows malicious software removal tool, Malwarebytes No virus or suspecious programs try to start the security services manually using services.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved