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 7542965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:18:20+00:00 2026-05-30T08:18:20+00:00

I have created jar file in java 6 command prompt and then signed the

  • 0

I have created jar file in java 6 command prompt and then signed the jar file using jdk jarsigner utility.Finally it was verified successfully.But when i run the jar file using

Java -jar JarExample.jar

It throws exception like NoClassDefFoundError.Could not find the main class :JarTest

This is my manifest file content:

Manifest-Version: 1.0
Created-By: 1.6.0_20 (Sun Microsystems Inc.)
Main-Class: JarTest 

Name: ClassFile.class
SHA1-Digest: 6/tiYFkvtAy4Vl0ODl/6y6j/IJU=

Name: JarTest.class
SHA1-Digest: eDa/GNMKffutC3xfAyAwX0mCNnM=

But Before signing the jar it worked fine.So, I don’t know what’s wrong with this?

Please Guide me get out of this issue?

  • 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-30T08:18:21+00:00Added an answer on May 30, 2026 at 8:18 am

    I have seen your question.Maybe I know your problem is where ? the Manifest file must have a
    Class-Path variable,so in created jar file must have the information which I show you below:

    Manifest-Version: 1.0
    Created-By: 1.6.0_20 (Sun Microsystems Inc.)
    Main-Class: JarTest 
    Class-Path:./lib/yourName.jar ./lib/*
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a java application and packed it into a jar file on
I am trying to run a .jar file that I have created using either
I have jar files which I constructed using command jar -cf Generic.jar /java/mypackage/*.class There
I have created a JAR file in this way jar cf jar-file input-files .
I have created a C# class file by using a XSD-file as an input.
I have created a jar file usign maven2 build. I am trying to run
I have written a standalone Java application that I've packaged into a jar file
I have created an executable java Swing .jar application. It works fine on Windows.
I have created a shell script to run a jar file in Mac :
I have created a custom dialog for Visual Studio Setup Project using the steps

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.