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

  • SEARCH
  • Home
  • 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 3352028
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:58:49+00:00 2026-05-18T01:58:49+00:00

Java Service Wrapper is the tools I need to run as a Windows service

  • 0

Java Service Wrapper is the tools I need to run as a Windows service but came into a problem with java.lang.ClassNotFoundException

My default command line is: java -jar software.jar

I have update the wrapper.conf for running software.jar located in D:\ and there was an error, the changes I have made:

# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
wrapper.java.classpath.1=../software.jar
wrapper.java.classpath.2=../lib/wrapper.jar

and what should I put for this parameter? If I comment out, it would use Main class

wrapper.java.mainclass=software

As I declare “software” as the main class, I got the dread error:

wrapper  | Launching a JVM...
jvm 1    | java.lang.NoClassDefFoundError: org/xsocket/connection/IHandler
jvm 1    | Caused by: java.lang.ClassNotFoundException: org.xsocket.connection.I
Handler
jvm 1    |      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
jvm 1    |      at java.security.AccessController.doPrivileged(Native Method)
jvm 1    |      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 1    |      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
jvm 1    |      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

jvm 1    |      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
jvm 1    | Could not find the main class: xSocketServer.  Program will exit.
wrapper  | JVM exited while loading the application.
jvm 1    | Exception in thread "main"
wrapper  | CTRL-C trapped.  Shutting down.
wrapper  | <-- Wrapper Stopped

My software.jar contains:

META-INF
org -- Eclipse setting
software.class
xsoftwareHandler.class
xSocket.jar
  • 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-05-18T01:58:50+00:00Added an answer on May 18, 2026 at 1:58 am

    What I suggest is to store all libraries in your lib/ directory and then add the following information in your wrapper.conf file:

    wrapper.java.classpath.1=../lib/*.jar
    

    This way, the Java Service Wrapper will load all the *.jar file located in ../lib/ directory in the classpath, and you should not get this error again.

    Of course, you can also define each JAR individually if you prefer:

    wrapper.java.classpath.1=../lib/wrapper.jar
    wrapper.java.classpath.2=../software.jar
    wrapper.java.classpath.3=../lib/xSocket.jar
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got this error 'java.lang.ClassNotFoundException: com.hp.hpl.jena.rdf.model.Model' when I run my java web service which
I would like to run a Java application as a service. Unfortunately, I am
I've been using the Java Service wrapper in a custom application for quite a
I'm looking for most performing Java service wrapper, which could make Java application running
I'm developing on 32bit windows and am using appassembler to create a java service
I have encountered many different ways to turn a Java program into a Windows
We're using a vendor licensed copy of the Tanuki Java Service Wrapper to start
We have a java web service application that uses log4j to do logging. An
I have a JAX-RPC (Java) web service that needs to return a complex polymorphic
We are busy developing a Java web service for a client. There are two

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.