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


ADVERTISEMENT

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

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

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

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

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

Windows Search Service Does Not Start At Boot

Mar 6, 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 (Copernic) 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. On boot the Windows Search service does not start.I have tried every fix that seemed reasonable and that I found online (too many to recite here). My virus software (AVG) finds nothing. I checked all the Windows components and they are correct.

Here is my System information:

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
Processor Count: 8
RAM: 8075 Mb
Graphics Card: Intel(R) HD Graphics Family, -250 Mb
Hard Drives: C: Total - 459737 MB, Free - 366381 MB; G: Total - 305242 MB, Free - 186944 MB; I: Total - 476937 MB, Free - 366068 MB; Q: Total - 15999 MB, Free - 7174 MB;
Motherboard: LENOVO, 4270CTO
Antivirus: AVG Internet Security 2012, Updated and Enabled

View 2 Replies View Related

Getting Error 1053 Where Trying To Start A Windows Service

Jan 15, 2013

I have created a service using the following command in cmd prompt:sc \computername create servicename binpath= C:WindowsSystem32sam.exeThen in the service list, I could see my service.When I right clicked on the service and clicked on Start , I am getting a pop-up with the following error: Windows could not start the newservice4 service on Local Computer.Error 1053: The service did not respond to the start or control request in a timely fashion.

View 2 Replies View Related

Unable To Update To Service Pack 1 - Windows 7 Home Pre X64?

Nov 19, 2011

I'm having trouble updating to service pack 1 in Win 7 x64 Home Pre by Dell OEM.
There is another post that the problem can be solved using the log file so I have tried using the Readiness Tool and the log is as followed:

[Code]...

View 9 Replies View Related

Server Service Not Able To Start In Windows 7 After Malware Removal

May 2, 2012

Following the removal of some malware [URL], I have not been able to enable my Server Service in Windows 7. I was advised to post this here. This means I cannot share files, use bonjour services, vnc etc. I have encountered Error 1068: The dependency or group failed when I enabled the server service in services.msc.

I have already tried the following (and none worked):
- Enabling in safe mode
- Enabling all startup services in msconfig
- Modifying the registries in folders: Ndisuio, EapHost, and Dhcp (with instructions specified on another site)
- Checking the firewall.

View 12 Replies View Related

Windows Could Not Start Network Location Awareness Service

Dec 30, 2012

so today i ran into a nice little problem in windows 7. when ever i try connecting to a network it says limited access. so after a bit of googleing i believe i have narrowed the problem down to the fact that my network location awareness service is stopped when i try to start it i get the error.Windows could not start the network location awareness service error 193: 0xc1.

View 2 Replies View Related

Error 1083, Windows 7 Theme Service Won't Start

Jun 27, 2012

I recently got a virus on my PC and managed to get rid of it. I was using TDSS killer and it somehow removed my svchost.exe -k netsvrs file from registry and I am almost positive this is why I cannot start it. Although I do not know how to fix it. I am running windows 7 ultimate x64.

View 6 Replies View Related

Windows 7 Wont Start After Service Pack 1 Is Installed?

Dec 19, 2012

windows 7 wont start after service pack 1 is installed. i have to restore to before i installled everytime ivetriedinstalling it

View 1 Replies View Related

DCOM Service Disabled - Windows 7 Wont Start In Any Mode?

Aug 4, 2012

My windows 7 has DCOM Service Disabled - Windows wont start in any mode!Ive tried Safemode, safemode command prompt etc and I just get a black screenI can access CMD.exe using repair mode from the installation disk but not sure how to change services control manager settings from the command line. The systemroot is on D:Iv thought of some routes like, changing the registry or perhaps a batch file running on start up but not sure of how or where to place and enter into startup at the right time.

View 7 Replies View Related

Windows 7 Service Pack File Missing?

Jun 29, 2012

Recently I worked with the tech support at McAfee when I couldn't install my updates or virus scan my Aspire one netbook.I was told that McAfee was fixed but will not run until I pay them $179.00 to fix my Windows 7 Service pack which is apparantly missing a file. They called it an error in attribute record and said the error is inthe operating system of my computer.

View 1 Replies View Related

Unable To Uninstall Windows 7 Service Pack 1 - Component Store Corrupted

Jun 3, 2011

After recently downloading the service pack, I've had issues with my computer, including the themes service not working. I want to uninstall the pack so that I can do a system repair using my disc because my disc is older than the service pack. However, the service pack doesn't show up on the programs list. If I try to uninstall by looking at windows update or the command prompt I get an error message that says:

Installer encountered an error: 0x80073712
The component store has been corrupted.

I have already done a sfc file checker thing through the command prompt, and it said that some files were corrupted, and I couldn't access the log (access denied). I'm currently running the 64 bit version of Windows 7 Home Premium. I obtained the log from the sfc scan. [URL]

View 8 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

Correct Service Pack 1 Installation File For Windows 7 Professional 64-bit?

Mar 2, 2011

I would like to download the 64-bit version of Windows 7 Service Pack 1 to patch my system.

1) Is this the correct Service Pack 1 installation file for Windows 7 Professional 64-bit?
Windows6.1-KB976932-X64.exe

2) Do I need to download and install any of the other .Symbols files from the website?

3) I am installing a new PC with Windows 7 Professional RTM from the DVD. Can I install SP1 immediately after installing Windows 7, or do I need to do a Windows Update first?

View 3 Replies View Related

Windows Cannot Start The WLAN Auto-config Service On Local Computer, Error 1068

Aug 12, 2012

I am unable to connect to the Internet on wireless home network.I have carried out the following:'Click Start, type services.msc, then press Enter. Scroll down to "WLAN AutoConfig" and right click on it and select Properties. Set it to Automatic and not Disabled, and press the Start button, then click OK.That should start the service.'I received the following message:"Windows could not start Wired AutoConfig Service on local computer.Error 1068: The dependency service or group failed to start."

View 1 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

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







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