Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8983941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:58:02+00:00 2026-06-15T20:58:02+00:00

Actually I am having one java program. That returns Hello World. I converted it

  • 0

Actually I am having one java program. That returns “Hello World”. I converted it to jar file. After that I changed the file type as .exe with the use of iexpress in my windows XP default sw.

I used the sc create command, for creating new service. I created the windows service successfully. But the thing is I am not able to run this. It is throwing the following error.

enter image description here

This error is coming not only for this javaservice.

I tried to run the chrome.exe as windows service, That time also it is throwing the same error.

Is it windows constraints? or Am I making mistake? Expecting the solution.,

Thanks in Advance…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:58:03+00:00Added an answer on June 15, 2026 at 8:58 pm

    You cannot just assign any arbitrary .exe file as-is to run as a service. There are specific API functions involved that services must use to interact with the Service Control Manager (SCM). That is why you are getting the errors – those .exe files are not using those APIs to interact with the SCM.

    If you are not writing code specifically for SCM interaction (Java does not support creating Windows services), then all is not lost. In some situations (Chrome NOT being one of them!), you can use a separate wrapper to host non-service apps and handle the SCM interactions on their behalf:

    Service wrapper

    For Java apps, there are a few wrapper projects available:

    Java Service Wrapper

    Yet Another Java Service Wrapper

    ow2

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

forum member I am having one problem with date time in java. Actually I
I am having this encoding issue in java, one string I actually need to
Actually I am developing one application in that when application run first time it
I'm actually having some strings that have some data separated by a pipe character,
I am having a InputStream Object which is actually a zip file. I want
actually i got a problem while creating my project. I am having one list
I'm building a Java app that loads Clojure files. I'm having trouble making a
I am actually having a list of text boxes. I am using below code
I'm having a rare CSS issue in Internet Explorer 7 (I'm actually testing it
I'm having a hard time conceptualizing c++ sets, actually sets in general. What are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.